BackupPC-users

Re: [BackupPC-users] BackupPc tape config

2009-01-13 16:27:40
Subject: Re: [BackupPC-users] BackupPc tape config
From: Stian Jordet <liste AT jordet DOT net>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 13 Jan 2009 21:49:40 +0100
ma., 12.01.2009 kl. 13.46 +0100, skrev Sil:
> Hi,
> I need to configure a tape drive to archive my backups.
> I found documentation here : 
> http://backuppc.sourceforge.net/faq/BackupPC.html#configuring_an_archive_host
> But I must configure this size block option to tar (-b 10) in :

I did it by patching the BackupPC_archiveHost script like this:

--- BackupPC_archiveHost        2008-10-17 21:39:06.000000000 +0200
+++ BackupPC_archiveHost2       2009-01-13 21:46:22.000000000 +0100
@@ -112,7 +112,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 );

Obviously I had other needs than you, but I guess changing the buffer
command to "buffer -s 5120 -o $outLoc" would do the trick for you :) If
you find a better way, I'm very interested :)

Regards,
Stian


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/