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

27 lines
455 B
Bash

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