Package net.bluemind.dataprotect.api
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 theRetentionPolicy
used for backup automatic removals.installFromGeneration
(int generationId) Populates a blue mind database using protected data from a given generation.run
(RestoreDefinition restoreDefinition) Executes a restore operation on the givenRestorable
item using data from aDataProtectGeneration
saveAll()
Run the incremental dataprotect backup processvoid
Re-creates the in-database metadata using the generations.xml index from the data protect spool on the filesystem.void
creates or updates theRetentionPolicy
.
-
Method Details
-
getAvailableGenerations
Returns all protected generations, ordered from oldest to most recent- Returns:
- Throws:
ServerFault
-
getContent
@POST @Path("_content/{partGen}") TaskRef getContent(@PathParam("partGen") String partGenerationId) throws ServerFault Loads an index of protected datas with possible restore actions.- Parameters:
dpg
-- Returns:
GenerationContent
XML fromTaskStatus
result- Throws:
ServerFault
-
getRestoreCapabilities
@GET @Path("restore/_capabilities") List<RestoreOperation> getRestoreCapabilities() throws ServerFaultReturns infos about the restore operations that the core provides- Parameters:
token
-- Returns:
- Throws:
ServerFault
-
getRestoreCapabilitiesByTags
@GET @Path("restore/_capabilities_by_tags") List<RestoreOperation> getRestoreCapabilitiesByTags(List<String> tags) throws ServerFault * Returns infos about the restore operations that the core provides (filtered by tags)- Parameters:
tags
-- Returns:
- Throws:
ServerFault
-
run
Executes a restore operation on the givenRestorable
item using data from aDataProtectGeneration
- Parameters:
restoreDefinition
-- Returns:
- Throws:
ServerFault
-
forget
@DELETE @Path("generations") TaskRef forget(@QueryParam("generationId") int generationId) throws ServerFault Removes protected data- Parameters:
dpg
-- Returns:
- Throws:
ServerFault
-
getRetentionPolicy
Returns theRetentionPolicy
used for backup automatic removals. Never returnsnull
.- Returns:
- Throws:
ServerFault
-
updatePolicy
creates or updates theRetentionPolicy
.- Parameters:
rp
-- Throws:
ServerFault
-
syncWithFilesystem
Re-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:
ServerFault
-
installFromGeneration
@POST @Path("_install") TaskRef installFromGeneration(@QueryParam("generationId") int generationId) throws ServerFault Populates a blue mind database using protected data from a given generation.- Parameters:
generationId
-at
-- Throws:
ServerFault
-
saveAll
Run the incremental dataprotect backup process- Returns:
- Throws:
ServerFault
-