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 Power operates at the account level. Users are advised to have a dedicated Google Drive account for their NetMind Power-related activities, as opposed to using personal accounts. This separation aids in maintaining a clear distinction and enhanced security for NetMind Power 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 passwordq) Quit confign/s/q> nEnternamefornewremote.name> remoteOptionStorage.Typeofstoragetoconfigure.Chooseanumberfrombelow,ortypeinyourownvalue....18/GoogleDrive\ (drive)...Storage> driveOptionclient_id.GoogleApplicationClientIdSettingyourownisrecommended.Seehttps://rclone.org/drive/#making-your-own-client-idforhowtocreateyourown.Ifyouleavethisblank,itwilluseaninternalkeywhichislowperformance.Enteravalue.PressEntertoleaveempty.client_id> Optionclient_secret.OAuthClientSecret.Leaveblanknormally.Enteravalue.PressEntertoleaveempty.client_secret> Optionscope.Commaseparatedlistofscopesthatrcloneshouldusewhenrequestingaccessfromdrive.Chooseanumberfrombelow,ortypeinyourownvalue.PressEntertoleaveempty.1/Fullaccessallfiles,excludingApplicationDataFolder.\ (drive)2/Read-onlyaccesstofilemetadataandfilecontents.\ (drive.readonly)/Accesstofilescreatedbyrcloneonly.3|Thesearevisibleinthedrivewebsite.|Fileauthorizationisrevokedwhentheuserdeauthorizestheapp.\ (drive.file)/AllowsreadandwriteaccesstotheApplicationDatafolder.4|Thisisnotvisibleinthedrivewebsite.\ (drive.appfolder)/Allowsread-onlyaccesstofilemetadatabut5|doesnotallowanyaccesstoreadordownloadfilecontent.\ (drive.metadata.readonly)scope> Optionservice_account_file.ServiceAccountCredentialsJSONfilepath.Leaveblanknormally.NeededonlyifyouwantuseSAinsteadofinteractivelogin.Leading`~`willbeexpandedinthefilenameaswillenvironmentvariablessuchas`${RCLONE_CONFIG_DIR}`.Enteravalue.PressEntertoleaveempty.service_account_file> Editadvancedconfig?y) Yesn) No (default)y/n> Usewebbrowsertoautomaticallyauthenticaterclonewithremote?*SayYifthemachinerunningrclonehasawebbrowseryoucanuse*SayNifrunningrcloneona (remote) machine without web browser accessIfnotsuretryY.IfYfailed,tryN.y) Yes (default)n) Noy/n> nOptionconfig_token.Forthistowork,youwillneedrcloneavailableonamachinethathasawebbrowseravailable.Formorehelpandalternatemethodssee:https://rclone.org/remote_setup/Executethefollowingonthemachinewiththewebbrowser (same rcloneversionrecommended):rcloneauthorize"drive"Thenpastetheresult.Enteravalue.config_token>
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.
For NetMind Power, we advise against using an existing IAM user. As NetMind Power 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 Power servers. This approach ensures more precise and secure data management.