chore: .rsync-filter and command examples for osx

This commit is contained in:
Michele Cereda
2023-07-25 20:26:51 +02:00
parent daa83d52a5
commit 66fffb49aa
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
- .DS_Store
- .localized
- .obsidian
- .terraform*
- #recycle
- @eaDir
- changes_*
+ **

View File

@@ -9,3 +9,19 @@ rsync /data/ nas.lan:/data/ \
--exclude ".terraform*" --exclude "obsidian" \
--backup --backup-dir "changes_$(date +'%F_%H-%m-%S')" --exclude "changes_*" \
| grep -Ev -e uptodate -e "/$"
# cat '.rsync-filter'
# - .DS_Store
# - .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"