Setting Up Globus Upload
Steps on the mini computer
How To Install, Configure, and Uninstall Globus Connect Personal for Linux
sudo apt-get install tk tcllib
wget https://downloads.globus.org/globus-connect-personal/linux/stable/globusconnectpersonal-latest.tgz
tar xzf globusconnectpersonal-latest.tgz
cd globusconnectpersonal-x.y.z
./globusconnectpersonal
Click the link from the cli to login
Enter in auth code
Add name for the endpoint. When successfully logged in, note down the UUID that has been generated.
Run
pip install globus-cli
and globus login for root userEnter auth code
Create a timer with:
globus timer create transfer --notify failed --interval 10m --recursive --sync-level mtime 4af299cc-2f37-11ef-9620-453c3ae125a5:/home/benchbot/benchbot-brain-app/mini_computer_api/images/ "ea8aff4a-274e-4c48-bc23-5b93da0cc941:/semifield-upload/"
.The UUID for local system being used here is generated when globusconnectpersonal is setup.Create a cronjob for deleting uploaded data by running
crontab -e
and append*/10 * * * * /home/benchbot/benchbot-brain-app/mini_computer_api/delete_uploaded_images.sh >> /home/benchbot/benchbot-brain-app/mini_computer_api/logs/file_deletion_output.log 2>&1
For further investigation (Setting up a Globus application and using app id + secret)
Register a service account
Name project
Name app
Add secret, copy somewhere safe
Add permissions to destination: paste in the client identity (<CLIENTID>@clients.auth.globus.org) as the Username or Email when adding the permission.