From f461ad76f7c90b69e6807a32c55c18d2f8b37fd7 Mon Sep 17 00:00:00 2001 From: Trey Bastian Date: Wed, 19 Nov 2025 12:00:45 +0000 Subject: hopefully got the command right this time with the exclude --- hourly-backup.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/hourly-backup.sh b/hourly-backup.sh index 058a7f6..1c3bdc2 100755 --- a/hourly-backup.sh +++ b/hourly-backup.sh @@ -10,4 +10,16 @@ # !! WARNING SLOW FIRST RUN !! # the first run will be slow so run this first before setting up the hourly job -rsync -a --exclude=/{dev,proc,sys,tmp,run,mnt,media,cdrom}/ --exclude=lost+found/ /* /mnt/backup/live/ --delete +rsync -aAX --exclude={ \ + "/dev/*", \ + "/proc/*", \ + "/sys/*", \ + "/tmp/*", \ + "/usr/tmp/*", \ + "/run/*", \ + "/mnt/*", \ + "/media/*", \ + "/var/cache/*", \ + "/", \ + "/lost+found" } \ + /* /mnt/backup/live/ --delete -- cgit v1.2.3