Maplat::Worker::BackupCommand - database backup command module
This module does PostgreSQL database backups.
This module is a plugin module for the "Commands" module and handles PostgreSQL backups.
<module> <modname>backupcommand</modname> <pm>BackupCommand</pm> <options> <db>maindb</db> <memcache>memcache</memcache> <commands>commands</commands> <reporting>reporting</reporting> <pgdump>/usr/bin/pg_dump</pgdump> <basedir>/path/to/backups</basedir> <host>localhost</host> <port>5432</port> <username>postgres</username> <database>RBS_DB</database> <sudouser>someusername</sudouser> </options> </module>
Callback to run a command.
Internal function, call the external pg_dump command to execute a full database backup.
This module depends on the following modules beeing configured (the 'as "somename"' means the key name in this modules configuration):
Maplat::Worker::PostgresDB as "db" Maplat::Worker::Memcache as "memcache" Maplat::Worker::Commands as "commands" Maplat::Worker::Reporting as "reporting"
Maplat::Worker
Rene Schickbauer, <rene.schickbauer@gmail.com>
Copyright (C) 2008-2011 by Rene Schickbauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
To install Maplat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Maplat
CPAN shell
perl -MCPAN -e shell install Maplat
For more information on module installation, please visit the detailed CPAN module installation guide.