rsync all the things - part 2
better docker stop and more rsyncing
This commit is contained in:
parent
8e3c5efacb
commit
99435250bb
2 changed files with 10 additions and 2 deletions
|
|
@ -4,5 +4,6 @@ DestDir="/mnt/data/backups/arch-griffix/griffix/"
|
|||
|
||||
rsync -avuz --exclude ".local/share/Steam" --exclude "Games" --exclude "Téléchargements" /home/griffix/ $DestDir
|
||||
rsync -avuz /mnt/pi5data/backups/pi5 /mnt/data/backups/pi5
|
||||
rsync -avuz /mnt/pi5data/backups/immich /mnt/data/backups/immich
|
||||
|
||||
exit $?
|
||||
|
|
|
|||
|
|
@ -1,11 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
DestDir="/media/Seagate/backups/pi5/config/"
|
||||
docker compose stop
|
||||
|
||||
echo "docker compose stop"
|
||||
docker compose -f /config/compose.yaml stop
|
||||
|
||||
echo "rsync /config"
|
||||
rsync -avuz /config/ $DestDir
|
||||
|
||||
echo "rsync immich"
|
||||
rsync -avuz /media/Seagate/immich /media/Seagate/backups/immich
|
||||
|
||||
docker compose start
|
||||
echo "docker compose start"
|
||||
docker compose -f /config/compose.yaml start
|
||||
|
||||
echo "done"
|
||||
exit $?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue