Simple Rclone Quick Backup to Google Drive

NPC Appears!
Boss: Hero, please don't let this task delay your other work!
─────────────────────────────────
= [ 1 Local or Network Copy and Paste ] =
= 2 Hard Disk Clone =
= 3 Escape =
= 4 Charm the Boss =
─────────────────────────────────
Hero chose 1, but although Windows can use fastcopy, it feels too time-consuming, so it's not considered.
─────────────────────────────────
= =
= [ 2 Hard Disk Clone ] =
= 3 Escape =
= 4 Charm the Boss =
─────────────────────────────────
Hero chose 2, this should be the fastest way, but the target hard drive also needs to be backed up to avoid failure. Left with options 3 and a new unknown option.
─────────────────────────────────
= 5 rclone????????? =
= =
= [ 3 Escape ] =
= 4 Charm the Boss =
─────────────────────────────────
Hero wanted to choose 3, but his heart told him he couldn't run! He also couldn't choose 4, so he decided to try 5.
..?
..???
...!!
rclone swiftly and effectively resolved all the issues.

For such a ridiculous opening, I apologize. I promise not to waste any more words.

rclone, with a single command, backs up all files from the hard drive to Google Drive or other storage. The setup is very easy! Here, I'll demonstrate the simplest method using the built-in GUI to set up the config, then enter the command to start the backup.

Config Setup to Connect to the Cloud

After downloading rclone, cd to the same folder and enter the following command into cmd / bash / zsh or any Terminal.

rclone rcd --rc-web-gui

In PowerShell, you need to enter

"./rclone.exe" rcd --rc-web-gui

This will start a local webserver, giving you a simple interface.
Enter the Config, go to Google Developer Console to enable the Google Drive API, set up OAuth, and copy the ID and Key to the corresponding fields. Follow the steps to complete the setup.

Click Explorer, and in the path input box, the Config Name you just set up will pop up. After selecting it, you can browse your Google Drive like in the web version. Create the destination folder for the backup, and copy the current path, for example:
MyGoogleDrive01:/MyBackupFolder/Laptop01/2022

Then return to the Terminal and press Ctrl + C or Command + C to close the webserver.

Enter the following command, and it will start backing up everything from C: to Google Drive!
--progress is used to show the upload progress. Without this arg, the Terminal would remain blank, with no indication of the backup progress.

rclone copy "C:/" "MyGoogleDrive01:/MyBackupFolder/Laptop01/2022" --progress

Files that fail to copy will be skipped, such as files currently in use by the system.

Facebook 留言

Posted in Software Tip.

Leave a Reply

Your email address will not be published. Required fields are marked *