various scripts I use to make my life easier

hopefully got the command right this time with the exclude

Changed files
+13 -1
+13 -1
hourly-backup.sh
···
# !! 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
···
# !! 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