Use rclone to sync backups to Dropbox or Google Drive

Advice for those who often (for example, daily) sync their backups on Google Drive through a cron job and don’t have a lot of free space on their drive, I’d recommend adding the flag --drive-use-trash=false to their rclone command.

Example:

rclone sync /var/discourse/shared/standalone/backups/default --drive-use-trash=false --exclude tmp/ discourse:

With this flag, rclone will delete outdated backups from Google Drive instead of sending them to the trash, where they lay 30 days before being automatically deleted. It can save a lot of Drive storage.

4 Likes