Interface IDataProtect
@Path("/dataprotect")
public interface IDataProtect
-
Method Summary
Modifier and TypeMethodDescriptionforget(int generationId) Removes protected dataReturns all protected generations, ordered from oldest to most recentgetContent(String partGenerationId) Loads an index of protected datas with possible restore actions.Returns infos about the restore operations that the core provides* Returns infos about the restore operations that the core provides (filtered by tags)Returns theRetentionPolicyused for backup automatic removals.run(RestoreDefinition restoreDefinition) Executes a restore operation on the givenRestorableitem using data from aDataProtectGenerationsaveAll()Run the incremental dataprotect backup process.voidRe-creates the in-database metadata using the generations.xml index from the data protect spool on the filesystem.voidcreates or updates theRetentionPolicy.
-
Method Details
-
getAvailableGenerations
@GET @Path("generations") List<DataProtectGeneration> getAvailableGenerations() throws net.bluemind.core.api.fault.ServerFaultReturns all protected generations, ordered from oldest to most recent- Returns:
- Throws:
net.bluemind.core.api.fault.ServerFault
-
getContent
@POST @Path("_content/{partGen}") TaskRef getContent(@PathParam("partGen") String partGenerationId) throws net.bluemind.core.api.fault.ServerFault Loads an index of protected datas with possible restore actions.- Parameters:
partGenerationId- the part generation identifier- Returns:
GenerationContentXML fromTaskStatusresult- Throws:
net.bluemind.core.api.fault.ServerFault
-
getRestoreCapabilities
@GET @Path("restore/_capabilities") List<RestoreOperation> getRestoreCapabilities() throws net.bluemind.core.api.fault.ServerFaultReturns infos about the restore operations that the core provides- Returns:
- Throws:
net.bluemind.core.api.fault.ServerFault
-
getRestoreCapabilitiesByTags
@GET @Path("restore/_capabilities_by_tags") List<RestoreOperation> getRestoreCapabilitiesByTags(List<String> tags) throws net.bluemind.core.api.fault.ServerFault * Returns infos about the restore operations that the core provides (filtered by tags)- Parameters:
tags-- Returns:
- Throws:
net.bluemind.core.api.fault.ServerFault
-
run
@POST @Path("restore") TaskRef run(RestoreDefinition restoreDefinition) throws net.bluemind.core.api.fault.ServerFault Executes a restore operation on the givenRestorableitem using data from aDataProtectGeneration- Parameters:
restoreDefinition-- Returns:
- Throws:
net.bluemind.core.api.fault.ServerFault
-
forget
@DELETE @Path("generations") TaskRef forget(@QueryParam("generationId") int generationId) throws net.bluemind.core.api.fault.ServerFault Removes protected data- Parameters:
generationId- the generation identifier to remove- Returns:
- Throws:
net.bluemind.core.api.fault.ServerFault
-
getRetentionPolicy
@GET @Path("policy") RetentionPolicy getRetentionPolicy() throws net.bluemind.core.api.fault.ServerFaultReturns theRetentionPolicyused for backup automatic removals. Never returnsnull.- Returns:
- Throws:
net.bluemind.core.api.fault.ServerFault
-
updatePolicy
@POST @Path("policy") void updatePolicy(RetentionPolicy rp) throws net.bluemind.core.api.fault.ServerFault creates or updates theRetentionPolicy.- Parameters:
rp-- Throws:
net.bluemind.core.api.fault.ServerFault
-
syncWithFilesystem
@POST @Path("_syncfs") void syncWithFilesystem() throws net.bluemind.core.api.fault.ServerFaultRe-creates the in-database metadata using the generations.xml index from the data protect spool on the filesystem. This is used for re-creating a blue mind server using backups. This must be used when /var/backups/bluemind becomes inconsistent with the database content (eg. after a TINA restore of /var/backups/bluemind)- Throws:
net.bluemind.core.api.fault.ServerFault
-
saveAll
Run the incremental dataprotect backup process. Only one backup runs at a time: a cancelled backup still counts as running until it has stopped.- Returns:
- the backup task
- Throws:
net.bluemind.core.api.fault.ServerFault- if a backup is already running
-