Use copy instead of sync

This commit is contained in:
Jeffrey Serio 2024-07-22 21:31:27 -05:00
parent e800652393
commit e3f613f4d0

View File

@ -10,7 +10,7 @@ trap 'rm -rv /home/mastodon/db-backup.sql.temp' EXIT
sudo -u mastodon mv -v /home/mastodon/db-backup.sql /home/mastodon/db-backup.sql.temp
sudo -u mastodon pg_dump -U mastodon -Fc mastodon_production -p 5432 -f /home/mastodon/db-backup.sql
rclone sync -L -c /etc minio:server0-backup/etc/
rclone copy -L /etc minio:server0-backup/etc/
mkdir "${TEMP_DIR}/log"
rsync -avz /var/log/ "${TEMP_DIR}/log"