rsync all the things
improvements on rsync scripts
This commit is contained in:
parent
305c7a4614
commit
8e3c5efacb
2 changed files with 12 additions and 1 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
DestDir="/mnt/data/backups/arch-griffix/griffix/"
|
DestDir="/mnt/data/backups/arch-griffix/griffix/"
|
||||||
#ExcludeList='{/home/griffix/.local/share/Steam,/home/griffix/Games}'
|
|
||||||
|
|
||||||
rsync -avuz --exclude ".local/share/Steam" --exclude "Games" --exclude "Téléchargements" /home/griffix/ $DestDir
|
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
|
||||||
|
|
||||||
exit $?
|
exit $?
|
||||||
|
|
|
||||||
11
backup_pi5.sh
Executable file
11
backup_pi5.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
DestDir="/media/Seagate/backups/pi5/config/"
|
||||||
|
docker compose stop
|
||||||
|
|
||||||
|
rsync -avuz /config/ $DestDir
|
||||||
|
rsync -avuz /media/Seagate/immich /media/Seagate/backups/immich
|
||||||
|
|
||||||
|
docker compose start
|
||||||
|
|
||||||
|
exit $?
|
||||||
Loading…
Add table
Add a link
Reference in a new issue