I'd like to run an rclone sync across Google drive however instead of deleting what isn't in the destination I'd like to move it to another folder, sort of like an archive, anyone know if this is this possible with just built in rclone functions?
hello and welcome to the forum
yes, rclone can do that
are you trying to sync files from your local computer to gdrive, or sync files from gdrive to gdrive?
i will assume that you want to sync local to cloud but it would be the same if gdrive to gdrive.
https://rclone.org/docs/#backup-dir-dir
and your command would look like
rclone sync /path/to/local/files remote:files/backup --backup-dir=remote:files/archive
and if you want, you can add the date to the archive folder path, and you get forever forward incremental backups. exactly how you get the date depends on your operating system.
rclone sync /path/to/local/files remote:files/backup/ --backup-dir=remote:files/archive/date
for each new or updated file on the local,
- rclone will check remote:files/backup and if there is a file already in that folder, then rclone will move it to remote:files/archive.
- rclone will copy the local file to remote:files/backup
and since sync can and will delete files, you should test with
https://rclone.org/docs/#n-dry-run
also, when you posted your question, you should have been asked a few question.
so we can better help you
What is the problem you are having with rclone?
What is your rclone version (output from rclone version
)
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Which cloud storage system are you using? (eg Google Drive)
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
A log from the command with the -vv
flag (eg output from rclone -vv copy /tmp remote:tmp
)
amazing, thank you
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.