When I replied to the thread four months later, I got no reply, so I try

resending it in case Craig don't check so old threads...


-Stian


-------- Original Message --------
Subject: Re: [BackupPC-users] Trouble with tape archiving
Date: Fri, 26 Oct 2007 14:22:18 +0200
From: Stian Jordet <[EMAIL PROTECTED]>
To: Craig Barratt <[EMAIL PROTECTED]>
CC: [email protected]
References: <[EMAIL PROTECTED]>



Craig Barratt wrote:
 > Stian writes:
 >
 >> [EMAIL PROTECTED]:~$ /usr/share/backuppc/bin/BackupPC_tarCreate -h pontiac
 >> -n -1 -s \* . | /bin/gzip >> /dev/nst0
 >> which is what backuppc tries to do when archiving to tape. And this 
does
 >> not work.
 >>
 >
 > As Dan and Ali mention, you can use buffer or dd to reblock
 > the stream.
 >
 > You can make a copy of BackupPC_archiveHost and change it to
 > run the commands of your choice. Update $Conf{ArchiveClientCmd}
 > to point at your customized archive script.
 >
Hi,

sorry for the very late reply. I haven't had time to check this out
until now. The problem was that the last block written had to be padded
out to the blocksize. I don't know why this just had to be done when
using gzip/bzip2. And GNU tar worked fine with the z or j option. Either
way, I'm now running with this patch:

--- BackupPC_archiveHost 2007-08-27 22:33:53.000000000 +0200
+++ BackupPC_archiveHost2 2007-10-10 15:45:55.392387027 +0200
@@ -110,7 +110,7 @@
#
# Output file is a device or a regular file, so don't use split
#
- $cmd .= ">> $outLoc";
+ $cmd .= "| buffer -B -o $outLoc";
$mesg .= " to $outLoc";
} else {
mkpath($outLoc) if ( !-d $outLoc );

I'm just curious, is there a better way to do this? Perhaps within perl,
so I don't have to fork a process to run buffer?

Thanks for backuppc once again. It's perfect! (Although I wish it better
supported off-site storage ).

Regards,
Stian

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to