# defaults for module: cli-backup
#
[backup-server]
  server	::service.backup::
  disks		/mnt/backup
  mountdir	/mnt/backup
  email		::contact.backupadmin.email::

[backup]
  <super>	backup-template




#------------------------------------------------------------------------------
# backup templates (generic)
#------------------------------------------------------------------------------

# defaults
#
[backup-template]
  desc		(default backup settings)
  excludes	spool/squid/* no-backup/* on-cd/* trac/bzr-checkouts/* swap.img
  dirs		/etc /usr/local /opt /boot /root ::path.datadir::
  saveperms	false


# conf: only configs and /var (logs, non lsb custom content)
#
[backup-template.generic_conf]
  desc		generic only config
  dirs          /etc /usr/local /var /root

# opt: custom content (configs, opt, logs, var)
#
[backup-template.generic_opt]
  desc		generic only config + /opt
  dirs          /etc /usr/local /var /root /opt

# full: full system, the exclusion on / prevents datadir to be duplicated
#               if not on separate filesystem
#
[backup-template.generic_full]
  desc		generic full system (separated datadir)
  dirs          /,--exclude=::path.datadir::/* ::path.datadir::

# nosys: configs, logs and datadir
#
[backup-template.generic_nosys]
  desc		generic configs, opt and datadir (no system)
  dirs          ::backup-template.generic_opt.dirs:: ::path.datadir::



#------------------------------------------------------------------------------
# backup templates (classes)
#------------------------------------------------------------------------------

# server: full system
#
[backup-template.server]
  desc		'server' class backup (full system)
  <super>       backup-template.generic_full


# laptop: full system except for ftp/* mirrors
#
[backup-template.laptop]
  desc		'laptop' class backup (full system but not ftp/*)
  <super>       backup-template.generic_full
  excludes      ::backup.excludes:: ftp/*

# vhost: kvm/xen/vbox servers, full sys, exclude raw disks, because each vm must
#               be backed up individually
#
[backup-template.vhost]
  desc		'vhosts' (xen,kvm) class backup (full sys, no xen domans, kvm *.img, *.vdi)
  <super>       backup-template.generic_full
  excludes      ::backup.excludes:: xen/domains/* kvm/*.img kvm/disks/*.img *.vdi

[backup-template.xen]
  <super>       backup-template.vhost
[backup-template.kvm]
  <super>       backup-template.vhost



