Class IPFSBackupMethods
java.lang.Object
wrappers.IPFSBackupMethods
Provides wrapper methods that run the low level IPFS wrappers to execute backup use cases.
Exceptions are caught, chained and re-thrown
-
Constructor Summary
ConstructorsConstructorDescriptionIPFSBackupMethods(Host clusterHost, Host clusterProxyHost) Initializes the wrapper and creates a proxy as well as a cluster connector -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes a backup operationvoidInitializes a repository with the given name and passwordvoidLists meta information of all snapshotsvoidExecutes a prune operation on the repositoryvoidExecutes a restore operation on the provided repository
-
Constructor Details
-
IPFSBackupMethods
-
-
Method Details
-
init
-
backup
-
restore
Executes a restore operation on the provided repository- Parameters:
repoName- The name of the repositoryrepoPassword- The password of the repositorytarget- The target folder to restore toindex- The index of the snapshot to restore, 0 being the latest
-
prune
-
list
-