update de la doc et rangement dans infra_conf des backups
This commit is contained in:
parent
99435250bb
commit
e877284fe9
4 changed files with 9 additions and 9 deletions
18
infra_conf/backup_pi5.sh
Executable file
18
infra_conf/backup_pi5.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
DestDir="/media/Seagate/backups/pi5/config/"
|
||||
|
||||
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
|
||||
|
||||
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