Hi, I want to read the list of files from txt file. I am using -files-from=myFile.txt command but I am getting the error. Please tell me how to read the list of files from other file. I am using this below Rsync command:- rsync -r -R -e " ssh " --rsync-path=/usr/bin/rsync --files-from=myFile.txt /destination myFile.txt contain the name of files with path. rsync version 2.6.8 protocol version 29 Error:- Use "rsync --daemon --help" to see the daemon-mode command-line options. Please see the rsync(1) and rsyncd.conf(5) man pages for full documentation. See http://rsync.samba.org/ for updates, bug reports, and answers rsync error: syntax or usage error (code 1) at options.c(1447) [client=2.6.8] Failed to deploy to the following destinations: dev01 Please suggest. Thanks & Regards, Ushank Khanna DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ----------------------------------------------------------------------------------------------------------------------- -------------- next part -------------- HTML attachment scrubbed and removed
On Mon, 2009-01-19 at 16:22 +0530, Ushank Khanna, Noida wrote:> I want to read the list of files from txt file. I am using ? > files-from=myFile.txt command but I am getting the error. Please tell > me how to read the list of files from other file. > > I am using this below Rsync command:- > > rsync -r -R -e ? ssh " --rsync-path=/usr/bin/rsync > --files-from=myFile.txt /destination > > myFile.txt contain the name of files with path.> rsync error: syntax or usage error (code 1) at options.c(1447) > [client=2.6.8]With --files-from, you still have to specify a source directory from which to interpret the paths in the file. See the examples in the description of --files-from in the man page. -- Matt
Can you please provide me the example as well. Thanks & Regards, Ushank Khanna -----Original Message----- From: Matt McCutchen [mailto:matt@mattmccutchen.net] Sent: Monday, January 19, 2009 10:42 PM To: Ushank Khanna, Noida Cc: rsync@lists.samba.org Subject: Re: Not able to read the content of the file. On Mon, 2009-01-19 at 16:22 +0530, Ushank Khanna, Noida wrote:> I want to read the list of files from txt file. I am using - > files-from=myFile.txt command but I am getting the error. Please tell > me how to read the list of files from other file. > > I am using this below Rsync command:- > > rsync -r -R -e " ssh " --rsync-path=/usr/bin/rsync > --files-from=myFile.txt /destination > > myFile.txt contain the name of files with path.> rsync error: syntax or usage error (code 1) at options.c(1447) > [client=2.6.8]With --files-from, you still have to specify a source directory from which to interpret the paths in the file. See the examples in the description of --files-from in the man page. -- Matt DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. -----------------------------------------------------------------------------------------------------------------------