rsync
This commit is contained in:
parent
26311f7032
commit
966331e451
1 changed files with 6 additions and 5 deletions
|
@ -1,8 +1,9 @@
|
|||
# shortcuts for rsync
|
||||
|
||||
# synchronize
|
||||
#| rsync
|
||||
#= rs
|
||||
a__r_sync() {
|
||||
rwx_rsync() {
|
||||
rsync \
|
||||
--archive \
|
||||
--no-inc-recursive \
|
||||
|
@ -14,16 +15,16 @@ a__r_sync() {
|
|||
|
||||
# synchronize and delete after
|
||||
#= rsda
|
||||
a__r_sync_delete_after() {
|
||||
a__r_sync \
|
||||
rwx_rsync_delete_after() {
|
||||
rwx_rsync \
|
||||
--delete-after \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# synchronize and delete before
|
||||
#= rsdb
|
||||
a__r_sync_delete_before() {
|
||||
a__r_sync \
|
||||
rwx_rsync_delete_before() {
|
||||
rwx_rsync \
|
||||
--delete-before \
|
||||
"${@}"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue