From 72fd2e2d643e3e2268db5f7aa88e8addd5a46c70 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sun, 3 Jul 2022 00:25:53 +0200 Subject: [PATCH] Added example of backup command using rsync --- examples/rsync.backup.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/rsync.backup.sh 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 "/$"