1. tar + openssl file encryption:
There is a folder named test in the current directory:
1. Use tar to encrypt the file:
# Tar-zcvf-pma | openssl des3-Salt-K password | dd of = test. des3
After the installation is complete, a package file named test. des3 is generated. Replace the password with your password.
2. decompress the encrypted file using tar:
# Dd if = test. des3 | openssl des3-D-K password | tar zxf-
Note: The command ends with "-", which releases all files. Here,-k password can be left blank. After the command is executed, you will be prompted to enter the password, and the-k parameter will be added to automatically verify the password in the program.
See: http://www.ha97.com/5114.html
2. encrypted transmission of backup files using keys.
Appendix: View the content contained in the compressed package.
Tar-zTF test.tar.gz
Tar-jTF test.tar.bz2
This article is from My DBA life blog, please be sure to keep this source http://huanghualiang.blog.51cto.com/6782683/1293800