rwx/sh/alias/rsync.sh

28 lines
455 B
Bash
Raw Normal View History

2023-05-09 20:02:34 +00:00
# synchronize
2024-11-19 08:17:14 +00:00
rs() { sa__r_sync "${@}"; }
sa__r_sync() {
2024-11-16 15:07:47 +00:00
rsync \
--archive \
--no-inc-recursive \
--partial \
--progress \
--verbose \
"${@}"
}
2023-05-09 20:02:34 +00:00
# synchronize and delete after
2024-11-19 08:17:14 +00:00
rsda() { sa__r_sync_delete_after "${@}"; }
sa__r_sync_delete_after() {
sa__r_sync \
2024-11-16 15:10:16 +00:00
--delete-after \
"${@}"
}
2023-05-09 20:02:34 +00:00
# synchronize and delete before
2024-11-19 08:17:14 +00:00
rsdb() { sa__r_sync_delete_before "${@}"; }
sa__r_sync_delete_before() {
sa__r_sync \
2024-11-16 15:10:16 +00:00
--delete-before \
"${@}"
}