Last active
January 22, 2024 00:56
-
-
Save ultramookie/4e7d10eab0b1fc3d541b51141e27594c to your computer and use it in GitHub Desktop.
mastodon backup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo -u postgres pg_dump -Fc mastodon_production -Z 9 -f /home/mastodon/db/mastodon.`date +%d`.dump | |
rclone sync /home/mastodon/live/.env.production s3bucket:path/conf/mastodon/ | |
rclone sync /etc/nginx/sites-available/mastodon s3bucket:path/conf/nginx/ | |
rclone sync /home/mastodon/live/public/system/ s3bucket:path/system --exclude-from=/backups/bin/excludes.txt | |
rclone sync /home/mastodon/db s3bucket:path/db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment