rsync and cygwin on win XP freeze/hanging
I am running rsync under cygwin on a winXP pro system. Cygwin is the most recent version (1.3.12-2) and rsync 2.5.5 protocol 26. It seems that almost %50 of the time, rsync hangs after the last file is done syncing. When it's hung, I can press ctrl-c, and an error message: rsync error: received SIGUSR1 or SIGINT (code 20) at rsync.c(229) pops out. It does not exit, however, and I must kill the process using task manager. I am syncing a few directories to my backup hard drive, which is local. There's no remote network access going on that I know of. Using tcpview from sysinternals.com, I can see that when a process "hangs", its ports are still open. When I get a clean exit, all ports are closed. I ran it a few times with strace, and the ones that got stuck seemed to be in a loop and calling "select" a lot. I've been more successful in reproducing the problem when the commands are inside a .bat file or in a .sh file which I've associated with bash.exe. When I just double-click on the file, it seems to hang quite often, but I haven't yet been able to get it to hang when running it from the cygwin bash prompt. I've found quite a few messages talking about hanging problems, but none of the answers have helped me. TIA -- Brian Mathis Direct Edge http://www.directedge.com -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: wishlist addition?
On Fri, 27 Sep 2002, Greg Baumgartel wrote: > > I didn't see this in the wishlist, but using rsync for backups as I'm > starting to do now, there's a feature that would be really cool. I > don't see it in the man page or in any of the docs online. > > Basically, I'd like to see an option to modify --delete that deletes > only destination files that have been missing for over Y days. For > backups, this provides a time window on the receiving directory where > you can retrieve them before they're consigned to oblivion. > > So basically it would work > > src:/foo/bar/X -> dest:/foo/bar/X > > Then src:/foo/bar/X gets deleted. In normal --delete mode, the next > time rsync runs, dest:/foo/bar/X gets deleted, too. What I'd like to do > is delay that deletion until src:/foo/bar/X has been gone for Y days. > > Maybe this has been visited before, as I can't think of a good way, > other than for rsync to keep an outside DB of what date each file was > last backed up on (as with the -a option, the timestamps don't indicate > this, they're set to the source timestamp, which is what I want). I > don't know if any of the 'stat' info on the destination file (like the > change timestamp - modification definitely wouldn't work) would be > useful, though. > > Thoughts? Take a look at this document: http://www.mikerubel.org/computers/rsync_snapshots/ It will accomplish very much what you're talking about. It's not integrated into rsync, but it's also only a few short lines of script. Won't help on Windows though. -- Brian Mathis Direct Edge http://www.directedge.com -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Complex include/excludes with rsync?
I'm trying to use rsync filters to achieve the following result: Include / Exclude /home Include /home/user1 I've been doing a lot of experimentation and at this point I'm just staring at the man page. Rsync filters seem to be complicated, and a result of that I hope they are also powerful. How does one achieve this common pattern with rsync? -- 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
Re: Complex include/excludes with rsync?
Thanks for the reply. I had also posted to serverfault and got a good reply that explains better (http://serverfault.com/questions/150269/complex-includes-excludes-with-rsync/150519#150519) I think the fact that this comes up so often means there's a problem with the documentation. http://www.flickr.com/photos/cvander/1885428341/ On Fri, Jun 11, 2010 at 11:33 PM, Matt McCutchen wrote: > On Thu, 2010-06-10 at 19:16 -0400, Brian Mathis wrote: >> I'm trying to use rsync filters to achieve the following result: >> >> Include / >> Exclude /home >> Include /home/user1 >> >> I've been doing a lot of experimentation and at this point I'm just >> staring at the man page. Rsync filters seem to be complicated, and a >> result of that I hope they are also powerful. >> >> How does one achieve this common pattern with rsync? > > This has been asked many times before, for example: > > http://lists.samba.org/archive/rsync/2007-June/017805.html > http://lists.samba.org/archive/rsync/2008-February/020073.html > http://lists.samba.org/archive/rsync/2009-August/023758.html > > The key is that you don't want to actually exclude /home because that > will prevent rsync from even descending to /home/user1 (search the man > page for "ineffectual"). Instead, exclude all the children of /home > other than /home/user1, for example: > > + /home/user1 > - /home/* > > Alternatively, there is a trick you can do with multiple source > arguments: > > http://lists.samba.org/archive/rsync/2006-February/014761.html > > -- > Matt > > -- 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