Ok.. I have added this to "BackupPC_archiveHost" ( at the bottom ),
for tar.gz over harddisk and tar that to tape:

#
# ** Write to Tape **
#
my $mesg = "Writing to Tape: $outLoc/$host.$bkupNum.tar$fileExt";
print("$mesg\n");
$cmd = "cd $outLoc; /bin/tar cvf /dev/nst0 $host.$bkupNum.tar$fileExt";
my $ret = system($cmd);
if ( $ret ) {
   print("Error Writing to Tape /dev/nst0: $cmd\n");
   exit(1);
}

#
# ** Delete hard archive **
#
my $mesg = "Removing temp Archive: $outLoc/$host.$bkupNum.tar$fileExt";
print("$mesg\n");
$cmd = "rm $outLoc/$host.$bkupNum.tar$fileExt";
my $ret = system($cmd);
if ( $ret ) {
   print("Error Removing temp Archive: $cmd\n");
   exit(1);
}

------------------------------------------------

This is the config.pl for "archive"

$Conf{XferMethod} = 'archive';  :
$Conf{ArchiveDest} = '/backup/data/tape';
$Conf{ArchiveComp} = 'gzip';

Bye!


2006/1/13, Vincent Fleuranceau <[EMAIL PROTECTED]>:
> > # mt -f /dev/st0 fsf 1
>
> Personnally, I've not been able to make this work when I have multiple
> sessions on a tape...
>
> Instead, I use tar -t to jump to the next session.
>
> Example:
> (assuming you've set the $TAPE environment variable)
>
> % mt rew
> % tar c one
> % tar c two
> % tar c three
> % mt rew
>
> % tar t
> one
> % tar t
> % tar t
> two
> % tar t
> % tar t
> three
>
> "When tar writes to the tape, it writes the file, then writes two
> "tape marks" at the end of the file, to signify the end of the
> archive. When you read the tape again, an extra read (the extra tar t)
> is required to "skip over" the extra tape mark."
>
> See http://www.pop.psu.edu/help/file-management/using-tar.htm
> ("Advanced stuff" section)
>
> I hope this helps you...
>
> -- Vincent
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to