BackupPC-users

Re: [BackupPC-users] Encrypted archives

2011-03-31 13:52:18
Subject: Re: [BackupPC-users] Encrypted archives
From: Adam Monsen <haircut AT gmail DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Thu, 31 Mar 2011 17:44:46 +0000 (UTC)
Josh Marshall writes:
> On Sat, 15 Jan 2005 01:09, Craig Barratt wrote:
> > Shouldn't the last two lines be reversed, so that encryption is
> > run after compression?
> 
> Very true. My fault. This is what it should be:
> 
> my $cmd = "$tarCreate -t -h $host -n $bkupNum -s $share . ";
> $cmd   .= "| $compPath " if ( $compPath ne "cat" && $compPath ne "" );
> $cmd   .= "| encrypt_stream_command ";

I used this method to "ccencrypt" files during archive. Quite handy.

In BackupPC_archiveHost, I just added a couple of lines after $compPath
is added to $cmd, just like the above example...

$cmd     .= "| /usr/bin/ccencrypt --keyfile /root/backuppc_key";
$fileExt .= ".cpt";

Everything seemed to work. There were a few "Got unknown type 8" errors
since probably tar didn't like some socket files, but tar seemed to
complete. Then, at the very end:

  exiting after signal ALRM
  Archive failed: aborted by signal=ALRM

So I'm not sure if I should really trust these archives. :)


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
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/

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [BackupPC-users] Encrypted archives, Adam Monsen <=