# Copy backups to another server with rsync and cron

**URL:** https://meta.discourse.org/t/copy-backups-to-another-server-with-rsync-and-cron/124346
**Category:** Sysadmins
**Tags:** how-to
**Created:** [July 30, 2019, 1:17am UTC](https://meta.discourse.org/t/copy-backups-to-another-server-with-rsync-and-cron/124346 "2019-07-30T01:17:44Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![MiniForum](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@MiniForum](https://meta.discourse.org/u/MiniForum)
#### Post date: [September 9, 2026, 7:35am UTC](https://meta.discourse.org/t/copy-backups-to-another-server-with-rsync-and-cron/124346/9 "2026-09-09T07:35:44Z")

</div>

Thanks for this small script, I am using it do retrieve the backups from my Discourse server to my local server and it works without issue.

I just added the `--archive` option to rsync and I am thinking about the `--delete` option (to delete backups on the local server when they are deleted from Discourse server).  
The `--delete` option may be a bit dangerous. Perhaps I’ll modify the script to keep only the last X backups.

---

_[View the full topic](https://meta.discourse.org/t/copy-backups-to-another-server-with-rsync-and-cron/124346)._
