m
This commit is contained in:
parent
6588da4ad6
commit
40e3b95aaf
1 changed files with 0 additions and 0 deletions
31
sh/alias/rsync.sh
Normal file
31
sh/alias/rsync.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
# 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() { r_sync_delete_before "${@}"; }
|
||||
r_sync_delete_before() {
|
||||
rsb \
|
||||
--delete-before \
|
||||
"${@}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue