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)
apt-get install lxc duply
- 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.
- And build the package:
invoke build_deb --config configs/my_new_config.yaml