rwx/sh/alias/rsync.sh
2024-11-19 14:42:11 +01:00

27 lines
447 B
Bash

# synchronize
rs() { a__r_sync "${@}"; }
a__r_sync() {
rsync \
--archive \
--no-inc-recursive \
--partial \
--progress \
--verbose \
"${@}"
}
# synchronize and delete after
rsda() { a__r_sync_delete_after "${@}"; }
a__r_sync_delete_after() {
a__r_sync \
--delete-after \
"${@}"
}
# synchronize and delete before
rsdb() { a__r_sync_delete_before "${@}"; }
a__r_sync_delete_before() {
a__r_sync \
--delete-before \
"${@}"
}