This commit is contained in:
Marc Beninca 2025-07-27 20:30:33 +02:00
parent 2ce7972376
commit f7841b2a2a
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

30
sh/io/rsync.sh Normal file
View file

@ -0,0 +1,30 @@
# rsync
# synchronize
#| rsync
#= rs
rwx_rsync() {
rsync \
--archive \
--no-inc-recursive \
--partial \
--progress \
--verbose \
"${@}"
}
# synchronize and delete after
#= rsda
rwx_rsync_delete_after() {
rwx_rsync \
--delete-after \
"${@}"
}
# synchronize and delete before
#= rsdb
rwx_rsync_delete_before() {
rwx_rsync \
--delete-before \
"${@}"
}