Etusivu

Liisa

Autot
Juhlat
Kotiteatteri
Kuvaaminen
Sukeltaminen
Matkailu
Musiikki
Ohjelmat
Roolipelit
Ruuanvalmistus
Tietokoneet
Arkistot
Sekalainen
Sivuhakemisto

BackupWrap

News
Download
Requirements
License

BackupWrap is a perl-script which wraps the excellent rdiff-backup adding support for multiple hosts as well as multiple ways to backup the data. The script is ideally used as a cron-script.

As with many backup scripts, I wrote it out of need to have a handy way to manage multiple hosts and multiple ways to access them. The script is insofar in no way comprehensive, it only fulfills those requirements which I have.

Specifically the script can be set up to:

  • Backup from multiple hosts by defining multiple targets in the config
  • Backup from SMB/CIFS shares
  • Plain copy from a SMB share (if the rdiff-backup does not work)
  • Define on per host basis what should be backupped
  • Define alternative target-dirs where to put the backup files
  • Remove older-than-defined incrementals
The XML-formatted config-file contains various examples which should give a good picture of the capabilities.

Running the script i simple:

Usage: runbackup.pl [--config=] [--dryrun] [--help]

config use an alternative config file instead of $defaultcfg
dryrun Do not do the actual backup, show only what would be done
help   This help

Download

You can download the tar-package containing the script-and config-file from here. I use subversion to manage the software releases and use the release number instead of version numbers.

News

2007.02.26
Add a more verbose disk space reporting. The script now requires Number::Bytes::Human-package. Since the module may be hard to find prepackaged to RPM, I also provide it both as a source package and 'binary' for the CentOS 4.4.

2006.02.08
Set up this page. Revision 4: added the possibility to define alternative target dir per host basis.

Requirements

The script requires the following additional perl packages:
Mail::Mailer
XML::Simple
Data::Dumper
Time::localtime
IPC::Open3
IO::Handle
Getopt::Long
Filesys::DiskFree
Number::Bytes::Human

License

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation version 2 of the License, and provided
 that the above copyright and permission notice is included with all
 distributed copies of this or derived software.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

Copyright (c) Paul-Erik Törrönen unless explicitly mentioned otherwise

Masseter koirakoulu

Vempain Publishing System