Package Products :: Package ZenUtils :: Module ZenBackupBase :: Class ZenBackupBase |
[hide private]
[frames] | no frames]

# Class ZenBackupBase

source code

         object --+
                  |
    CmdBase.CmdBase --+
                      |
                     ZenBackupBase

Instance Methods | [hide private]
__init__(self, noopts=0) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
msg(self, msg) If --verbose then send msg to stdout | source code
buildOptions(self) Command-line options setup | source code
string |
getPassArg(self) Return string to be used as the -p (including the "-p") to MySQL commands. | source code
string |
getTempDir(self) Return directory to be used for temporary storage during backup or restore. | source code
runCommand(self, cmd=[], obfuscated_cmd=None) Execute a command and return the results, displaying pre and post messages. | source code
Inherited from `CmdBase.CmdBase`: `buildParser`, `checkLogpath`, `generate_configs`, `generate_xml_configs`, `generate_xml_table`, `getConfigFileDefaults`, `parseOptions`, `pretty_print_config_comment`, `setupLogging` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Class Variables | [hide private]
| doesLogging = `False`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, noopts=0) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: CmdBase.CmdBase.__init__

### buildOptions(self) | source code
Command-line options setup Overrides: CmdBase.CmdBase.buildOptions

### getPassArg(self) | source code
Return string to be used as the -p (including the "-p") to MySQL commands. Returns: string password and flag

### getTempDir(self) | source code
Return directory to be used for temporary storage during backup or restore. Returns: string directory name

### runCommand(self, cmd=[], obfuscated_cmd=None) | source code
Execute a command and return the results, displaying pre and post messages. Parameters: `cmd` (list) - command to run Returns: results of the command (output, warnings, returncode)