I want to use rclone as more of a backup solution, can i use the "copyto" command to copy all fields from directory A to cloud storage. Then every 3 months or so run "sync" to check directory A against cloud storage and remove anything from cloud storage that is not present in the local filesystem?
Run the command 'rclone version' and share the full output of the command.
os/version: slackware 15.0+ (64 bit)
os/kernel: 5.19.17-Unraid (x86_64)
Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads
Which cloud storage system are you using? (eg Google Drive)
The command you were trying to run (eg rclone copy /tmp remote:tmp)
I currently run "sync" on a monthly basis but rather run "copyto" on a daily basis and perform a "sync" every few months to make source and destination match
Well sync checks source and destination and makes sure destination matches source? Which is what i want BUT..... If a file is deleted on accident wont sync catch that and remove it from destination? IM trying to make it so it copys files over but doesn't remove ANYTHING until i am sure there are no mistakes.
I know what i am trying to say but not sure if im making sense with my explanation. Basically I only want to "prune" the destination every few months when i know my local filesystem is accurate.
you might to read the docs about --backup-dir and use a command such as this.
each time rclone sync is run, any files that would have been deleted from secure:full are instead moved to a subdir of secure:incrementals with a date/timestamp. a kind of file versioning.
2023/02/22 14:05:25 DEBUG : 20230222.125712/Test Delete.txt: Excluded from sync (and deletion)
2023/02/22 14:05:25 DEBUG : 20230222.125712/Test Delete.txt: Excluded
2023/02/22 14:05:25 NOTICE: 20230222.125712: Skipped remove directory as --dry-run is set
2023/02/22 14:05:25 NOTICE: 20230222.125610: Skipped remove directory as --dry-run is set
This is what i get, which looks ok at first glance, it didn't remove the files because they are not older then 6 months, but, in the future when i run this some files will be older then 6 months and some will not be so the rmdir part is a bit concerning, if it removes the directly isn't it essentially deleting everything? Because it was a dry run it left the directory but the logs seem to suggest it would have yeeted that all out of there?