diff --git a/sync.sh b/sync.sh index 93fa4c9..fe10f9d 100755 --- a/sync.sh +++ b/sync.sh @@ -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"