org.jenkinsci.plugins.periodicbackup
Class OverwriteRestorePolicy

java.lang.Object
  extended by org.jenkinsci.plugins.periodicbackup.OverwriteRestorePolicy
All Implemented Interfaces:
RestorePolicy

public class OverwriteRestorePolicy
extends java.lang.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 Summary
OverwriteRestorePolicy()
           
 
Method Summary
 void restore(java.io.File tempDir)
          Restores content of the tempDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverwriteRestorePolicy

public OverwriteRestorePolicy()
Method Detail

restore

public void restore(java.io.File tempDir)
             throws java.io.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:
java.io.IOException - If an IO problem occurs


Copyright © 2004-2013. All Rights Reserved.