Improve error handling by backups
[lgpl/argeo-commons.git] / server / runtime / org.argeo.server.core / src / main / java / org / argeo / server / backup / AtomicBackup.java
index 2c06cda4a43327314c300b1f038517b99bd02709..873068f063758b1fee8de5f1e5f55f5f3355c62f 100644 (file)
@@ -5,6 +5,9 @@ import org.apache.commons.vfs.FileSystemOptions;
 
 /** Performs the backup of a single component, typically a database dump */
 public interface AtomicBackup {
+       /** Name identifiying this backup */
+       public String getName();
+
        /**
         * Retrieves the data of the component in a format that allows to restore
         * the component
@@ -14,5 +17,6 @@ public interface AtomicBackup {
         * @return the VFS URI of the generated file or directory
         */
        public String backup(FileSystemManager fileSystemManager,
-                       String backupsBase, BackupContext backupContext, FileSystemOptions opts);
+                       String backupsBase, BackupContext backupContext,
+                       FileSystemOptions opts);
 }