diff --git a/examples/rsync.backup.sh b/examples/rsync.backup.sh new file mode 100644 index 0000000..cf32c2c --- /dev/null +++ b/examples/rsync.backup.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +rsync /data/ nas.lan:/data/ \ + --archive --copy-links --protect-args --delete \ + --acls --xattrs --fake-super \ + --partial --append-verify \ + --compress --sparse --no-motd \ + --human-readable --no-inc-recursive --info="progress2" -vv \ + --exclude ".terraform*" --exclude "obsidian" \ + --backup --backup-dir "changes_$(date +'%F_%H-%m-%S')" --exclude "changes_*" \ +| grep -Ev -e uptodate -e "/$"