aboutsummaryrefslogtreecommitdiff
path: root/hourly-backup.sh
diff options
context:
space:
mode:
authorTrey Bastian <hello@treybastian.com>2025-11-19 12:14:31 +0000
committerTrey Bastian <hello@treybastian.com>2025-11-19 12:14:31 +0000
commitd7094759958b5c0ca93e503c978a18721b231546 (patch)
tree13810d571428cd0bcb10834e833731fa9cf0bf26 /hourly-backup.sh
parentc0e01aa667040650fddb1a4120c77f51d4bbb092 (diff)
breaking excludes to seprate flags hope this works
Diffstat (limited to 'hourly-backup.sh')
-rwxr-xr-xhourly-backup.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/hourly-backup.sh b/hourly-backup.sh
index 746da39..d718909 100755
--- a/hourly-backup.sh
+++ b/hourly-backup.sh
@@ -10,4 +10,15 @@
# !! WARNING SLOW FIRST RUN !!
# the first run will be slow so run this first before setting up the hourly job
-rsync -aAX --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/usr/tmp/*","/run/*","/mnt/*","/media/*","/var/cache/*","/","/lost+found"} /* /mnt/backup/live/ --delete
+rsync -aAX \
+ --exclude /dev/ \
+ --exclude /proc/ \
+ --exclude /sys/ \
+ --exclude /tmp/ \
+ --exclude /usr/tmp/ \
+ --exclude /run/ \
+ --exclude /mnt/ \
+ --exclude /media/ \
+ --exclude /var/cache/ \
+ --exclude lost+found/ \
+ /* /mnt/backup/live/ --delete