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?
rsync not using --files-from option?
rsync
Okay, I found the problem.The file containing file names has to contain only file names; no paths, relative or otherwise;After specifying --files-from=FILE, rsync requires a source directory in which to find the files listed.So the command should be rsync -a --files-from=~/.rsync_file_list $HOME/ /destination..rsync_file_list should read:file 1file 2file 3