From 8e3c5efacb602c97c182f369a6d27345f88ebdd4 Mon Sep 17 00:00:00 2001 From: griffix Date: Fri, 8 Aug 2025 09:02:38 +0200 Subject: [PATCH] rsync all the things improvements on rsync scripts --- backup.sh | 2 +- backup_pi5.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 backup_pi5.sh diff --git a/backup.sh b/backup.sh index aca5f6b..a58218c 100644 --- a/backup.sh +++ b/backup.sh @@ -1,8 +1,8 @@ #!/bin/sh 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 /mnt/pi5data/backups/pi5 /mnt/data/backups/pi5 exit $? diff --git a/backup_pi5.sh b/backup_pi5.sh new file mode 100755 index 0000000..c8d6db0 --- /dev/null +++ b/backup_pi5.sh @@ -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 $?