|
Re: Re: archiving errors - missing posts: msg#00177sysutils.backup.backuppc.general
On Fri, 2005-02-25 at 08:05 +0000, Damian O'Hara wrote: > 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. > hmm. I thought I had an option there to copy the fulls instead of the incrementals. Let me check.... yeah. The script is current set to copy the incrementals to the burn dir if they exist. If you set doincr to 0 and keepfull to 1 (obviously) it will copy the full archives to the burn directory. The script works by first using the backuppc-tarcreate feature to make an archive of the host's shares. This archive is equivalent to a full backup because of how backuppc works. It then (if you have the option set) creates incrementals from that by taking all files changed in past x days. As I was setting up burning at my client's location, I decided that for our purposes it was most logical to set masterIncr to 0 and set the burn dir to /backuppc-arch/burn/$client. We are only burning the incrementals because a full backup will not fit on a DVD (the daily incrementals are currently about 2GB) Unless you mean (as I sorta gather from you script below) that you only want the burn setup feature to run after backuppc actual does a full backup (so I guess every week or however you set it up), in which case I could try to add that feature to the script. It would be easy enough to set whether or not to burn after an incr or full and to have it run the burn command (I use a separate shell script cuz I hadn't really thought of integrating it directly until now), I'm just not sure about integrating the tail command (I'm no perl expert. I had lots of help from the list to get the script working). I'll play around with that a bit. And if anyone knows how to deal with multiple discs, I'd like to know too. Mark II > 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/ > > -- --- Mark D. Montgomery II techiem2@xxxxxxxxxxxx http://techiem2.no-ip.com:444 Isaiah 40:28-31 ------------------------------
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Backuppc 2.1.0pl1 10.05GB archive abort by signal=ALRM: 00177, Robert Becskei |
|---|---|
| Next by Date: | Backuppc 2.1.0pl1 10.05GB archive abort by signal=ALRM: 00177, Robert Becskei |
| Previous by Thread: | Re: Re: archiving errors - missing postsi: 00177, Damian O'Hara |
| Next by Thread: | Re: Re: archiving errors - missing posts: 00177, Damian O'Hara |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |