diff options
Diffstat (limited to '')
| -rwxr-xr-x | scripts/backup.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/backup.sh b/scripts/backup.sh new file mode 100755 index 0000000..caf5b7b --- /dev/null +++ b/scripts/backup.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +## +# Create full tree backups to specified media + +GLOBAL_MEDIA_BLOCK=$1 + +echo "Beginning rsync full system backup / -> $GLOBAL_MEDIA_BLOCK" +rsync -SHaAX --delete --info=progress2 --exclude={"/dev/*", "/proc/*", "/sys/*", "/tmp/*", "/run/*", "/mnt/*", "/lost+found"} / $1 |
