Hello, I am trying to use the "--files-from=FILE" option with rsync version "version 2.6.3 protocol version 28" When I try to use the following syntax, it returns a syntax or usage error: rsync -azrv --files-from=/home/dira/filelist.txt remoteuser@remotehost:/remotedir I am also trying to use ssh with this which obviously yields an error also since the first part does not work rsync -azrv --files-from=/home/dira/filelist.txt -e "ssh -i /home/user1/cron/file-with-rsync-key" remoteuser@remotehost:/remotedir Any help on the actual use of the "--files-from=FILE" option would be appreciated. My goal is to create a list of files and directories that will be transfered and use it with the --files-from option in rsync. Thanks very much! --------------------------------- How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates. -------------- next part -------------- HTML attachment scrubbed and removed
On 9/26/06, csarid <csarid@yahoo.com> wrote:> I am trying to use the "--files-from=FILE" option with rsync version > "version 2.6.3 protocol version 28" When I try to use the following syntax, > it returns a syntax or usage error: > > rsync -azrv --files-from=/home/dira/filelist.txt remoteuser@remotehost:/remotedir--files-from does not take the place of a source directory. Instead, it provides a list of paths to follow under the source directory; a path is treated as relative even if it begins with a slash. So, if you meant for remoteuser@remotehost:/remotedir to be the source, add a destination, and if you meant it to be the destination, add a source (perhaps "/" if you had absolute paths in filelist.txt). Matt