27 lines
447 B
Bash
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 \
|
|
"${@}"
|
|
}
|