Hi Friends, Does rsync V3 has the feature for logging the files which have not been transferred? Its already logs the file which have been transfered. Thanks, Jignesh -------------- next part -------------- HTML attachment scrubbed and removed
On Tue, 2008-12-16 at 16:56 +0530, Jignesh Shah wrote:> Does rsync V3 has the feature for logging the files which have not > been transferred?Out of what set do you want to see the files not transferred? - For files hidden by exclude rules, pass -vv (or --debug=exclude if your rsync is new enough to support it) and look for messages like: [sender] hiding directory alsomydir because of pattern /alsomydir - For files skipped because of --min-size, --max-size, --update, --ignore-existing, or --ignore-non-existing, pass -v (--info=skip) and look for the corresponding messages. - For files that did not need a transfer because they passed the quick check, pass -vv (--info=name2) and look for "FILENAME is uptodate", or pass -ii and look for files whose itemize code is blank after the first two characters. - If rsync tries and fails to transfer a file, it will print an error message and exit immediately (for fatal errors) or with code 23 at the end of the run (for nonfatal ones). Unfortunately, the error message does not always name the affected file; see: http://lists.samba.org/archive/rsync/2008-January/019650.html If none of those were what you were asking, please be more specific. -- Matt
Matt, Thanks for the info. Basically I want to display all the files which has not transfer because "the file has not changed". Can I use --info=skip for this? Thanks, Jignesh On Tue, Dec 16, 2008 at 8:18 PM, Matt McCutchen <matt@mattmccutchen.net>wrote:> On Tue, 2008-12-16 at 16:56 +0530, Jignesh Shah wrote: > > Does rsync V3 has the feature for logging the files which have not > > been transferred? > > Out of what set do you want to see the files not transferred? > > - For files hidden by exclude rules, pass -vv (or --debug=exclude if > your rsync is new enough to support it) and look for messages like: > > [sender] hiding directory alsomydir because of pattern /alsomydir > > - For files skipped because of --min-size, --max-size, --update, > --ignore-existing, or --ignore-non-existing, pass -v (--info=skip) and > look for the corresponding messages. > > - For files that did not need a transfer because they passed the quick > check, pass -vv (--info=name2) and look for "FILENAME is uptodate", or > pass -ii and look for files whose itemize code is blank after the first > two characters. > > - If rsync tries and fails to transfer a file, it will print an error > message and exit immediately (for fatal errors) or with code 23 at the > end of the run (for nonfatal ones). Unfortunately, the error message > does not always name the affected file; see: > > http://lists.samba.org/archive/rsync/2008-January/019650.html > > If none of those were what you were asking, please be more specific. > > -- > Matt > >-------------- next part -------------- HTML attachment scrubbed and removed
On Tue, 2008-12-23 at 12:20 +0530, Jignesh Shah wrote:> Thanks for the info. Basically I want to display all the files which > has not transfer because "the file has not changed". Can I use > --info=skip for this?That would be:> - For files that did not need a transfer because they passed the quick > check, pass -vv (--info=name2) and look for "FILENAME is uptodate", or > pass -ii and look for files whose itemize code is blank after the first > two characters.-- Matt
Matt, Could you please tell me why I am getting below errors in rsync 3.0.4? I have rsync 3.0.4 both side. userid@system123:/userid> rsync --version rsync version 3.0.4 protocol version 30 Copyright (C) 1996-2008 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, no IPv6, batchfiles, inplace, append, ACLs, no xattrs, iconv, no symtimes rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details. Errors: userid@system123:/userid> rsync -avz --debug=exclude --info=skip --info=name2 tmp/* sys2.nyc:/userid/tmp/ rsync: --debug=exclude: unknown option rsync error: syntax or usage error (code 1) at main.c(1423) [client=3.0.4] userid@system123:/userid> rsync -avz --info=skip --info=name2 tmp/* sys2.nyc:/userid/tmp/ rsync: --info=skip: unknown option rsync error: syntax or usage error (code 1) at main.c(1423) [client=3.0.4] userid@system123:/userid> rsync -avz --info=name2 tmp/* sys2.nyc:/userid/tmp/ rsync: --info=name2: unknown option rsync error: syntax or usage error (code 1) at main.c(1423) [client=3.0.4] userid@system123:/userid> rsync -avz -w tmp/* sys2.nyc:/userid/tmp/ rsync: -w: unknown option rsync error: syntax or usage error (code 1) at main.c(1423) [client=3.0.4] Thanks, Jignesh On Tue, Dec 23, 2008 at 10:00 PM, Matt McCutchen <matt@mattmccutchen.net>wrote:> On Tue, 2008-12-23 at 12:20 +0530, Jignesh Shah wrote: > > Thanks for the info. Basically I want to display all the files which > > has not transfer because "the file has not changed". Can I use > > --info=skip for this? > > That would be: > > > - For files that did not need a transfer because they passed the > quick > > check, pass -vv (--info=name2) and look for "FILENAME is > uptodate", or > > pass -ii and look for files whose itemize code is blank after the > first > > two characters. > > -- > Matt > >-------------- next part -------------- HTML attachment scrubbed and removed
On Wed, 2008-12-24 at 09:37 +0530, Jignesh Shah wrote:> Could you please tell me why I am getting below errors in rsync 3.0.4? > I have rsync 3.0.4 both side.> userid@system123:/userid> rsync -avz --debug=exclude --info=skip > --info=name2 tmp/* sys2.nyc:/userid/tmp/ > rsync: --debug=exclude: unknown option > rsync error: syntax or usage error (code 1) at main.c(1423) > [client=3.0.4]> [similar cases...]The --info=* and --debug=* options require a 3.1.* development version of rsync from the source repository.> userid@system123:/userid> rsync -avz -w tmp/* sys2.nyc:/userid/tmp/ > rsync: -w: unknown option > rsync error: syntax or usage error (code 1) at main.c(1423) > [client=3.0.4]I think you misread my -vv (two occurrences of the letter v) as -w. -- Matt
Thanks Matt. I thought V3.0.5 is the latest version. From where I can download 3.1.* ? Is it preview version? Thanks, Jignesh On Wed, Dec 24, 2008 at 9:43 AM, Matt McCutchen <matt@mattmccutchen.net>wrote:> On Wed, 2008-12-24 at 09:37 +0530, Jignesh Shah wrote: > > Could you please tell me why I am getting below errors in rsync 3.0.4? > > I have rsync 3.0.4 both side. > > > userid@system123:/userid> rsync -avz --debug=exclude --info=skip > > --info=name2 tmp/* sys2.nyc:/userid/tmp/ > > rsync: --debug=exclude: unknown option > > rsync error: syntax or usage error (code 1) at main.c(1423) > > [client=3.0.4] > > > [similar cases...] > > The --info=* and --debug=* options require a 3.1.* development version > of rsync from the source repository. > > > userid@system123:/userid> rsync -avz -w tmp/* sys2.nyc:/userid/tmp/ > > rsync: -w: unknown option > > rsync error: syntax or usage error (code 1) at main.c(1423) > > [client=3.0.4] > > I think you misread my -vv (two occurrences of the letter v) as -w. > > -- > Matt > >-------------- next part -------------- HTML attachment scrubbed and removed