When using Duplicity with Azure Blob Storage as your backup destination, here are the essential commands for managing and restoring your backups.

Restore a specific folder at a point in time

sudo duplicity restore \
  --file-to-restore folder/ \
  --time '2018-08-06T05:00:00+02:00' \
  azure://container \
  ./backup/folder/

The --time flag lets you restore from a specific snapshot, which is invaluable when you need to recover data from a precise moment.

Useful utility commands

List current files in the backup

duplicity list-current-files azure://container

Check the backup collection status

duplicity collection-status azure://container

This shows you all the backup chains, their dates, and whether they’re full or incremental — essential for understanding your backup health.

See also: Install Duplicity on Ubuntu Linux and use Azure Storage as backup destination