public abstract class AbstractPgWorker extends DefaultWorker
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
dbName |
protected java.lang.String |
dbPassword |
protected java.lang.String |
dbUser |
logger
Modifier | Constructor and Description |
---|---|
protected |
AbstractPgWorker() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup(IDPContext ctx,
PartGeneration part,
java.util.Map<java.lang.String,java.lang.Object> params) |
protected abstract java.lang.String |
getBackupDirectory() |
java.util.Set<java.lang.String> |
getDataDirs()
This is called after
prepareDataDirs . |
java.lang.String |
getDataType() |
void |
prepareDataDirs(IDPContext ctx,
java.lang.String tag,
ItemValue<Server> toBackup)
This is called before the backup starts.
|
void |
restore(IDPContext ctx,
PartGeneration part,
java.util.Map<java.lang.String,java.lang.Object> params) |
dataDirsSaved, supportsTag
protected java.lang.String dbUser
protected java.lang.String dbPassword
protected java.lang.String dbName
protected abstract java.lang.String getBackupDirectory()
public void prepareDataDirs(IDPContext ctx, java.lang.String tag, ItemValue<Server> toBackup) throws ServerFault
IBackupWorker
prepareDataDirs
in interface IBackupWorker
prepareDataDirs
in class DefaultWorker
ServerFault
public java.util.Set<java.lang.String> getDataDirs()
IBackupWorker
prepareDataDirs
. Rsync will be used to
save those dirs. Symlinks are handled by the dataprotect code, so you
don't need special code here to check if the dir war symlinked elsewhere.getDataDirs
in interface IBackupWorker
getDataDirs
in class DefaultWorker
public void restore(IDPContext ctx, PartGeneration part, java.util.Map<java.lang.String,java.lang.Object> params) throws ServerFault
restore
in interface IBackupWorker
restore
in class DefaultWorker
ServerFault
public void cleanup(IDPContext ctx, PartGeneration part, java.util.Map<java.lang.String,java.lang.Object> params) throws ServerFault
cleanup
in interface IBackupWorker
cleanup
in class DefaultWorker
ServerFault
public java.lang.String getDataType()
Copyright © 2021. All Rights Reserved.