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.