diff options
| author | Trey Bastian <hello@treybastian.com> | 2025-11-19 12:00:45 +0000 |
|---|---|---|
| committer | Trey Bastian <hello@treybastian.com> | 2025-11-19 12:00:45 +0000 |
| commit | f461ad76f7c90b69e6807a32c55c18d2f8b37fd7 (patch) | |
| tree | 4bd10a5f4de04d5bccf3fe0aa84e1447ca499cb2 /hourly-backup.sh | |
| parent | bfac1731332b238844e1ce12d678af5e8b87b884 (diff) | |
hopefully got the command right this time with the exclude
Diffstat (limited to 'hourly-backup.sh')
| -rwxr-xr-x | hourly-backup.sh | 14 |
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 |
