sh/shell/alias/rsync.sh

31 lines
323 B
Bash
Raw Normal View History

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-16 15:10:16 +00:00
rsdb() {
rsb \
--delete-before \
"${@}"
}