Database Backup file encryption

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.