Secure Backup

From Wiki

Jump to: navigation, search

Backup with TAR - GPG Encryption

tar zcf - public_html/ | gpg --encrypt --default-recipient-self > backup.tar.gz.gpg
tar -cvf file.tar filestobetared
tar cvf - filestobetared file.tar
v = verbose - do a print out of the lines
z = instead of verbose - gzip it.
c = create
f = files

Backup

tar zcf - filestobetared files.tar.gz

Recover

gpg -d files.tar.gz.gpg > files.tar.gz
tar -xzf files.tar.gz



http://www.spack.org/wiki/BackUp

Personal tools