Hey all, A customer is configuring an offsite rsync backup. Their Internet pipe is fairly slow (DSL) but they have some very large files to backup. Their backup window is only after business hours. If one of these large files starts rsyncing at midnight, and the backup window ends before the file is complete (i.e. the rsync process stops), will it complete the rest of that file the following backup window? If so, is there an easy way to configure rsync to stop execution at a specific time? Thanks! noam Noam Birnbaum http://maccentricsolutions.com/ 877.luv.macs x89 ð Apple Certified Technical Coordinator ð Apple Certified Help Desk Specialist -------------- next part -------------- HTML attachment scrubbed and removed
On Wed 31 Oct 2007, Noam Birnbaum wrote:> > If one of these large files starts rsyncing at midnight, and the > backup window ends before the file is complete (i.e. the rsync > process stops), will it complete the rest of that file the following > backup window?It will, if the --partial option is passed. The --partial-dir option may also be useful, depending on the requirements.> If so, is there an easy way to configure rsync to stop execution at a > specific time?No... Paul Slootman
On Thu, 2007-11-01 at 11:30 +0100, Paul Slootman wrote:> > If so, is there an easy way to configure rsync to stop execution at a > > specific time? > > No...Well, there is the patch "patches/time-limit.diff" in the rsync source tree that adds options to make rsync stop at a certain time or after a certain time interval. You could compile and use your own copy of rsync with this patch. Or you could just have your script send a signal to the rsync process at the appropriate time, which will cause rsync to clean up and quit. Matt
Thanks folks! Matt, what kind of signal would my script have to send to make rsync =20 clean up and quit? Best, noam Noam Birnbaum http://maccentricsolutions.com/ 877.luv.macs x89 =F0 Apple Certified Technical Coordinator =F0 Apple Certified Help Desk Specialist On Nov 1, 2007, at 12:30 PM, Matt McCutchen wrote:> On Thu, 2007-11-01 at 11:30 +0100, Paul Slootman wrote: >>> If so, is there an easy way to configure rsync to stop execution =20 >>> at a >>> specific time? >> >> No... > > Well, there is the patch "patches/time-limit.diff" in the rsync source > tree that adds options to make rsync stop at a certain time or after a > certain time interval. You could compile and use your own copy of =20 > rsync > with this patch. Or you could just have your script send a signal to > the rsync process at the appropriate time, which will cause rsync to > clean up and quit. > > Matt > >