rsync
This commit is contained in:
parent
40e3b95aaf
commit
dd4fd93e12
1 changed files with 8 additions and 12 deletions
|
@ -1,11 +1,6 @@
|
||||||
# synchronize
|
# synchronize
|
||||||
rs() {
|
rs() { sh_a__r_sync "${@}"; }
|
||||||
rsb \
|
sh_a__r_sync() {
|
||||||
"${@}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# base arguments
|
|
||||||
rsb() {
|
|
||||||
rsync \
|
rsync \
|
||||||
--archive \
|
--archive \
|
||||||
--no-inc-recursive \
|
--no-inc-recursive \
|
||||||
|
@ -16,16 +11,17 @@ rsb() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# synchronize and delete after
|
# synchronize and delete after
|
||||||
rsda() {
|
rsda() { sh_a__r_sync_delete_after "${@}"; }
|
||||||
rsb \
|
sh_a__r_sync_delete_after() {
|
||||||
|
sh_a__r_sync \
|
||||||
--delete-after \
|
--delete-after \
|
||||||
"${@}"
|
"${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# synchronize and delete before
|
# synchronize and delete before
|
||||||
rsdb() { r_sync_delete_before "${@}"; }
|
rsdb() { sh_a__r_sync_delete_before "${@}"; }
|
||||||
r_sync_delete_before() {
|
sh_a__r_sync_delete_before() {
|
||||||
rsb \
|
sh_a__r_sync \
|
||||||
--delete-before \
|
--delete-before \
|
||||||
"${@}"
|
"${@}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue