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


tar zcf - filestobetared files.tar.gz


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

Personal tools