# Use rclone to sync backups to Dropbox or Google Drive

**URL:** <https://meta.discourse.org/t/use-rclone-to-sync-backups-to-dropbox-or-google-drive/97294>\
**Category:** Sysadmins\
**Tags:** backups, how-to\
**Created:** [September 16, 2018, 5:20pm UTC](https://meta.discourse.org/t/use-rclone-to-sync-backups-to-dropbox-or-google-drive/97294 "2018-09-16T17:20:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [May 4, 2022, 10:44pm UTC](https://meta.discourse.org/t/use-rclone-to-sync-backups-to-dropbox-or-google-drive/97294/3 "2022-05-04T22:44:54Z")

</div>

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:

```plaintext
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.

---

_[View the full topic](https://meta.discourse.org/t/use-rclone-to-sync-backups-to-dropbox-or-google-drive/97294)._
