Class ConfigOnly
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- org.jenkinsci.plugins.periodicbackup.FileManager
-
- org.jenkinsci.plugins.periodicbackup.ConfigOnly
-
- All Implemented Interfaces:
hudson.model.Describable<FileManager>
,hudson.model.ModelObject
,hudson.search.SearchableModelObject
,hudson.search.SearchItem
public class ConfigOnly extends FileManager
This implementation of FileManager will only select the .xml files from the Jenkins homedir and the config.xml files of all the jobs and users during backup. During restore it will try to overwrite the existing files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConfigOnly.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description ConfigOnly()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getDisplayName()
Iterable<File>
getFilesToBackup()
This method determines files and folders for Storageint
hashCode()
-
Methods inherited from class org.jenkinsci.plugins.periodicbackup.FileManager
all, getDescriptor, getSearchUrl, restoreFiles
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
-
getFilesToBackup
public Iterable<File> getFilesToBackup() throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
Description copied from class:FileManager
This method determines files and folders for Storage- Specified by:
getFilesToBackup
in classFileManager
- Returns:
- Files to be included in the backup
- Throws:
org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
- if anything bad happens
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classFileManager
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classFileManager
-
-