Class OverwriteRestorePolicy

  • All Implemented Interfaces:
    RestorePolicy

    public class OverwriteRestorePolicy
    extends Object
    implements RestorePolicy
    This RestorePolicy assumes that at this stage all the files in tempDir are the files to be restored. The whole content of the tempDir will be copied to the home directory and the existing files will be overwritten.
    • Constructor Detail

      • OverwriteRestorePolicy

        public OverwriteRestorePolicy()
    • Method Detail

      • restore

        public void restore​(File tempDir)
                     throws IOException
        Description copied from interface: RestorePolicy
        Restores content of the tempDir
        Specified by:
        restore in interface RestorePolicy
        Parameters:
        tempDir - temporary directory, at this point only unpacked content of the backup archives should be inside
        Throws:
        IOException - If an IO problem occurs