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
|
|
@ -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