BackupPC-users

[BackupPC-users] cronjob if needed

2009-11-18 08:29:25
Subject: [BackupPC-users] cronjob if needed
From: Matthieu Bollot <matthieu.bollot AT nereide DOT fr>
To: backuppc-users AT lists.sourceforge DOT net
Date: Wed, 18 Nov 2009 14:25:44 +0100
Hi,

I want to send an email after 7 days since the last backup, so I could
setEMailNotifyOldBackupDays to 6.97.

But what I actually want is to send an e-mail at 12am. So I could make a
cron job :
00 00 12 * * backuppc /usr/share/backuppc/bin/BackupPC_serverMesg backup
host.domain.tld host.domain.tld backuppc 1

Now, more difficult (that's why I'm sending an email) I want to do both
of them.
after 6days, the next time  it is 12am I send an email.
ie : 
I backup monday 1st at 5pm, 
I receive an email monday 8th at 12am. And backup when receiving the
email
I backup thursday 11th at 8am
I receive an email wednesday 17th at 12am


What is the best way to do this ? My last try will be to make a script,
using BackupPC_serverMesg 'status host(myhost)'
But, I don't want to specify each host, it should be done for all.

So, if you know a better way, or how I could script that easily then
give me some hints (eg which variable or option of serverMesg). I will
do this in shell but the results of backuppc_servermesg seems to be
perl, isn't it ?

Thanks in advance,
Matthieu.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>