mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-25 09:03:41 +01:00
Change to sync_from_remotes
This commit is contained in:
parent
d911b9964f
commit
eb06ca44da
@ -9,23 +9,23 @@ fi
|
|||||||
|
|
||||||
if ! rsync -avz --delete root@hyperreal.coffee:/srv/borgbackup/hyperreal/ /mnt/borgbackup/hyperreal; then
|
if ! rsync -avz --delete root@hyperreal.coffee:/srv/borgbackup/hyperreal/ /mnt/borgbackup/hyperreal; then
|
||||||
/home/jas/bin/resend_error.py "hyperreal-borg"
|
/home/jas/bin/resend_error.py "hyperreal-borg"
|
||||||
logger -t sync_remotes "Error during sync of hyperreal-borg"
|
logger -t sync_from_remotes "Error during sync of hyperreal-borg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
logger -t sync_remotes "hyperreal-borg successfully synced"
|
logger -t sync_from_remotes "hyperreal-borg successfully synced"
|
||||||
|
|
||||||
if ! rsync -avz --delete root@hyperreal.coffee:/home/mastodon/live/public/system/ /mnt/mastodata; then
|
if ! rsync -avz --delete root@hyperreal.coffee:/home/mastodon/live/public/system/ /mnt/mastodata; then
|
||||||
/home/jas/bin/resend_error.py "mastodata"
|
/home/jas/bin/resend_error.py "mastodata"
|
||||||
logger -t sync_remotes "Error during sync of mastodata"
|
logger -t sync_from_remotes "Error during sync of mastodata"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
logger -t sync_remotes "mastodata successfully synced"
|
logger -t sync_from_remotes "mastodata successfully synced"
|
||||||
|
|
||||||
if ! rsync -avz --delete root@desktop:/srv/borgbackup/moonshadow/ /mnt/borgbackup/moonshadow; then
|
if ! rsync -avz --delete root@desktop:/srv/borgbackup/moonshadow/ /mnt/borgbackup/moonshadow; then
|
||||||
/home/jas/bin/resend_error.py "moonshadow-borg"
|
/home/jas/bin/resend_error.py "moonshadow-borg"
|
||||||
logger -t sync_remotes "Error during sync of moonshadow-borg"
|
logger -t sync_from_remotes "Error during sync of moonshadow-borg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
logger -t sync_remotes "moonshadow-borg successfully synced"
|
logger -t sync_from_remotes "moonshadow-borg successfully synced"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in New Issue
Block a user