vbackup

vbackup is a modular program that performs easy system backups. It can be extended by user scripts and can be fully configured to fit a system needs. vbackup can be customized to perform full or incremental backups where they are supported.

vbackups consists of a set of scripts (modules) that handle various aspects of a backup. Currently it supports:

  • Filesystem backup using tar
  • XFS backup using xfsdump
  • PostgreSQL database backup
  • MySQL database backup
  • Debian package list backup
  • RPM database backup
  • MBRs, partition, mdadm and LVM information
  • OpenLDAP backup
  • Encryption with gpg or x509 certificates using openssl

It can store the backups to a local or a remote NFS partition that may be mounted on-demand. It can also use scp to copy files to a remote host.

All of vbackup behaviour can be fully extended and other methods can be easily added. Customized backup steps are also possible using the exec plugin.

A configuration wizard is included to ease first time configuration.

Debian users: vbackup is included in debian. You can install it using:

apt-get install vbackup

Be sure to include a “testing” source in sources.list and run:

apt-get update

Vbackup’s source code can be found at https://github.com/sharhalakis/vbackup

Full vbackup documentation can be found at http://vbackup.readthedocs.org

Sample run

This is the output of a level-5 backup, as it is configured on a production system (partially trimmed).

This backup method:

  • Mounts a remote directory with NFS.
  • Backups dpkg database.
  • Backups various directories using tar.
  • Backups all PosgreSQL and MySQL databases.
  • Umounts the remote directory.

Here is the output:

Using /etc/vbackup/backup.5
Reading: /etc/vbackup/backup.5/vbackup.conf
Mounted /mnt/backup via NFS
Storing dpkg selections to /mnt/backup/dpkg//dpkg_selections.091205.gz... done
Creating /mnt/backup/fs/091205-5/ (DESTDIR)
----------------------------------------
/etc -> /mnt/backup/fs/091205-5//5.etc.091205.tar.gz
Last level 5 backup of /etc: Sat Nov 28 03:20:02 EET 2009
Backup will be based on L0 backup at Sat Jan 10 16:06:54 EET 2009
Done
----------------------------------------
----------------------------------------
/root -> /mnt/backup/fs/091205-5//5.root.091205.tar.gz
Last level 5 backup of /root: Sat Nov 28 03:20:02 EET 2009
Backup will be based on L0 backup at Sat Jan 10 16:06:54 EET 2009
Done
----------------------------------------
----------------------------------------
/home -> /mnt/backup/fs/091205-5//5.home.091205.tar.gz
Last level 5 backup of /home: Sat Nov 28 03:20:02 EET 2009
Backup will be based on L0 backup at Sat Jan 10 16:06:54 EET 2009
Done
----------------------------------------
----------------------------------------
/var/www -> /mnt/backup/fs/091205-5//5.var.www.091205.tar.gz
Last level 5 backup of /var/www: Sat Nov 28 03:20:02 EET 2009
Backup will be based on L0 backup at Sat Jan 10 16:06:54 EET 2009
Done
----------------------------------------
Creating /mnt/backup/pgsql/091205/ (DESTDIR)
Dumping: mathitiada to /mnt/backup/pgsql/091205//mathitiada.gz
Dumping: netinfo to /mnt/backup/pgsql/091205//netinfo.gz
Dumping: netinfo3 to /mnt/backup/pgsql/091205//netinfo3.gz
Dumping: netmap to /mnt/backup/pgsql/091205//netmap.gz
Dumping: netmap2 to /mnt/backup/pgsql/091205//netmap2.gz
Dumping: openser to /mnt/backup/pgsql/091205//openser.gz
Dumping: postgres to /mnt/backup/pgsql/091205//postgres.gz
Dumping: vpn to /mnt/backup/pgsql/091205//vpn.gz
Dumping globals to /mnt/backup/pgsql/091205//globals.gz
Creating /mnt/backup/mysql/091205/ (DESTDIR)
Dumping: information_schema to /mnt/backup/mysql/091205//information_schema.gz
Dumping: mobnuke to /mnt/backup/mysql/091205//mobnuke.gz
Dumping: mobphpwebsite to /mnt/backup/mysql/091205//mobphpwebsite.gz
Dumping: mysql to /mnt/backup/mysql/091205//mysql.gz
Dumping: phpwebsite to /mnt/backup/mysql/091205//phpwebsite.gz
Dumping: tikihelp to /mnt/backup/mysql/091205//tikihelp.gz
Dumping: wikidb to /mnt/backup/mysql/091205//wikidb.gz
Umounted /mnt/backup

Debian

Debian developer information

Downloads

vbackup-1.0.1.tar.gz

License

vbackup is distributed under the GPLv3 license