Hi,
I'm cuurently evaluating BackupPC for our firm and for now,
I like it a lot, so it's nice to hear it's so successful for you.
We already have a tape backup system in place, with a 100GB
(uncompressed) tape drive, so currently I'm playing around with the
tape backup function of 2.1beta.
I have a ~300GB tape changer, and ATL L200 to be exact, and I have connected
it to the BackupPC and did get it to archive a small system to tape.
However if I tried to use the compression it failed, saying "2004-06-02
16:58:02 Archive failed (Error: /usr/local//bin/BackupPC_tarCreate, compress
or split failed)" None gets me to tape, but I have to be careful not to
exceed one DLT-8000's capacity or I hang things....
I tried putting the archives to disk first, as for now the BackupPC
machine doesn't have a tape drive.
So I set
$Conf{ArchiveDest}='/srv/data/archives'
Strangely, setting this in the pc/'archivehost'/config.pl didn't work.
From reading the comments in BackupPC_archiveHost, it seems it doesn't
use split when archiving to a device (tape).
It uses BackupPC_tarCreate to extract the data from a certain host and
backup number and convert it into a tar archive. That is piped to
stdout, and into the tape device, or if you specified a directory
as $Conf{ArchiveDest}, pipes it through split. It seems split doesn't
like sizes over 2GB, then the archive fails. Don't know why it fails
with gzip, though...
I will have to figure this out first, so Question One: How does the "split"
work? Is it a tar of N for each host and then cat'ed into split in the
given size? This would suggest that it gets tmp'd somewhere and spooled out
to tape; From what I can interpret of that code, this seems to be the case.
I have a 500 GB RAID on this box but, well, it is getting full, so I want to
be careful to leave room for the backups...
Question Two: Is there a way of using the -M (--multiple volumes) switch in
tar to accomplish this in the existing code? If it is not too difficult to
do, then it helps me greatly in question three.
It seems the archiveHost script doesn't use the "real" GNU tar, but
BackupPC_tarCreate, so probably it doesn't have an -M switch.
Would be a useful feature, though...
Question Three: If the answer to two is yes, then could we also use the tar
switch "--new-volume-script file" ( Run a script at the end of each archive
volume)? This would allow me to automatically have the tape changer move to
the next tape and tar happily continues... I have been using the perl
module juke.pm with the program mtx to do this with some rather kludgy
scripts of my own, but it isn't a prime time solution.
So you have some solution that splits up the archive and changes tapes?
I always wonder when you split up tar archives, can you extract the data
of the parts independently? normally not, I suspect, so to restore
an archive you need all the tapes.
In my tests it did one tar archive per host, so if these are smaller
than one tape, you wouldn't need to split archives, but fill each tape
with several tar's, then change tapes, etc.
Question four: If the above will work, then might there be a way of setting
this to go on a sensible schedule, with a message to the backup operator
when the Data Storage Elements are full and need to be changed? My boss
wants this in case I get hit by a truck tomorrow on the way to work.
That's one of my questions, too. I was wondering if one could call
BackupPC_archive from the command line, instead of using the web
interface. Thus, one could use cron to automate it.
Another thing I was thinking about is some kind of tape management, like
amanda does. Like giving labels to each tape, checking if the right tape
is in the drive before starting to write (prevent erasing the wrong
tape), storing some catalogue of the tapes.
Anyway, some comments from someone with more insight about BackupPC
would be helpful. I don't know too much perl, I know more about C (++)
and Python...
Best regards,
Oliver Freyd
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/
