Examples of backup()


Examples of cloudsync.helper.Handler.backup()

      handler = new Handler(name, localConnection, remoteConnector, new Crypt(options.getPassphrase()), options.getDuplicate(), options.getFollowLinks(), options.getPermissionType());
      handler.init(type, options.getCacheFile(), options.getLockFile(), options.getPIDFile(), options.getNoCache(), options.getForceStart());

      switch (type) {
      case BACKUP:
        handler.backup(!options.isTestRun(), includePatterns, excludePatterns);
        break;
      case RESTORE:
        handler.restore(!options.isTestRun(), includePatterns, excludePatterns);
        break;
      case LIST:
View Full Code Here

Examples of com.db4o.ext.ExtObjectContainer.backup()

     
      removeObsoleteBackupFiles(DB_FOLDER_NAME);
      try {
        ExtObjectContainer extDb = db.ext();
        if (!extDb.isClosed()) {
          extDb.backup(backupFileName);
          logger.debug("successfully created new DB4O backup '{}' in {}ms", backupFileName, System.currentTimeMillis() - startTime);
        } else {
          logger.debug("couldn't create DB4O backup '{}' because db is closed", backupFileName);
        }
      } catch(Db4oException e) {
View Full Code Here

Examples of com.netflix.priam.identity.DoubleRing.backup()

    public void testBR() throws Exception
    {
        createInstances();
        int intialSize = factory.getAllIds(config.getAppName()).size();
        DoubleRing ring = new DoubleRing(config, factory, tokenManager);
        ring.backup();
        ring.doubleSlots();
        assertEquals(intialSize * 2, factory.getAllIds(config.getAppName()).size());
        ring.restore();
        assertEquals(intialSize, factory.getAllIds(config.getAppName()).size());
    }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.backup()

               db.setProperty(ODatabase.OPTIONS.SECURITY.toString(), Boolean.FALSE);
               db.open("admin", "aaa");

               final long begin = System.currentTimeMillis();

               db.backup(new FileOutputStream(exportFilePath), null, null, new OCommandOutputListener() {
                 @Override
                 public void onMessage(String iText) {
                   OLogManager.instance().info(this, iText);
                 }
               }, compressionLevel, bufferSize);
View Full Code Here

Examples of com.sun.enterprise.backup.BackupManager.backup()

    protected int executeCommand()
            throws CommandException {

        try {           
            BackupManager mgr = new BackupManager(request);
            logger.info(mgr.backup());           
        } catch (BackupWarningException bwe) {
            logger.info(bwe.getMessage());
        } catch (BackupException be) {
            throw new CommandException(be);
        }
View Full Code Here

Examples of com.sun.enterprise.backup.BackupManager.backup()

    protected int executeCommand()
            throws CommandException {

        try {           
            BackupManager mgr = new BackupManager(request);
            logger.info(mgr.backup());           
        } catch (BackupWarningException bwe) {
            logger.info(bwe.getMessage());
        } catch (BackupException be) {
            throw new CommandException(be);
        }
View Full Code Here

Examples of com.sun.enterprise.config.backup.BackupManager.backup()

    try
    {
      if(command == CmdType.BACKUP)
      {
        BackupManager mgr = new BackupManager(request);
        CLILogger.getInstance().printMessage(mgr.backup());
      }
      else if(command == CmdType.RESTORE)
      {
        RestoreManager mgr = new RestoreManager(request);
        CLILogger.getInstance().printMessage(mgr.restore());
View Full Code Here

Examples of org.apache.ace.repository.ext.impl.FilebasedBackupRepository.backup()

        InputStream input = rep.read();
        byte[] inputBytes = AdminTestUtil.copy(input);
        assert AdminTestUtil.byteArraysEqual(inputBytes, testContent) : "We got something different than 'initial' from read: " + new String(inputBytes);

        // backup what's in the repository
        rep.backup();

        // write new content
        byte[] newTestContent = new byte[] {'n', 'e', 'w'};
        rep.write(new ByteArrayInputStream(newTestContent));
View Full Code Here

Examples of org.exist.backup.Backup.backup()

        log( "Creating backup of collection: " + uri );
        log( "Backup directory: " + dir );

        try {
            final Backup backup = new Backup( user, password, dir, XmldbURI.create( uri ) );
            backup.backup( false, null );

        }
        catch( final Exception e ) {
            e.printStackTrace();
            final String msg = "Exception during backup: " + e.getMessage();
View Full Code Here

Examples of org.exist.backup.Backup.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
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.