From 43f0806bad4050fa9d768bf2a1016ea9de8a4c71 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Wed, 26 Jul 2023 23:49:29 +0200 Subject: [PATCH] chore: rsync changes for os x --- examples/rsync.backup-command.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/rsync.backup-command.sh b/examples/rsync.backup-command.sh index aa2166b..6337fe6 100644 --- a/examples/rsync.backup-command.sh +++ b/examples/rsync.backup-command.sh @@ -16,12 +16,17 @@ rsync /data/ nas.lan:/data/ \ # - .localized # - .obsidian # - .terraform* -# - #recycle -# - @eaDir -# - changes_* # + ** /opt/homebrew/bin/rsync 'Data' 'nas.lan:Data' \ -abchszAFLSUX \ --partial --append-verify --fake-super --no-motd \ --delete --backup-dir "changes_$(date +'%F_%H-%m-%S')" \ --no-inc-recursive --info="progress2" + +# .rsync-filter hides files on source, but does nothing for the ones on the remote +/opt/homebrew/bin/rsync 'Data' 'synology.lan:Data' \ + -abchszAFLSX \ + --partial --append-verify --fake-super --no-motd \ + --delete --backup-dir "changes_$(date +'%F_%H-%m-%S')" \ + --no-inc-recursive --info="progress2" \ + --exclude={'@eaDir','#recycle','changes_*'}