diff options
| author | Trey Bastian <hello@treybastian.com> | 2025-11-19 11:21:25 +0000 |
|---|---|---|
| committer | Trey Bastian <hello@treybastian.com> | 2025-11-19 11:21:25 +0000 |
| commit | 30a5e12dfe12728c1dd7b7eb455dd23919fe7305 (patch) | |
| tree | ba09ec0eae78d7521997a5bc754d59cadbf49ed3 /hourly-backup.sh | |
| parent | 165f78c96d37a5801b1fc3c03d5a8208f82da319 (diff) | |
added my backup scripts
Diffstat (limited to 'hourly-backup.sh')
| -rwxr-xr-x | hourly-backup.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hourly-backup.sh b/hourly-backup.sh new file mode 100755 index 0000000..8fee9c0 --- /dev/null +++ b/hourly-backup.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# +# This script will rsync the entire filesystem to /mnt/backup/live/ +# This script assumes /mnt/backup/live/ is where we want to backup files +# +# My personal setup: +# -- has this running hourly with cron +# -- mounts /mnt/backup to it's own specific NFS share configured for the host +# +# !! WARNING SLOW FIRST RUN !! +# the first run will be slow so run this first before setting up the hourly job + +rsync -a /* /mnt/backup/live/ --delete |
