public interface IBackupWorker
Modifier and Type | Method and Description |
---|---|
void |
cleanup(IDPContext ctx,
PartGeneration part,
java.util.Map<java.lang.String,java.lang.Object> params) |
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.
|
void |
restore(IDPContext ctx,
PartGeneration part,
java.util.Map<java.lang.String,java.lang.Object> params) |
boolean |
supportsTag(java.lang.String tag) |
java.lang.String getDataType()
boolean supportsTag(java.lang.String tag)
void prepareDataDirs(IDPContext ctx, java.lang.String tag, ItemValue<Server> toBackup) throws ServerFault
ctx
- tag
- toBackup
- ServerFault
java.util.Set<java.lang.String> getDataDirs()
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.void dataDirsSaved(IDPContext ctx, java.lang.String tag, ItemValue<Server> backedUp) throws ServerFault
ctx
- tag
- backedUp
- ServerFault
void restore(IDPContext ctx, PartGeneration part, java.util.Map<java.lang.String,java.lang.Object> params) throws ServerFault
ServerFault
void cleanup(IDPContext ctx, PartGeneration part, java.util.Map<java.lang.String,java.lang.Object> params) throws ServerFault
ServerFault
Copyright © 2021. All Rights Reserved.