Debian / Ubuntu: Install Duplicity For Encrypted Backup In Cloud

www.l‮ua‬tturi.com
Debian / Ubuntu: Install Duplicity For Encrypted Backup In Cloud

Duplicity is a tool for creating encrypted backups of local files and directories and storing them in a cloud storage service. It uses the rsync algorithm to efficiently track changes to files and only stores the differences in each backup, which can help save storage space.

To install Duplicity on a Debian or Ubuntu system, you will need to use the apt-get package manager. First, update the package manager's list of available packages:

sudo apt-get update

Then, install Duplicity and its dependencies:

sudo apt-get install duplicity python3-boto

This will install Duplicity and the boto Python library, which is required for interacting with cloud storage services.

Once Duplicity is installed, you can use it to create backups of your local files and directories. For example, to create a backup of the /home directory and store it in an Amazon S3 bucket, you could use the following command:

duplicity /home s3://my-bucket

Replace my-bucket with the name of your S3 bucket.

You can use various options with Duplicity to customize the behavior of the backup. For example, you can use the --encrypt-key option to specify the GPG key to use for encrypting the backup, or the --full-if-older-than option to specify how often to create a full backup rather than an incremental backup.

Created Time:2017-10-28 14:02:26  Author:lautturi