I've a file that looks like this:
/cygdrive/d/path/to/my/file1.png /cygdrive/d/path/to/my/file2.png /cygdrive/d/path/to/my/file3.png /cygdrive/d/path/to/my/file4.png
I'm calling rsync with:
rsync --files-from="/cygdrive/d/myfiles.txt" "/cygdrive/d/path/to/" "user@remotehost:/cygdrive/c/new/path/for"
I want rsync to make dir structure like:
But it's failing with errors like:
rsync: change_dir "/cygdrive/c/new/path/for/cygdrive/d/path/to/my" failed: No such file or directory rsync: mkstmp "/cygdrive/c/new/path/for/cygdrive/d/path/to/my/file1.png.asdjfhsdj" failed: No such file or directory
How do I make rsync understand that
/cygdrive/d/path/to/ is the part of the source path that is the "root" and that only subfolders/files of it should be replicated to the destination root to give a new path at the destination?