Hi,

Am 09.12.2008 um 21:44 schrieb Asheesh Laroia:

> On Tue, 9 Dec 2008, Keith Lofstrom wrote:
>
>> One of my offsite VPN client machines was moved to a slower  
>> internet link.  Meanwhile, in October it went through a major  
>> automated upgrade. As a result, the nightly rsync job took longer  
>> than 24 hours.  The next night's backup started before the first  
>> completed, which attempted to move all those files again, and  
>> slowed the link down further. Cascading failures. I was incredibly  
>> busy, so I turned off dirvish to that machine rather than fix the  
>> problem.
>
> I use Dirvish for >24h backups, too.
>
> I use Dirvish from the Debian packages, which have a cron job.  I'm  
> attaching the original Debian cron job and my modified one; you'll  
> see my modifications are centered around creating a PID file in /var/ 
> lock/dirvish-cronjob ; this allows me to be sure that I match not  
> just any rsync, but the actual dirvish cron job.
>
> A problem with Keith's suggestion is that if any user at all is  
> running rsync, then the dirvish cron job will fail to start.
>
> I hereby permit distribution for this modification under the same  
> terms as Dirvish itself.
>
> My way also has the cron job output something indicating why it did  
> not run overnight, so that you get a nightly email knowing what  
> happened.



The problem with your solution is, that it won't do any backups until  
all "long-running" backups are finished.

So I think, the solution with putting something in the pre-client- 
script to check if THIS backup is already running and then not  
starting a second one is better for everyone, who does backups of a  
lot of different servers where just some are "slow". So these will  
only get a backup every second day, but the "fast" server get backed  
up every day.

So maybe a combination of both solutions would be good... ;-)


With best regards,

Dirk Melchers
/// IT/Software-Entwicklung ///

-- 
NUREG GmbH ///
Dorfäckerstraße 31 | 90427 Nürnberg | Germany
Tel. +49-911-32002-256 | Fax +49-911-32002-299
Mobil +49-172-9354670 | www.nureg.de
Nürnberg HRB 22653 | USt.ID DE 814 685 653
Geschäftsführer: Michael Schmidt, Stefan Boas

_______________________________________________
Dirvish mailing list
[email protected]
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to