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

36 lines
411 B
Bash

# synchronize
rs() {
rsb \
"${@}"
}
# base arguments
rsb() {
rsync \
--archive \
--no-inc-recursive \
--partial \
--progress \
--verbose \
"${@}"
}
# synchronize and delete after
alias rsda="\
rsync \
--archive \
--partial \
--progress \
--verbose \
--delete-after \
"
# synchronize and delete before
alias rsdb="\
rsync \
--archive \
--partial \
--progress \
--verbose \
--delete-before \
"