Difference between revisions of "SW:rclone"
(→rclone module) |
(→rclone) |
||
Line 1: | Line 1: | ||
== rclone == | == rclone == | ||
− | rclone is a tool for syncing files from HPRC clusters to a remote storage site like Google Drive, Dropbox, Amazon's AWS and many more. Note rclone is available on ada, terra and HPRC Lab workstations | + | rclone is a tool for syncing files from HPRC clusters to a remote storage site like Google Drive, Dropbox, Amazon's AWS and many more. Note rclone is available on ada, terra and HPRC Lab workstations (no modules required for any of them). If you are using this from ada or terra, you probably want to use the fast transfer nodes (ftns) (i.e. ada-ftn1.tamu.edu, ada-ftn2.tamu.edu and terra-ftn.hprc.tamu.edu [note the 'hprc' in the last one]. |
− | + | ||
=== configure rclone === | === configure rclone === | ||
− | * | + | * configure rclone for your destination |
<pre> | <pre> | ||
rclone config | rclone config |
Revision as of 10:23, 17 August 2018
rclone
rclone is a tool for syncing files from HPRC clusters to a remote storage site like Google Drive, Dropbox, Amazon's AWS and many more. Note rclone is available on ada, terra and HPRC Lab workstations (no modules required for any of them). If you are using this from ada or terra, you probably want to use the fast transfer nodes (ftns) (i.e. ada-ftn1.tamu.edu, ada-ftn2.tamu.edu and terra-ftn.hprc.tamu.edu [note the 'hprc' in the last one].
configure rclone
- configure rclone for your destination
rclone config
- choose: n) New remote
- pick a name for the drive. e.g. mygdrive
- choose the type, in this example we use 11) Google Drive
- select the default (blank) option for the following
- leave Google Application Client Id blank (default)
- leave Google Application Client Secret blank (default)
- choose: 1) Full access to all files
- leave root_folder_id blank (default)
- leave service_account_file blank (default)
- when it ask if you want to auto_config, answer 'n' or 'N' for no
- at this point, rclone will provide a URL for you to log into in order to get an access code. Open the URL in your local browser and login (in this case to Google). If successful, you will get an access code. Copy/paste the code to the rclone prompt: Enter verification code>
- this example is for a non-team drive so answer 'n' to the 'Configure this as a team drive?' prompt
- review settings and choose 'y' to save
- choose 'q' to exit rclone config
use rclone
- see the rclone man page and --help screen for other commands
- here's a simple backup of one's $HOME directory (from terra)
rclone copy $HOME mygdrive:home-terra
- in your local browser watch as new files are created on your remote storage
[more to come]