mkdir if dst not exists

This commit is contained in:
xiongdian.me 2023-05-12 17:23:44 +08:00
parent 32f486603f
commit 460c7c0b3b

View File

@ -40,6 +40,7 @@ do_sync() {
then
touch "$lock_file"
presync "$name"
mkdir -p "$(dirname "$dst")"
rsync -avzthP --stats --delete --bwlimit=6000 "$src" "$dst"
postsync "$name" $? "$dst"
rm "$lock_file"