Quote:
Originally Posted by biggerbug
try this:
find -name *.m > flst
find -name *.mat >> flst
rsync -av --files-from=flst . /destination/dir/
|
Good Idea
I tried first this one
rsync -av --files-from=~/Documents/Documents-rn/Measurement\ campaign/hias\ Code/allmfileslist.txt ~/Documents/Documents-rn/Measurement\ campaign/hias\ Code/
which returns the error below
rsync error: syntax or usage error (code 1) at options.c(1652) [client=3.0.7]
afterwards I removed the destination from the command just to see if rsync will complain
which returned
rsync: failed to open files-from file ~/Documents/Documents-rn/Measurement campaign/hias Code/allmfileslist.txt: No such file or directory
rsync error: syntax or usage error (code 1) at main.c(1437) [client=3.0.7]
but the file is there.
ls ~/Documents/Documents-rn/Measurement\ campaign/hias\ Code/allmfileslist.txt
/home/apa/Documents/Documents-rn/Measurement campaign/hias Code/allmfileslist.txt
For me it seems that rsync can not read paths with spaces (even if there is an escape character at the beginning).
Regards
Alex