Step 1 : Login to your server
Step 2: Install RClone (https://rclone.org/install/)
Step 3: Create a rclone config (if not already present)
Step 4: Refer to docs to check connection process for different cloud storage services (https://rclone.org/docs/)
Step 5: command to copy to my gdrive/rclone/docker-compose-setup folder (already created, remote name is tf-server-backup, destination path is given following : after remote name, just put directory path where you want your files ):
sudo rclone copy -PL ./docker-compose-setup/ tf-server-backup:docker-compose-setup
Similarly, copy from remote to new server (logged in through ssh):
sudo rclone copy -PL tf-server-backup:docker-compose-setup ./docker-compose-setup/
Note: Flags: -P to check transfer progress
-L is to copy symbolic links as well and tf-server-backup is the rclone remote name, after : is destination folder name (here docker-compose-setup) put another name to create a new destination folder and not overwrite existing files (might be incompletely copied)
Can add -v flag for copy progress, else to manually check, open backup and sync from google app and enable sync and choose folders from list, see the size beside folder name then cancel
Bonus: rclone listremotes -> lists all the remotes already present
Top comments (0)