Class ThinBackupMgmtLink

  • All Implemented Interfaces:
    ExtensionPoint, Action, ModelObject

    @Extension
    public class ThinBackupMgmtLink
    extends ManagementLink
    A backup solution for Hudson. Backs up configuration files from Hudson and its jobs. Originally based on the Backup plugin by Vincent Sellier, Manufacture Fran´┐Żaise des Pneumatiques Michelin, Romain Seguy, et.al. Subsequently heavily modified.
    • Constructor Detail

      • ThinBackupMgmtLink

        public ThinBackupMgmtLink()
    • Method Detail

      • getDisplayName

        public String getDisplayName()
      • doBackupManual

        public void doBackupManual​(org.kohsuke.stapler.StaplerRequest res,
                                   org.kohsuke.stapler.StaplerResponse rsp)
                            throws IOException
        Throws:
        IOException
      • doRestore

        public void doRestore​(org.kohsuke.stapler.StaplerRequest res,
                              org.kohsuke.stapler.StaplerResponse rsp,
                              @QueryParameter("restoreBackupFrom")
                              String restoreBackupFrom,
                              @QueryParameter("restoreNextBuildNumber")
                              String restoreNextBuildNumber,
                              @QueryParameter("restorePlugins")
                              String restorePlugins)
                       throws IOException
        Throws:
        IOException
      • doSaveSettings

        public void doSaveSettings​(org.kohsuke.stapler.StaplerRequest res,
                                   org.kohsuke.stapler.StaplerResponse rsp,
                                   @QueryParameter("backupPath")
                                   String backupPath,
                                   @QueryParameter("fullBackupSchedule")
                                   String fullBackupSchedule,
                                   @QueryParameter("diffBackupSchedule")
                                   String diffBackupSchedule,
                                   @QueryParameter("nrMaxStoredFull")
                                   String nrMaxStoredFull,
                                   @QueryParameter("excludedFilesRegex")
                                   String excludedFilesRegex,
                                   @QueryParameter("moveOldBackupsToZipFile")
                                   boolean moveOldBackupsToZipFile,
                                   @QueryParameter("cleanupDiff")
                                   boolean cleanupDiff,
                                   @QueryParameter("backupBuildResults")
                                   boolean backupBuildResults,
                                   @QueryParameter("backupBuildArchive")
                                   boolean backupBuildArchive,
                                   @QueryParameter("backupBuildsToKeepOnly")
                                   boolean backupBuildsToKeepOnly,
                                   @QueryParameter("backupUserContents")
                                   boolean backupUserContents,
                                   @QueryParameter("backupNextBuildNumber")
                                   boolean backupNextBuildNumber,
                                   @QueryParameter("backupPluginArchives")
                                   boolean backupPluginArchives,
                                   @QueryParameter("backupAdditionalFiles")
                                   boolean backupAdditionalFiles,
                                   @QueryParameter("backupAdditionalFilesRegex")
                                   String backupAdditionalFilesRegex,
                                   @QueryParameter("waitForIdle")
                                   boolean waitForIdle,
                                   @QueryParameter("backupConfigHistory")
                                   boolean backupConfigHistory,
                                   @QueryParameter("forceQuietModeTimeout")
                                   String forceQuietModeTimeout,
                                   @QueryParameter("failFast")
                                   boolean failFast)
                            throws IOException
        Throws:
        IOException
      • getAvailableBackups

        public List<String> getAvailableBackups()
      • getCategory

        @NonNull
        public ManagementLink.Category getCategory()
        Name of the category for this management link. Exists so that plugins with core dependency pre-dating the version when this was introduced can define a category.

        Overrides:
        getCategory in class ManagementLink
        Returns:
        name of the desired category, one of the enum values of Category, e.g. STATUS.
        Since:
        2.226