mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-22 19:44:25 +00:00
chore: .rsync-filter and command examples for osx
This commit is contained in:
8
examples/dotfiles/.rsync-filter
Normal file
8
examples/dotfiles/.rsync-filter
Normal file
@@ -0,0 +1,8 @@
|
||||
- .DS_Store
|
||||
- .localized
|
||||
- .obsidian
|
||||
- .terraform*
|
||||
- #recycle
|
||||
- @eaDir
|
||||
- changes_*
|
||||
+ **
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user