Skip to main content
deleted 63 characters in body; edited title
Source Link

rsync files-from unable to handle filename with hyphensubfolder?

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 uuid formatseveral subfolder filenames:

subfolder/746fbd52-ec44-41b8-8f62-ead5beb8e57e746fbd52ec4441b88f62ead5beb8e57e
subfolder/test

The remote file "test" is synced normally while the first uuid styled file failed withcommand gives the following error:

rsync: link_stat "/home/somewhere/746fbd52-ec44-41b8-8f62-ead5beb8e57e"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.

rsync files-from unable to handle filename with hyphen?

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 uuid format filenames:

subfolder/746fbd52-ec44-41b8-8f62-ead5beb8e57e
subfolder/test

The remote file "test" is synced normally while the first uuid styled file failed with the following error:

rsync: link_stat "/home/somewhere/746fbd52-ec44-41b8-8f62-ead5beb8e57e" failed: No such file or directory

Appreciate if someone could lend me a hand. Thank you.

rsync files-from unable to handle filename with subfolder?

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.

edited formatting of command text, and file list.
Source Link
Tim Kennedy
  • 20.2k
  • 5
  • 42
  • 58

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/ .

rsync -schavzP --stats --files-from=./filelist.txt -e "ssh -p 22" [email protected]:/home/somewhere/ .

While filelist.txt contains uuid format filenames:

subfolder/746fbd52-ec44-41b8-8f62-ead5beb8e57e subfolder/test

subfolder/746fbd52-ec44-41b8-8f62-ead5beb8e57e
subfolder/test

The remote file "test" is synced normally while the first uuid styled file failed with the following error:

rsync: link_stat "/home/somewhere/746fbd52-ec44-41b8-8f62-ead5beb8e57e" failed: No such file or directory

rsync: link_stat "/home/somewhere/746fbd52-ec44-41b8-8f62-ead5beb8e57e" failed: No such file or directory

Appreciate if someone could lend me a hand. Thank you.

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 uuid format filenames:

subfolder/746fbd52-ec44-41b8-8f62-ead5beb8e57e subfolder/test

The remote file "test" is synced normally while the first uuid styled file failed with the following error:

rsync: link_stat "/home/somewhere/746fbd52-ec44-41b8-8f62-ead5beb8e57e" failed: No such file or directory

Appreciate if someone could lend me a hand. Thank you.

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 uuid format filenames:

subfolder/746fbd52-ec44-41b8-8f62-ead5beb8e57e
subfolder/test

The remote file "test" is synced normally while the first uuid styled file failed with the following error:

rsync: link_stat "/home/somewhere/746fbd52-ec44-41b8-8f62-ead5beb8e57e" failed: No such file or directory

Appreciate if someone could lend me a hand. Thank you.

Source Link

rsync files-from unable to handle filename with hyphen?

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 uuid format filenames:

subfolder/746fbd52-ec44-41b8-8f62-ead5beb8e57e subfolder/test

The remote file "test" is synced normally while the first uuid styled file failed with the following error:

rsync: link_stat "/home/somewhere/746fbd52-ec44-41b8-8f62-ead5beb8e57e" failed: No such file or directory

Appreciate if someone could lend me a hand. Thank you.