Cloud backup with MCrypt and S3cmd

To the Clouds

Article from Issue 171/2015
Author(s):

Encrypted backup is easier than ever with MCrypt and the Amazon Web Service's S3cmd utility.

I will wager that one of the first things a computer teacher or resident computer guru ever said to you was: "Remember to back up your files." Over the years, I've had a couple of noteworthy backup headaches. Thankfully, the episodes were only minor mishaps, not full-fledged disasters, but these close calls made me fully understand the need for a simple and methodical backup process.

The cloud makes backups easier than ever. The configuration is no more difficult than before, and you don't have to fumble around with CDs, SSDs, backup tapes, or other physical media. Several cloud-based services specialize in cloud backup, but if you're integrating your backup system with existing scripts and standard practices, you might want a little more control over how you manage your cloud backup system. In this article, I describe how to encrypt a file or file collection using MCrypt and upload the encrypted file onto the Amazon S3 cloud. To help you better understand the encryption process and examine some additional features let's first look at two simple encryption tools.

Mmmmm

MCrypt [1] is a simple file encryption tool that is very suitable for encrypted backup scenarios. On Debian and Ubuntu, you can install MCrypt easily as follows:

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Command Line – crypt

    If you just need to encrypt a file or two, a descendant of crypt can do the job. Which one you choose depends on your objective.

  • Duplicity Cloud Backup

    If you're looking for a secure and portable backup technique, try combining the trusty command-line utility Duplicity with an available cloud account.

  • Manage Amazon S3 with s3cmd
  • Charly’s Column: S3QL

    Sys admin Charly has been an enthusiastic amateur photographer for many years. Recently, he started worrying about something happening to his rapidly expanding photo collection. Can the cloud save the day?

  • Duplicati

    The free backup tool Duplicati simplifies the process of backing up data with cloud providers while at the same time protecting backups with strong cryptography.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News