sh/shell/alias/rsync.sh
2024-11-16 16:10:16 +01:00

30 lines
323 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() {
rsb \
--delete-before \
"${@}"
}