logo       

Re: Re: archiving errors - missing posts: msg#00175

sysutils.backup.backuppc.general

Subject: Re: Re: archiving errors - missing posts

I sent 2 replies yesterday and neither seemed to make it to the list - odd. Here they are again ...
==================
For Carl:

Oops! Nice typo. That should be ....

mkdir /opt/backuppc/files/pc/archives-disk
ln -s /opt/backuppc/files/conf/archives-disk.pl /opt/backuppc/files/pc/archives-disk/archives-disk.pl

==================

Mark Montgomery's archiveme.pl script seems to work fine but I'd like to only copy the fulls to CDRW/Tape.

As I don't know perl, here's a shell kludge to show what I'm trying to do ....

#!/bin/sh
hosttoarch="jola"
lastbackup=`tail -1 /opt/backuppc/files/pc/$hosttoarch/backups | awk '{print $2}'`
if [ $lastbackup = "incr" ] ; then
echo "last was incr"
exit 0
else
echo "last was full"
# Uncomment next 2 lines to write CD
# mkisofs -R -o /tmp/cdimage.raw /opt/backuppc/files/pc/archive/$hosttoarch/*
# cdrecord -v dev=0,0,0 speed=20 driveropts=burnfree /tmp/cdimage.raw

# Uncomment next 2 lines to write to tape device
# tar cvf /dev/rst0 /opt/backuppc/files/pc/archive/$hosttoarch/*
# rm /opt/backuppc/files/pc/archive/$hosttoarch/*
mail -s "Weekly archive created - please change CD/Tape" backupadmin@xxxxxxxxxx < /dev/null
fi

It could be tagged to start after Mark's script or called at the end of it.
It doesn't cope with multiple CDs/DVDs/Tapes if required but you get the idea.
Can anyone with an interest and some perl make any improvements on this ?
If there's an easier way then I'm all ears

Damian



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise