mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-25 09:03:41 +01:00
Use copy instead of sync
This commit is contained in:
parent
e800652393
commit
e3f613f4d0
@ -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 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
|
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"
|
mkdir "${TEMP_DIR}/log"
|
||||||
rsync -avz /var/log/ "${TEMP_DIR}/log"
|
rsync -avz /var/log/ "${TEMP_DIR}/log"
|
||||||
|
Loading…
Reference in New Issue
Block a user