]> git.argeo.org Git - gpl/argeo-slc.git/blob - AtomicBackup.java
db437e479e6eaa088b17dd37b3a4700be959d39a
[gpl/argeo-slc.git] / AtomicBackup.java
1 package org.argeo.maintenance.backup.vfs;
2
3 import org.apache.commons.vfs2.FileSystemManager;
4 import org.apache.commons.vfs2.FileSystemOptions;
5
6 /** Performs the backup of a single component, typically a database dump */
7 public interface AtomicBackup {
8 /** Name identifiying this backup */
9 public String getName();
10
11 /**
12 * Retrieves the data of the component in a format that allows to restore
13 * the component
14 *
15 * @param backupContext
16 * the context of this backup
17 * @return the VFS URI of the generated file or directory
18 */
19 public String backup(FileSystemManager fileSystemManager,
20 String backupsBase, BackupContext backupContext,
21 FileSystemOptions opts);
22 }