Class OverwriteRestorePolicy
- java.lang.Object
-
- org.jenkinsci.plugins.periodicbackup.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 Summary
Constructors Constructor Description 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 interfaceRestorePolicy
- Parameters:
tempDir
- temporary directory, at this point only unpacked content of the backup archives should be inside- Throws:
IOException
- If an IO problem occurs
-
-