2023-05-09 20:02:34 +00:00
|
|
|
# synchronize
|
2024-11-16 15:07:47 +00:00
|
|
|
rs() {
|
|
|
|
rsb \
|
|
|
|
"${@}"
|
|
|
|
}
|
|
|
|
|
|
|
|
# base arguments
|
|
|
|
rsb() {
|
|
|
|
rsync \
|
|
|
|
--archive \
|
|
|
|
--no-inc-recursive \
|
|
|
|
--partial \
|
|
|
|
--progress \
|
|
|
|
--verbose \
|
|
|
|
"${@}"
|
|
|
|
}
|
2023-05-09 20:02:34 +00:00
|
|
|
|
|
|
|
# synchronize and delete after
|
2024-11-16 15:10:16 +00:00
|
|
|
rsda() {
|
|
|
|
rsb \
|
|
|
|
--delete-after \
|
|
|
|
"${@}"
|
|
|
|
}
|
2023-05-09 20:02:34 +00:00
|
|
|
|
|
|
|
# synchronize and delete before
|
2024-11-17 21:04:36 +00:00
|
|
|
rsdb() { r_sync_delete_before "${@}"; }
|
|
|
|
r_sync_delete_before() {
|
2024-11-16 15:10:16 +00:00
|
|
|
rsb \
|
|
|
|
--delete-before \
|
|
|
|
"${@}"
|
|
|
|
}
|