| java.lang.Object org.continuent.sequoia.controller.backup.backupers.AbstractBackuper org.continuent.sequoia.controller.backup.backupers.ScriptBackuper
ScriptBackuper | public class ScriptBackuper extends AbstractBackuper (Code) | | This class defines a ScriptBackuper, which performs all backup functions by
invoking a generic wrapper script conventionally named 'backupmgr'. The
following options are accepted in the backuper definition:
- bindir -- Directory containing backup script.
- dumpFormat -- Dump format returned by getDumpFormat()
- options -- Options to be passed into wrapper using --flags option
- scriptname -- Wrapper script name if other than backupmgr.
- urlDecoderClassname -- Class used to decode host, port, and database
from URL
The wrapper script semantics are described briefly below.
NAME
backupmgr
SYNTAX
backupmgr --op {backup | restore | delete | test}
--host hostname --port port --database dbname --login dblogin
--password dbpass --dumpname name --dumppath dirpath --flags options
--tables tables-to-backup
DESCRIPTION
Perform backup, restore, and log deletion operations. The operations
are defined using the --op argument, which is always supplied.
backup - Perform a backup
restore - Restore a backup
delete - Delete a backup
The backupmgr script must encapsulate fully all operations, including
if necessary dropping and recreating databases or other administrative
functions associated with supported operations.
RETURN CODE
Scripts must return 0 if successful. Any other value is considered
to indicate backup failure. In addition, the script is considered to
have failed if it writes to stderr. Stderr from underlying processes
must therefore be suppressed or redirected if it does not represent
an error.
For additional invocation details please refer to method
implementations. Note: For now, we default to dump server semantics provided
by AbstractBackuper.
author: Robert Hodges See Also: AbstractBackuper |
Method Summary | |
public Date | backup(DatabaseBackend backend, String login, String password, String dumpName, String path, ArrayList tables) Invokes a backup operation on the backup management script. | public void | deleteDump(String path, String dumpName) Invokes a restore operation on the backup management script. | public String | getDumpFormat() Returns the dump format. | public void | restore(DatabaseBackend backend, String login, String password, String dumpName, String path, ArrayList tables) Invokes a restore operation on the backup management script. | public void | setOptions(String options) Stores options of interest to this backuper. |
|
|