On Tue, Oct 28, 2008 at 11:04:34PM -0500, John Jackson wrote:
> On Wed, Oct 29, 2008 at 03:48:25PM +1300, Paul M wrote:
> > I'm looking for a way to encrypy backup files for secure storage.
> > 
> > Gpg is an obvious candidate, but I'm wondering if there's anything in 
> > base, perhaps a creative use of ssh or some other tool, though not 
> > something liable to break, obviously.
> > 
> > Any thoughts would be much appreciated.
> > 
> > paulm
> > 
> 
> Assuming you have a public key for '[EMAIL PROTECTED]' and corresponding
> private key to decrypt.  Use this as a 'quick and dirty' example.  
> Openssl can probably be substituted for gpg.
> 
> cd / && sudo tar cf - $(find . -maxdepth 1 !  -name './tmp' ! -name '.') 
> 2>/dev/null | gpg -r [EMAIL PROTECTED] | ssh somehost "dd 
> of=/space/obsd-kvm.`date +%`
> 

Would be helpful to add a decent extension:

cd / && sudo tar cf - $(find . -maxdepth 1 !  -name './tmp' ! -name '.') 
2>/dev/null | gpg -r [EMAIL PROTECTED] | ssh somehost "dd 
of=/space/obsd-kvm.`date +%F`.tar"

Reply via email to