In the examples we provided below, we use rclone to synchronize the data with Google Drive and Dropbox, and we use CLI to setup cloud sync with AWS.
Google Drive
Prerequisite: Active Google Drive account
NetMind operates at the account level. Users are advised to have a dedicated Google Drive account for their NetMind-related activities, as opposed to using personal accounts. This separation aids in maintaining a clear distinction and enhanced security for NetMind operations.
Install and setup rclone on your rental GPU
Follow the instruction here to install rclone on the SSH instance you rent.
Here we show an example of how to install rclone v1.65.2 to your SSH instance.
//Configrclonein"Rent GPU"instanceroot@702760ea4881:~/workspace/test#rcloneconfigNoremotesfound,makeanewone?n) New remotes) Set configuration password
Authorization on Google Drive
Install rclone to your own machine that has a browser and do Google Drive authentication.
We are only using Google Drive as an example. You can use a cloud storage service that is more convenient for you to synchronize data in the SSH instance. For more tools, please refer here.
Allow rclone in "System Setting" (if your are using Mac)
Sign in your account in browser
Paste the authorize code into SSH instance
config_token> eyJ0...SJ9
Sync files to Google Drive
// Sync folder from Google Drive
root@702760ea4881:~/workspace/test# rclone sync remote:test /root/workspace/test
// Sync folder to Google Drive
root@702760ea4881:~/workspace/test# rclone sync remote:test /root/workspace/test
AWS
Prerequisitie: Active AWS account
For NetMind, we advise against using an existing IAM user. As NetMind connects at a user level, it is preferable to create a new IAM user with specific authorizations tailored for the data you plan to store on NetMind servers. This approach ensures more precise and secure data management.
Install Cloud Sync with CLI
root@xxxxxxxxxx:~/workspace/test# pip3 uninstall awscli
...
root@xxxxxxxxxx:~/workspace/test# aws configure
AWS Access Key ID [None]: xxxxxxxxxxxx
AWS Secret Access Key [None]: xxxxxxxxxxxxxxxxxxxxxxx
Default region name [None]:
Default output format [None]:
Sync Files to AWS
// Sync files from S3
aws s3 sync s3://test0131/ /root/workspace/test
// Sync files to S3
aws s3 sync s3://test0131/ /root/workspace/test