Examples of Backup


Examples of org.exist.backup.Backup

                   
            }
       
           
            try {
                final Backup backup = new Backup(
                    properties.getProperty(InteractiveClient.USER, SecurityManager.DBA_USER),
                    properties.getProperty(InteractiveClient.PASSWORD, null), backuptarget,
                    XmldbURI.xmldbUriFor(properties.getProperty(InteractiveClient.URI, "xmldb:exist://")
                    + collection)
                );
                backup.backup(true, this);
            } catch (final XMLDBException e) {
                showErrorMessage("XMLDBException: " + e.getMessage(), e); //$NON-NLS-1$
            } catch (final IOException e) {
                showErrorMessage("IOException: " + e.getMessage(), e); //$NON-NLS-1$
            } catch (final SAXException e) {
View Full Code Here

Examples of org.exist.backup.Backup

     */
    @Override
    public boolean backup(String userbackup, String password,
  String destcollection, String collection) throws EXistException, PermissionDeniedException {
      try {
           final Backup backup = new Backup(
            userbackup,
                    password,
                    destcollection+"-backup",
                    XmldbURI.xmldbUriFor(XmldbURI.EMBEDDED_SERVER_URI.toString() + collection));
                backup.backup(false, null);

            } catch (final Throwable e) {
                handleException(e);
      }
        return true;
View Full Code Here

Examples of org.exist.backup.Backup

    public void execute(DBBroker broker) throws EXistException {
        final String dateTime = DataBackup.creationDateFormat.format(Calendar.getInstance().getTime());
        final String dest = directory.getAbsolutePath() + File.separatorChar + prefix + dateTime + suffix;

        final Backup backup = new Backup(user, password, dest, collection);
        try {
            backup.backup(false, null);
        } catch (final XMLDBException e) {
            LOG.debug(e.getMessage(), e);
            throw new EXistException(e.getMessage(), e);
        } catch (final IOException e) {
            LOG.debug(e.getMessage(), e);
View Full Code Here

Examples of org.h2.tools.Backup

            session.put("tool", toolName);
            String args = (String) attributes.get("args");
            String[] argList = StringUtils.arraySplit(args, ',', false);
            Tool tool = null;
            if ("Backup".equals(toolName)) {
                tool = new Backup();
            } else if ("Restore".equals(toolName)) {
                tool = new Restore();
            } else if ("Recover".equals(toolName)) {
                tool = new Recover();
            } else if ("DeleteDbFiles".equals(toolName)) {
View Full Code Here

Examples of org.h2.tools.Backup

            session.put("tool", toolName);
            String args = (String) attributes.get("args");
            String[] argList = StringUtils.arraySplit(args, ',', false);
            Tool tool = null;
            if ("Backup".equals(toolName)) {
                tool = new Backup();
            } else if ("Restore".equals(toolName)) {
                tool = new Restore();
            } else if ("Recover".equals(toolName)) {
                tool = new Recover();
            } else if ("DeleteDbFiles".equals(toolName)) {
View Full Code Here

Examples of org.h2.tools.Backup

            session.put("tool", toolName);
            String args = (String) attributes.get("args");
            String[] argList = StringUtils.arraySplit(args, ',', false);
            Tool tool = null;
            if ("Backup".equals(toolName)) {
                tool = new Backup();
            } else if ("Restore".equals(toolName)) {
                tool = new Restore();
            } else if ("Recover".equals(toolName)) {
                tool = new Recover();
            } else if ("DeleteDbFiles".equals(toolName)) {
View Full Code Here

Examples of org.neo4j.onlinebackup.Backup

            GraphDatabaseService genericDb = DatabaseLocator.getGraphDatabase();

            if ( genericDb instanceof EmbeddedGraphDatabase )
            {

                Backup backup = Neo4jBackup.allDataSources(
                        (EmbeddedGraphDatabase) genericDb,
                        backupPath.getAbsolutePath() );

                backup.doBackup();
            }
            else
            {
                throw new UnsupportedOperationException(
                        "Performing backups on non-local databases is currently not supported." );
View Full Code Here

Examples of org.platformlayer.ops.backups.Backup

    backupContext.add(new BackupItem(server.getKey(), FORMAT, baseName));

    {
      Command dumpAll = Command.build("su postgres -c \"pg_dumpall --globals-only\"");
      Backup request = new Backup();
      request.target = target;
      request.objectName = baseName + "/pgdump_meta";
      backupContext.uploadStream(request, dumpAll);
    }

    for (String database : databases) {
      // template0 cannot be backed up
      if (database.equals("template0")) {
        continue;
      }

      // template1 can be backed up, even though it isn't typically very useful

      String fileName = "pgdump_db_" + database;
      Backup request = new Backup();
      request.target = target;
      request.objectName = baseName + "/" + fileName;

      Command dumpDatabase = Command.build("su postgres -c \"pg_dump --oids -Fc --verbose {0}\"", database);
      backupContext.uploadStream(request, dumpDatabase);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.