How to force rsync to create destination folder | |
---|---|
Subject: | |
Need to force it to create folders | |
2014-10-29 21:55:20 | gstlouis |
I ran into same issue today and found the solution here. You can either do: rsync -avR foo/bar/baz.c remote:/tmp/ or: rsync -avR somedir/./foo/bar/baz.c remote:/tmp/ to create /tmp/foo/bar/baz.c in the remote machine. see --relative/-R section of man rsync for more details. | gstlouis |
2014-10-29 21:55:46 | |