Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Duplicity 4

Duplicity 4 (duplicity4) backs directories by producing encrypted, tar-format volumes and uploading them to a remote or local storage backend. By using librsync and the rsync algorithm, Duplicity generates bandwidth- and space-efficient incremental archives that only record binary deltas of changed files. Archives are encrypted and signed using GnuPG to ensure privacy, integrity, and authenticity.

Key Features

  • Concurrent Backend Worker Pool: Multi-worker asynchronous volume compression, encryption, and upload pipeline (src/backend.py) for significantly faster backups.
  • Concurrent Restore Prefetching: Asynchronous volume prefetching for restore and verification operations.
  • Hardware-Accelerated Compression: High-throughput compression using zlib-ng.
  • Advanced File Handling: Native sparse file detection and efficient chunking (--sparse) alongside preserved hardlink reconstruction (--hardlinks).
  • Encrypted & Signed Backups: Uses GnuPG to encrypt and sign archives with standard OpenPGP or CMS (X.509) keys.
  • PAR2 Error Correction & Resilience: Integrated PAR2 wrapper backend (par2+<scheme>://) provides automated aggregate parity protection against bit rot and storage corruption, with on-the-fly repair during restores and standalone manual recovery support.
  • Bandwidth & Space Efficient: Employs librsync to compute binary deltas for changed files in incremental backups.
  • Standard Archive Format: Volumes are standard POSIX tar format archives encrypted with OpenPGP/CMS. Standard descriptive filenames are created (creation of legacy short filenames has been deprecated, though existing archives with short filenames will still be read).
  • Extensive Storage Backend Support: Backups can be stored locally or uploaded to cloud and remote services (SSH/SFTP, rsync, Amazon S3, Backblaze B2, Google Cloud Storage, Microsoft Azure Blob, Google Drive, Microsoft OneDrive, Dropbox, WebDAV, Swift, Mega, and more).
  • Restartable Transfers: Asynchronous volume generation and transfer resume support for reliable operation over interrupted connections.
  • Standardized Logging: Python standard logging integration with named severity levels (error, warning, notice, info, debug, critical) and machine-readable output options.

Quick Start Examples

1. Perform a Backup

# Backup local directory to a remote SFTP destination
duplicity /home/user/data pex+sftp://user@example.com/backup

# Force a full backup
duplicity full /home/user/data pex+sftp://user@example.com/backup

2. Restore Files

# Restore the entire latest backup to a destination folder
duplicity restore pex+sftp://user@example.com/backup /home/user/restore

# Restore a specific file from 3 days ago
duplicity restore --file-to-restore document.txt --time 3D pex+sftp://user@example.com/backup /home/user/document.txt

3. Verify and Compare Backup Integrity

# Compare remote backup contents against the local filesystem
duplicity compare pex+sftp://user@example.com/backup /home/user/data

# Verify remote backup volume checksums and integrity
duplicity verify pex+sftp://user@example.com/backup /home/user/data

4. Check Backup Status and List Files

# Show collection status (backup sets and volume chains)
duplicity collection-status pex+sftp://user@example.com/backup

# List all files currently contained in the backup archive
duplicity list-current-files pex+sftp://user@example.com/backup

5. Error-Corrected Backups with PAR2

# Create backup with 20% aggregate PAR2 error correction redundancy
duplicity --par2-redundancy 20 /home/user/data par2+pex+sftp://user@example.com/backup

# Restore with automatic corruption detection and on-the-fly PAR2 repair
duplicity restore par2+pex+sftp://user@example.com/backup /home/user/restore

System Requirements

  • Python: Python >= 3.10 (tested through Python 3.15).
  • C Libraries: librsync (>= 0.9.7, 2.x recommended), zlib-ng.
  • GnuPG: gpg (2.x) or gpgsm.
  • Build Tools: C compiler (gcc or clang), make, python3-dev, pkg-config.

Documentation & Guides

Comprehensive guides for users, packagers, and developers are organized in the README/ directory and documentation:

Help & Community

Metadata

Release files for duplicity 4.0.0.dev11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for duplicity 4.0.0.dev11
File Size Uploaded Provenance Actions
duplicity-4.0.0.dev11.tar.gz 1.2 MB Without provenance Details for duplicity-4.0.0.dev11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for duplicity 4.0.0.dev11
File Interpreter ABI Platform Actions
duplicity-4.0.0.dev11-py3-none-any.whl Python 3 none any Details for duplicity-4.0.0.dev11-py3-none-any.whl

Total release size: 2.4 MB

Release files / duplicity-4.0.0.dev11.tar.gz

Download URL duplicity-4.0.0.dev11.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
f54bfd907f8f1b849c4a2c675fcdffc9fea4ec13a880b27256ca2b7e94e917c6
BLAKE2b-256 checksum
How to use checksums
970cd8717a82b6d59056a830a53d72ea7aa4c8a02f95667da80183864989c935
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / duplicity-4.0.0.dev11-py3-none-any.whl

Download URL duplicity-4.0.0.dev11-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b2d42b28ce61a48a43a6330524fd63d73ede71bb79768fbf1a1863bc71ab58f7
BLAKE2b-256 checksum
How to use checksums
6482daa3fa15d638f30cdcf23938e3320f00571cab862783d8505ec23de19b6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for duplicity 4.0.0.dev11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page