I'm trying to run rsync -a --files-from=~/.rsync_file_list ~/destination
and it tells me: rsync error: syntax or usage error (code 1) at options.c(1652) [client=3.0.7]
. Can anyone enlighten me as to what I'm doing wrong?
The file ~/.rsync_file_list
just contains a list of file names prefaced with ~/
, separated by newlines (though I've also tried listing them all on the same line, with the same result).
If I run rsync -a ~/file ~/file2 ~/file3 ~/destination
it works just fine. So what am I missing about the --files-from
option?
sed "s#~/#/home/wolf/#g" -ie ~/.rsync_file_list