snapback_loop -- loop waiting to call snapback2
snapback_loop [-c configfile] &
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.
AdminEmail
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:
-c
/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.
The complete path to the configuration file to use. If not specified, defaults to:
Turns snapback2 debug on. Equivalent to setting "SnapbackOpts -d" in the configuration file. Will not override SnapbackOpts in the config, though.
Mike Heins, <mikeh@perusion.com>.
To install snapback_loop, copy and paste the appropriate command in to your terminal.
cpanm
cpanm snapback_loop
CPAN shell
perl -MCPAN -e shell install snapback_loop
For more information on module installation, please visit the detailed CPAN module installation guide.