aboutsummaryrefslogtreecommitdiff
path: root/hourly-backup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hourly-backup.sh')
-rwxr-xr-xhourly-backup.sh14
1 files changed, 13 insertions, 1 deletions
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