This commit is contained in:
Marc Beninca 2024-11-18 16:53:12 +01:00
parent 40e3b95aaf
commit dd4fd93e12
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,11 +1,6 @@
# synchronize
rs() {
rsb \
"${@}"
}
# base arguments
rsb() {
rs() { sh_a__r_sync "${@}"; }
sh_a__r_sync() {
rsync \
--archive \
--no-inc-recursive \
@ -16,16 +11,17 @@ rsb() {
}
# synchronize and delete after
rsda() {
rsb \
rsda() { sh_a__r_sync_delete_after "${@}"; }
sh_a__r_sync_delete_after() {
sh_a__r_sync \
--delete-after \
"${@}"
}
# synchronize and delete before
rsdb() { r_sync_delete_before "${@}"; }
r_sync_delete_before() {
rsb \
rsdb() { sh_a__r_sync_delete_before "${@}"; }
sh_a__r_sync_delete_before() {
sh_a__r_sync \
--delete-before \
"${@}"
}