lxc-backup
I've found the lxc container technology exceptionally lightweight and resources-saving. This script backups a lxc container with lvm backing store to smb network share.
It does the work without turning it off, and it works like a flash ! I preferred a pure Debian implementation of lxc, and not the Proxmox one, to have hands free for updates and use only Debian official stuff.
The script can also be used in Proxmox, though, to backup and after import containers in a pure Debian environment.
Arguments:
container name, disk name, dst.share, user, domain, password, vg
Prerequisite: packages pv, cifs-utils, moreutils installed
Usage:
lxc-backup.sh lxc_name disk_name destination_share user domain password volGroup
Download