On 5/31/06, Nicolas Toper <[EMAIL PROTECTED]> wrote:

     /**
      * Backs up the entire repository contents to the given file.
      *
      * @param filename the name of the backup file to be written
      * @throws IOException if the file cannot be written
      * @throws RepositoryException if the backup fails for another reason
      */
     void backup(String filename) throws IOException, RepositoryException;

     /**
      * Restores the entire repository contents from the given file.
      * Note that this will override any existing repository contents.
      *
     * @param filename the name of the the backup file to be read
      * @throws IOException if the file cannot be read
      * @throws RepositoryException if the restore fails for another reason
      */
     void restore(String filename) throws IOException, RepositoryException;

i like it. how about adding alternate versions that operate on
streams? i have an eventual requirement for cosmo to add online backup
and restore functionality (ideally for specific subtrees within a
workspace, but an entire workspace or the entire repository will
suffice for now), and i need to send the data/receive it over webdav
rather than from the local filesystem.

Reply via email to