sh/shell/alias/rsync.sh

37 lines
411 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
2023-05-14 14:09:23 +00:00
alias rsda="\
rsync \
--archive \
--partial \
--progress \
--verbose \
--delete-after \
"
2023-05-09 20:02:34 +00:00
# synchronize and delete before
2023-05-14 14:09:23 +00:00
alias rsdb="\
rsync \
--archive \
--partial \
--progress \
--verbose \
--delete-before \
"