dobackup.pl is a flexible Perl script to handle unattended incremental backups of multiple servers.
Version: 4.35dobackup.pl is a flexible Perl script to handle unattended incremental backups of multiple servers.
Operating System: Linux
It handles multiple media sets with automatic media preparation and rotation, configurable 'what-to-backup', global per-host exclusion patterns, and user settable 'don't-back-this-up' metafiles.
dobackup.pl goal is zero-maintenance, nothing to do except change the media when told (if that, even!)
Each unit of media used for dobackup must be uniquely identifiable. To this end, dobackup looks for a file named "MEDIAUNIT=" on the disk (in the mount-point really) before starting the backup. The reasons are two-fold: 1) to ensure that a media unit is really intended for backups, so you don't wipe out something important by accident, and 2) to verify that proper rotation of media units has occurred.
To prepare each unit, format and mount it as usual, then:
# touch MEDIAUNIT=< tag >
# chmod 000 MEDIAUNIT=< tag >
where < tag > is equal to the unit name, e.g. "JAZ01".
If you have 4 JAZ cartridges, use names like JAZ01, JAZ02, JAZ03, JAZ04, then put each of these names in /etc/dobackup.conf, in the appropriate section. The names are really arbitrary. You could call the units "Larry", "Curly", and "Moe", if you wanted to, but they must be listed in the config file in the order in which they will be rotated. For example: