mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Added example of backup command using rsync
This commit is contained in:
11
examples/rsync.backup.sh
Normal file
11
examples/rsync.backup.sh
Normal file
@@ -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 "/$"
|
||||
Reference in New Issue
Block a user