|
Doug wrote ......
> Leif Gunnar Einmo wrote: >> Hey everybody !! >> I'm working on a of-site backupsystem an have the BackupPc doing the >> work just nice :o)) >> I have 3 diferent WinXX clients that are beeing backed up nightly with, >> and each client having different email adresses. I wont to have a nightly >> e-mail to each client backed up and are a strugeling a bit there :( >> Hoping anyone can help here point me in the direction ... > > Leif, > > I use BackupPC's DumpPostUserCmd to run a script after a backup: > > $Conf{DumpPostUserCmd} = '/usr/local/bin/sendmailend.sh $user $xferOK > $host $type'; > > My script called sendmailend.sh: > > #!/bin/sh > > ### If $2 is a 1, backup completed. > > varDate=`date` > if [ $2 = 1 ] > then > /usr/local/bin/postie -gmt -host:smtp.epiinc.com -to:$1 -from:[EMAIL PROTECTED] > -s:'Backup completion' -a:/backupdata/conf/messageend.txt -nomsg > /bin/echo $varDate 'Exit code:(' $2 ') Completion E-mail sent to:(' > $1' )' >>/backupdata/conf/log.txt > else > /bin/echo $varDate 'Exit code:(' $2 ') Asset Tag:(' $3') E-Mail:(' > $1' )' >>/backupdata/conf/log.txt > fi > > The script uses the freely available postie program to send the mail. The > attachment "messageend.txt" is an HTML formated file that I created with > Mozilla telling the end user a little about the system. > > Hope this helps, > > Doug > Thanks Doug :o) I have the postie installed and working now. Could you also send the messageend.txt file, so i have some ideas for starters. Not so strong in scripting yet, but learning :o)) Thanks Leif Gunnar |
- Re: [BackupPC-users] EMail question Leif Gunnar Einmo
- [BackupPC-users] Email question Klaas Vantournhout
- Re: [BackupPC-users] Email question Klaas Vantournhout
