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 +%`