Skip to content
Example config and scripts to perform a clean backup of Linux Containers. Therefore the containers are stopped right before the backup and started right after the backup.
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


With lxc-duply-backup you can generate Deb or RPM packages that automatically backup Linux Containers. It makes use of duply and cron jobs.

The origins of lxc-duply-backup can be found in my blog post.

Containers are stopped before the backup and started right after the backup to make sure the backups are clean. Otherwise data might still be in memory and not on disk.

Dependencies (for building packages)

Or take a look at basalt.

Dependencies (for the package itself)

Debian/Ubuntu: apt-get install lxc duply


  1. Create your own config. Most likely you want to change the package name, the paths to the config files (with the container name), the config path and container name.
  2. And build the package: invoke build_deb --config configs/my_new_config.yaml


Public Domain

You can’t perform that action at this time.