Integrate Duplicity with IDrive® e2
Duplicity is an open-source, command-line backup tool that creates encrypted, versioned, incremental backups to local or remote storage. It uses tar, librsync, and GnuPG for secure, bandwidth-efficient backups and supports multiple storage backends, including S3-compatible storage. Integrating Duplicity with IDrive® e2 provides a capable, scalable cloud object storage solution that enables secure, efficient, and cost-effective backup storage and recovery.
Prerequisites:
Before you begin, ensure the following:
- An active IDrive® e2 account. Sign up here if you do not have one.
- A bucket in IDrive® e2. Learn how to create a bucket.
- Valid Access Key ID and Secret Access Key. Learn how to create an access key.
- The latest version of the Duplicity software suite installed on your machine.
Configure Duplicity with IDrive® e2
The following steps can help you successfully integrate Duplicity with IDrive® e2 and configure backup.
- Install and open Duplicity using a valid command.
# sudo apt install duplicity python3-boto3 gnupg -y
- Export your IDrive® e2 credentials, as mentioned below.
export AWS_ACCESS_KEY_ID="Your e2 access key"
export AWS_SECRET_ACCESS_KEY="Your e2 Secret Key"
export AWS_DEFAULT_REGION="Your e2 region"
- Select the source from the local storage you want to back up, e.g.,
Actual directory /home/documents/data/
- Run the command below to start a backup from the selected source to your IDrive® e2 bucket.
# duplicity --s3-endpoint-url=https://<your e2 s3 end-point>
--s3-region-name=<your e2 region> ~/<Source-folder-path>
boto3+s3://<e2 bucket name>/<folder-name to keep backup>The backup will start, and you will receive the details shown below upon its successful completion.
--------------[ Backup Statistics ]--------------
StartTime 1786706975.48 (Fri Aug 14 11:29:35 2026)
EndTime 1786706977.73 (Fri Aug 14 11:29:37 2026)
ElapsedTime 2.26 (2.26 seconds)
SourceFiles 202
SourceFileSize 209719321 (200 MB)
NewFiles 202
NewFileSize 209719321 (200 MB)
DeletedFiles 0
ChangedFiles 0
ChangedFileSize 0 (0 bytes)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 202
RawDeltaSize 209715225 (200 MB)
TotalDestinationSizeChange 105929015 (101 MB)
Errors 0
Restore Backup to Local Folder
To restore your backup to your local folder, follow the steps mentioned below,
- Create a folder to store backups locally, e.g.,
# mkdir -p ~/restored-files
- Now run the restore command as mentioned below:
# duplicity --s3-endpoint-url=https://<your e2 s3 end-point>-
-s3-region-name=<your e2 region> boto3+s3://<e2 bucket
name>/<backedup-folder> ~/<local path to restore backup>
Once the restore command succeeds, you can verify the local folder by listing its objects.
Note: The data restoration process is managed by your backup software, which helps recover lost or compromised data. Each computing environment is unique, and factors such as data type, software settings, and system performance can impact the restoration process. If you encounter issues or have application-specific questions, please contact the technical support team for your backup software for expert assistance.