Examples of Restore


Examples of com.netflix.priam.backup.Restore

            }
            AbstractBackupPath path = Application.getInjector().getInstance(AbstractBackupPath.class);
            startTime = path.parseDate(args[0]);
            endTime = path.parseDate(args[1]);

            Restore restorer = Application.getInjector().getInstance(Restore.class);
            try
            {
                restorer.restore(startTime, endTime);
            } catch (Exception e)
            {
                logger.error("Unable to restore: ", e);
            }
        } finally
View Full Code Here

Examples of net.datacrow.core.backup.Restore

    private void restore() {
        File source = fileFieldSource.getFile();
       
        if (source != null && !source.isDirectory()) {
            Restore restore = new Restore(this, source);
            restore.setRestoreDatabase(checkRestoreDatabase.isSelected());
            restore.setRestoreModules(checkRestoreModules.isSelected());
            restore.setRestoreReports(checkRestoreReports.isSelected());
            restore.start();
        } else {
            DcSwingUtilities.displayWarningMessage("msgSelectBackupFile");
        }
    }
View Full Code Here

Examples of org.apache.pdfbox.contentstream.operator.state.Restore

    {
        addOperator(new Concatenate());
        addOperator(new DrawObject());
        addOperator(new SetGraphicsStateParameters());
        addOperator(new Save());
        addOperator(new Restore());
        addOperator(new SetMatrix());
    }
View Full Code Here

Examples of org.apache.pdfbox.contentstream.operator.state.Restore

        addOperator(new Concatenate());
        addOperator(new DrawObject()); // special text version
        addOperator(new EndText());
        addOperator(new SetGraphicsStateParameters());
        addOperator(new Save());
        addOperator(new Restore());
        addOperator(new NextLine());
        addOperator(new SetCharSpacing());
        addOperator(new MoveText());
        addOperator(new MoveTextSetLeading());
        addOperator(new SetFontAndSize());
View Full Code Here

Examples of org.apache.pdfbox.contentstream.operator.state.Restore

        addOperator(new LineTo());
        addOperator(new MoveTo());
        addOperator(new SetLineMiterLimit());
        addOperator(new EndPath());
        addOperator(new Save());
        addOperator(new Restore());
        addOperator(new AppendRectangleToPath());
        addOperator(new SetStrokingDeviceRGBColor());
        addOperator(new SetNonStrokingDeviceRGBColor());
        addOperator(new SetRenderingIntent());
        addOperator(new CloseAndStrokePath());
View Full Code Here

Examples of org.apache.pdfbox.contentstream.operator.state.Restore

        addOperator(new SetStrokingColorN());
        addOperator(new SetNonStrokingColor());
        addOperator( new SetNonStrokingColorN());

        // Graphics state
        addOperator(new Restore());
        addOperator(new Save());

        // Text operators
        addOperator(new BeginText());
        addOperator(new EndText());
View Full Code Here

Examples of org.exist.backup.Restore

        final Callable<Void> callable = new Callable<Void>() {

            @Override
            public Void call() throws Exception {

                final Restore restore = new Restore();
               
                try {
                    restore.restore(listener, username, password, dbaPassword, f, uri);

                    if (JOptionPane.showConfirmDialog(null, Messages.getString("ClientFrame.223"), Messages.getString("ClientFrame.224"),
                            JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
                        setStatus(Messages.getString("ClientFrame.225"));
                        repairRepository(client.getCollection());
View Full Code Here

Examples of org.exist.backup.Restore

                            throw( new BuildException( msg ) );
                        } else {
                            log( msg, Project.MSG_ERR );
                        }
                    } else {
                        final Restore         restore  = new Restore();
                        final RestoreListener listener = new DefaultRestoreListener();
                        restore.restore( listener, user, password, restorePassword, file, uri );
                    }

                } else if( dirSet != null ) {
                    final DirectoryScanner scanner = dirSet.getDirectoryScanner( getProject() );
                    scanner.scan();
                    final String[] includedFiles = scanner.getIncludedFiles();
                    log( "Found " + includedFiles.length + " files.\n" );

                    for( final String included : includedFiles ) {
                        dir = new File( scanner.getBasedir() + File.separator + included );
                        final File contentsFile = new File( dir, "__contents__.xml" );

                        if( !contentsFile.exists() ) {
                            final String msg = "Did not found file " + contentsFile.getAbsolutePath();

                            if( failonerror ) {
                                throw( new BuildException( msg ) );
                            } else {
                                log( msg, Project.MSG_ERR );
                            }
                        } else {
                            log( "Restoring from " + contentsFile.getAbsolutePath() + " ...\n" );

                            // TODO subdirectories as sub-collections?
                            final Restore         restore  = new Restore();
                            final RestoreListener listener = new DefaultRestoreListener();
                            restore.restore( listener, user, password, restorePassword, contentsFile, uri );
                        }
                    }

                } else if( zipFile != null ) {
                    log( "Restoring from " + zipFile.getAbsolutePath(), Project.MSG_INFO );

                    if( !zipFile.exists() ) {
                        final String msg = "File not found: " + zipFile.getAbsolutePath();

                        if( failonerror ) {
                            throw( new BuildException( msg ) );
                        } else {
                            log( msg, Project.MSG_ERR );
                        }
                    } else {
                        final Restore         restore  = new Restore();
                        final RestoreListener listener = new DefaultRestoreListener();
                        restore.restore( listener, user, password, restorePassword, zipFile, uri );
                    }
                }

            }
            catch( final Exception e ) {
View Full Code Here

Examples of org.h2.tools.Restore

            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)) {
                tool = new DeleteDbFiles();
            } else if ("ChangeFileEncryption".equals(toolName)) {
View Full Code Here

Examples of org.h2.tools.Restore

            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)) {
                tool = new DeleteDbFiles();
            } else if ("ChangeFileEncryption".equals(toolName)) {
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.