How I encrypt my backups in the cloud

One thing that I do in order to secure my data is to use encryption. So why shouldn’t I do the same with the sensitive files of my websites. Like database dumps or php files contains passwords like the wp-config.php. I found a kind of easy way to do this by simply adding all the files to a zip file and then encrypting this file using GnuGPG. GnuGPG is preinstalled with every ubuntu distribution and uses the OpenPGP standart to encrypt data. But as I don’t want to use public and private keys to encrypt the data I simply use the password mode of GnuGPG. To encrypt the data I use this command: echo password-here | gpg --passphrase-fd 0 -c /path/to/backupfile.zip the field where it says password-here is the place where you want to put your encryption password. After entering the command your file will be encrypted. You can fing the encrypted version if you look for the .pgp file extension.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s