mirror of
https://github.com/DictXiong/dxsync.git
synced 2024-11-24 08:51:30 +08:00
mkdir if dst not exists
This commit is contained in:
parent
32f486603f
commit
460c7c0b3b
1
sync.sh
1
sync.sh
|
@ -40,6 +40,7 @@ do_sync() {
|
||||||
then
|
then
|
||||||
touch "$lock_file"
|
touch "$lock_file"
|
||||||
presync "$name"
|
presync "$name"
|
||||||
|
mkdir -p "$(dirname "$dst")"
|
||||||
rsync -avzthP --stats --delete --bwlimit=6000 "$src" "$dst"
|
rsync -avzthP --stats --delete --bwlimit=6000 "$src" "$dst"
|
||||||
postsync "$name" $? "$dst"
|
postsync "$name" $? "$dst"
|
||||||
rm "$lock_file"
|
rm "$lock_file"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user