NAME
snapback_loop -- loop waiting to call snapback2
SYNOPSIS
snapback_loop [-c configfile] &
DESCRIPTION
This script just loops looking for a file in the communication directory, by default /tmp/backups. It then calls snapback2 with the specified configuration file name root based in /etc/snapback.
To initiate a backup, you just put entries in crontab like:
18 * * * * touch /tmp/backups/snapback
The filename is the name of the snapback configuration file. The above would cause a call to:
/usr/local/bin/snapback2 snapback
which is equivalent to
/usr/local/bin/snapback2 -c /etc/snapback/snapback.conf
Errors in snapback are emailed to the AdminEmail
address set in the snapback.conf configuration.
If the snapback configuration file is not specified with the -c
command line option, the following files are checked for existence in order and the first one found is used:
/etc/snapback2.conf
/etc/snapback/snapback2.conf
/etc/snapback.conf
/etc/snapback/snapback.conf
If it is still not found, the defaults will be used.
OPTIONS
- -c configfile
-
The complete path to the configuration file to use. If not specified, defaults to:
/etc/snapback2.conf /etc/snapback/snapback2.conf /etc/snapback.conf /etc/snapback/snapback.conf
- -d
-
Turns snapback2 debug on. Equivalent to setting "SnapbackOpts -d" in the configuration file. Will not override SnapbackOpts in the config, though.
AUTHOR
Mike Heins, <mikeh@perusion.com>.