DEV Community

Shubhashish Verma
Shubhashish Verma

Posted on

1 1

Create rclone remotes to backup up server files to and from GDrive

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

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay