Hi, I am getting "rsync warning: some files vanished before they could be transferred (code 24) at main.c(1039) [sender=3.0.6]" now frequently but while using rsync version 2.6, I used to get it rarely. Any idea would be helpful on why rsync 3.0.6 is throwing this warning frequently. Jignesh. -------------- next part -------------- HTML attachment scrubbed and removed
I wonder why rsync-3.0.6 don;t have --ignore-vanished-files option? Jignesh On Thu, May 28, 2009 at 12:39 PM, Jignesh Shah <jignesh.shah1980@gmail.com>wrote:> Hi, > > I am getting "rsync warning: some files vanished before they could be > transferred (code 24) at main.c(1039) [sender=3.0.6]" now frequently but > while using rsync version 2.6, I used to get it rarely. Any idea would be > helpful on why rsync 3.0.6 is throwing this warning frequently. > > Jignesh. >-------------- next part -------------- HTML attachment scrubbed and removed
I am using a configuration file on rsync client machines to list the files to exclude for that machine. When I get a log containing vanished files, I get on that machine, confirm they are temp files (like pirnt spool files, etc.), and add them to the exclude list: So, I have a file like rsync.exclude that contains something like: /media/cdrom*/* /media/floppy*/* /tmp/* /u/tmp/* /v/tmp/* /var/spool/lpd/*/df* /var/spool/lpd/*/hf* And then in the script to kick off the rsync process: EXCLUDE="--exclude proc/ --exclude sys/" [ -f ${RSYNCBASE}/cfg/rsync.exclude ] && { set -f # Turn off filename globbing for i in `cat ${RSYNCBASE}/cfg/rsync.exclude` do case $i in ./*) Tmp=`echo $i | cut -c3-256`;; /*) Tmp=`echo $i | cut -c2-256`;; *) ;; esac EXCLUDE="${EXCLUDE} --exclude ${Tmp}" done set +f # Turn filename globbing back on } Then I use ${EXCLUDE} in the rsync command... Enjoy! Larry ----- Original Message ----- From: Jignesh Shah To: rsync@lists.samba.org Sent: Thursday, May 28, 2009 5:16 AM Subject: Re: some files vanished before they could be transferred I wonder why rsync-3.0.6 don;t have --ignore-vanished-files option? Jignesh On Thu, May 28, 2009 at 12:39 PM, Jignesh Shah <jignesh.shah1980@gmail.com> wrote: Hi, I am getting "rsync warning: some files vanished before they could be transferred (code 24) at main.c(1039) [sender=3.0.6]" now frequently but while using rsync version 2.6, I used to get it rarely. Any idea would be helpful on why rsync 3.0.6 is throwing this warning frequently. Jignesh. ------------------------------------------------------------------------------ -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html -------------- next part -------------- HTML attachment scrubbed and removed
On Thu, 2009-05-28 at 10:41 -0400, Larry Irwin wrote:> So, I have a file like rsync.exclude that contains something like: > > /media/cdrom*/* > /media/floppy*/* > /tmp/* > /u/tmp/* > /v/tmp/* > /var/spool/lpd/*/df* > /var/spool/lpd/*/hf* > > And then in the script to kick off the rsync process: > > EXCLUDE="--exclude proc/ --exclude sys/" > [ -f ${RSYNCBASE}/cfg/rsync.exclude ] && { > set -f # Turn off filename globbing > for i in `cat ${RSYNCBASE}/cfg/rsync.exclude` > do > case $i in > ./*) Tmp=`echo $i | cut -c3-256`;; > /*) Tmp=`echo $i | cut -c2-256`;; > *) ;; > esac > EXCLUDE="${EXCLUDE} --exclude ${Tmp}" > done > set +f # Turn filename globbing back on > } > > Then I use ${EXCLUDE} in the rsync command...You can just use --exclude-from=rsync.exclude rather than generating a bunch of individual --exclude options. -- Matt
Actually, rsync has never included --ignore-vanished-files option. I am also interested to have that option. BTW, you can get the patch for this option at https://bugzilla.samba.org/show_bug.cgi?id=3653#c11 Jignesh On Fri, May 29, 2009 at 3:08 AM, henri <henri@stmargarets.school.nz> wrote:> I was not aware of this flag. But I am interested to know why it is not in > 3.0.6 if this is the case. It seems like a good option to have available. > > > On 28/05/2009, at 9:16 PM, Jignesh Shah wrote: > > I wonder why rsync-3.0.6 don;t have --ignore-vanished-files option? >> >> Jignesh >> >> >> On Thu, May 28, 2009 at 12:39 PM, Jignesh Shah < >> jignesh.shah1980@gmail.com> wrote: >> >> >> >> Hi, >> >> I am getting "rsync warning: some files vanished before they could be >> transferred (code 24) at main.c(1039) [sender=3.0.6]" now frequently but >> while using rsync version 2.6, I used to get it rarely. Any idea would be >> helpful on why rsync 3.0.6 is throwing this warning frequently. >> >> Jignesh. >> >> -- >> Please use reply-all for most replies to avoid omitting the mailing list. >> To unsubscribe or change options: >> https://lists.samba.org/mailman/listinfo/rsync >> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html >> > >-------------- next part -------------- HTML attachment scrubbed and removed