mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore: import notes from an old repository
This commit is contained in:
14
snippets/rsync.sh
Normal file
14
snippets/rsync.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
rsync -AELPXansvvz --append-verify --delete \
|
||||
--fake-super --no-i-r --no-motd --exclude '@eaDir' --exclude "changes_*" \
|
||||
"synology.lan:/volume1/vault/" \
|
||||
"./" \
|
||||
| grep -Ev -e uptodate -e "/$"
|
||||
|
||||
rsync -vv --append-verify --delete --executability --partial --progress --dry-run \
|
||||
--archive --acls --xattrs --human-readable --sparse --copy-links --preallocate \
|
||||
--fake-super --no-inc-recursive --no-motd --exclude '@eaDir' --compress --secluded-args \
|
||||
--backup --backup-dir="changes_$(date +'%F_%H-%m-%S')" --exclude "changes_*" \
|
||||
"synology.lan:/volume1/vault/" \
|
||||
"./"
|
||||
Reference in New Issue
Block a user