31 lines
379 B
Bash
31 lines
379 B
Bash
# synchronize
|
|
rs() {
|
|
rsb \
|
|
"${@}"
|
|
}
|
|
|
|
# base arguments
|
|
rsb() {
|
|
rsync \
|
|
--archive \
|
|
--no-inc-recursive \
|
|
--partial \
|
|
--progress \
|
|
--verbose \
|
|
"${@}"
|
|
}
|
|
|
|
# synchronize and delete after
|
|
rsda() {
|
|
rsb \
|
|
--delete-after \
|
|
"${@}"
|
|
}
|
|
|
|
# synchronize and delete before
|
|
rsdb() { r_sync_delete_before "${@}"; }
|
|
r_sync_delete_before() {
|
|
rsb \
|
|
--delete-before \
|
|
"${@}"
|
|
}
|