> NPC appeared! > Company boss: Brave, please don't delay other work during the completion process! ────────────────────────────────── = [1 local or LAN copy and paste] = = 2 hard Dish to copy = = 3 Escape = = 4 Charm the boss = ──────────────────────────────────── > The brave chose 1. Windows can use fastcopy, but the brave man thinks it takes too much time, so option 1 is not considered. ──────────────────────────────── = = = [ 2 hard disk copies] = = 3 escape = = 4 Charm Boss = ──────────────────────────────────── > The hero chose 2, which should be the fastest, However, the target hard disk should also be backed up to avoid failure. That leaves option 3, and the new unknown option. ──────────────────────────────── = 5 rclone????????? = = = = [ 3 Escape] = = 4 Charm the Boss = ────────────────────────────────── > The hero wants to choose 3, but The heart tells the brave not to escape! I can't always choose 4, so I had to choose 5 > ..? > ..??? > ...!! > rclone took the initiative to solve all the troubles with lightning speed.
I'm sorry for such an 87 opening statement, and I promise to be no nonsense.
rclone one line command, backup all files on the hard disk to Google Drive or other space.
And it's super easy to set up! Below I demonstrate the simplest method, use the built-in GUI to set up Config, and then enter the command to start the backup.
Set up Config to connect to the cloud
After downloading rclone, cd to the same folder, enter the following commands to Terminal such as cmd / bash / zsh.
rclone rcd --rc-web-gui
powershell requires input
"./rclone.exe" rcd --rc-web-gui
This will open the local webserver, allowing you to have an easy-to-use interface.
Enter Config, go to Google Developer Console to open Google Drive Api, set OAuth, copy ID and Key to the corresponding fields, and the next step will be done.
Click Explorer, click the path input box, it will jump out of the Config Name you just set. After clicking, you can browse the cloud drive just like the web version of Google Drive. We create the destination folder that we want to back up and copy the current path, such as this format:
We can go back to Terminal and enter
C Shut down the webserver.
Enter the following command and it will start backing up everything in C: to Google Drive!
--progress It is to return the upload progress. Without this arg, the Terminal will only be blank, and there is no way to know the backup progress.
rclone copy "C:/" "MyGoogleDrive01:/MyBackupFolder/Laptop01/2022" --progress
Files that fail to copy are skipped, such as files occupied by the system.