public class ElasticWorker extends DefaultWorker
logger
Constructor and Description |
---|
ElasticWorker() |
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 . |
java.lang.String |
getDataType() |
void |
prepareDataDirs(IDPContext ctx,
java.lang.String tag,
ItemValue<Server> toBackup)
This is called before the backup starts.
|
boolean |
supportsTag(java.lang.String tag) |
cleanup, restore
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 java.lang.String getDataType()
Copyright © 2021. All Rights Reserved.