backup_files とか作っておいてですね、
/etc/redis/redis.conf
/var/lib/redis/dump.rdb
/etc/pgbouncer/pgbouncer.ini
/etc/pgbouncer/userlist.txt
/etc/systemd/system/mastodon-sidekiq.service
/etc/systemd/system/mastodon-streaming.service
/etc/systemd/system/mastodon-web.service
/etc/nginx/sites-available/example.com
/home/mastodon/live/.env.production
backup.sh とか書いておいてs3とかにコピーするです。
#!/bin/sh
datetime=$(date "+%Y%m%d%H%M")
tar zcvf - -T /root/backup_files | aws s3 cp - s3://backup_backet/${datetime}.tar.gz