I need to sync remotes files to local with the following command:
rsync -schavzP --stats --files-from=./filelist.txt -e "ssh -p 22" [email protected]:/home/somewhere/ .
While filelist.txt contains several subfolder filenames:
subfolder/746fbd52ec4441b88f62ead5beb8e57e
subfolder/test
The command gives the following error:
rsync: link_stat "/home/somewhere/subfolder/746fbd52ec4441b88f62ead5beb8e57e" failed: No such file or directory
If I issue rsync without files-from, and give the remote filename directly in command line, it works.
Appreciate if someone could lend me a hand. Thank you.
ls -l /home/somewhere/subfolder/746fbd52ec4441b88f62ead5beb8e57e, copy the path exactly from the error message rsync gives. Run `strace -f -e file rsync ..." and show the line that refers to this file. Append the information to the question, not as a comment.