Interface IDataProtect


@Path("/dataprotect") public interface IDataProtect
  • Method Details

    • getAvailableGenerations

      @GET @Path("generations") List<DataProtectGeneration> getAvailableGenerations() throws ServerFault
      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 from TaskStatus result
      Throws:
      ServerFault
    • getRestoreCapabilities

      @GET @Path("restore/_capabilities") List<RestoreOperation> getRestoreCapabilities() throws ServerFault
      Returns 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

      @POST @Path("restore") TaskRef run(RestoreDefinition restoreDefinition) throws ServerFault
      Executes a restore operation on the given Restorable item using data from a DataProtectGeneration
      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

      @GET @Path("policy") RetentionPolicy getRetentionPolicy() throws ServerFault
      Returns the RetentionPolicy used for backup automatic removals. Never returns null.
      Returns:
      Throws:
      ServerFault
    • updatePolicy

      @POST @Path("policy") void updatePolicy(RetentionPolicy rp) throws ServerFault
      creates or updates the RetentionPolicy.
      Parameters:
      rp -
      Throws:
      ServerFault
    • syncWithFilesystem

      @POST @Path("_syncfs") void syncWithFilesystem() throws ServerFault
      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

      @POST @Path("_backup") TaskRef saveAll() throws ServerFault
      Run the incremental dataprotect backup process
      Returns:
      Throws:
      ServerFault