Here’s a breakdown of the provided text,focusing on the key steps and commands for backing up files to Proton drive using rclone:
1. Setting up rclone and Connecting to Proton Drive:
Name the backup: The first image shows the process of naming the remote connection. The example uses “remote1” as the name.
Choose Cloud Service: The second image shows selecting Proton Drive from the list of supported cloud services. Proton Drive is listed as number 45.
authentication: After selecting the cloud service, you’ll need to provide the necessary credentials to log into your Proton Drive account.
2. Basic rclone Commands:
List Folders: rclone lsd remote1 This command lists the directories (folders) in the “remote1” (Proton Drive) remote.
3. Copying Files to Proton Drive:
rclone copy /home/lunarity/Desktop/Sync/ remote1:backup
rclone copy: The command to copy files. /home/lunarity/Desktop/Sync/: The source directory (the folder you want to back up).
remote1:backup: The destination. remote1 is the name of your rclone remote (Proton Drive). backup is the folder name that will be created (if it doesn’t exist) within your Proton Drive to store the copied files.
4. Scheduling Automatic Backups:
The text recommends using systemd timers instead of cron jobs for scheduling automatic backups.
Rclone doesn’t have built-in scheduling, so you need to use an external tool like systemd timers.
Significant Considerations:
rclone sync vs. rclone copy: The author prefers rclone copy to avoid accidental deletion of files in the cloud storage. rclone sync mirrors the source to the destination, meaning if a file is deleted in the source, it will also be deleted in the destination. Systemd Timers: The text links to an article about using systemd timers, which are a more modern and flexible alternative to cron jobs for scheduling tasks on Linux systems.
