public class ConfigWorker extends DefaultWorker
logger
Constructor and Description |
---|
ConfigWorker() |
Modifier and Type | Method and Description |
---|---|
void |
dataDirsSaved(IDPContext ctx,
java.lang.String tag,
ItemValue<Server> backedUp)
This gets called once the data is saved with rsync.
|
java.util.Set<java.lang.String> |
getDataDirs()
This is called after
prepareDataDirs . |
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) |
boolean |
supportsTag(java.lang.String tag) |
cleanup
public boolean supportsTag(java.lang.String tag)
supportsTag
in interface IBackupWorker
supportsTag
in class DefaultWorker
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 prepareDataDirs(IDPContext ctx, java.lang.String tag, ItemValue<Server> toBackup) throws ServerFault
IBackupWorker
prepareDataDirs
in interface IBackupWorker
prepareDataDirs
in class DefaultWorker
ServerFault
public void dataDirsSaved(IDPContext ctx, java.lang.String tag, ItemValue<Server> backedUp) throws ServerFault
IBackupWorker
dataDirsSaved
in interface IBackupWorker
dataDirsSaved
in class DefaultWorker
ServerFault
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
Copyright © 2021. All Rights Reserved.