Class HudsonBackup
java.lang.Object
org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Zipping the old backups is done in a thread so the rest of Hudson/Jenkins is not blocked. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
ConstructorDescriptionHudsonBackup
(ThinBackupPluginImpl plugin, ThinBackupPeriodicWork.BackupType backupType) HudsonBackup
(ThinBackupPluginImpl plugin, ThinBackupPeriodicWork.BackupType backupType, Date date, ItemGroup<TopLevelItem> hudson) -
Method Summary
Modifier and TypeMethodDescriptionvoid
backup()
void
removeEmptyDirs
(File rootDir) Deletes all empty directories, including rootDir if it is empty at the end.void
Creates a empty file backup-completed.info at the end of the backup.
-
Field Details
-
BUILDS_DIR_NAME
- See Also:
-
CONFIGURATIONS_DIR_NAME
- See Also:
-
PROMOTIONS_DIR_NAME
- See Also:
-
MULTIBRANCH_DIR_NAME
- See Also:
-
INDEXING_DIR_NAME
- See Also:
-
JOBS_DIR_NAME
- See Also:
-
USERS_DIR_NAME
- See Also:
-
ARCHIVE_DIR_NAME
- See Also:
-
CONFIG_HISTORY_DIR_NAME
- See Also:
-
USERSCONTENTS_DIR_NAME
- See Also:
-
NEXT_BUILD_NUMBER_FILE_NAME
- See Also:
-
PLUGINS_DIR_NAME
- See Also:
-
NODES_DIR_NAME
- See Also:
-
CONFIG_XML
- See Also:
-
XML_FILE_EXTENSION
- See Also:
-
JPI_FILE_EXTENSION
- See Also:
-
HPI_FILE_EXTENSION
- See Also:
-
DISABLED_EXTENSION
- See Also:
-
ZIP_FILE_EXTENSION
- See Also:
-
INSTALLED_PLUGINS_XML
- See Also:
-
CHANGELOG_HISTORY_PLUGIN_DIR_NAME
- See Also:
-
SVN_CREDENTIALS_FILE_NAME
- See Also:
-
SVN_EXTERNALS_FILE_NAME
- See Also:
-
COMPLETED_BACKUP_FILE
- See Also:
-
-
Constructor Details
-
HudsonBackup
-
HudsonBackup
public HudsonBackup(ThinBackupPluginImpl plugin, ThinBackupPeriodicWork.BackupType backupType, Date date, ItemGroup<TopLevelItem> hudson)
-
-
Method Details
-
backup
- Throws:
IOException
-
touchCompleteFile
Creates a empty file backup-completed.info at the end of the backup.- Throws:
IOException
- if an I/O Error occurs
-
removeEmptyDirs
Deletes all empty directories, including rootDir if it is empty at the end.- Parameters:
rootDir
- the directory to start from, not null- Throws:
IOException
- if an I/O Error occurs
-