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

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

        @POST
        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
      • getAvailableBackups

        public List<String> getAvailableBackups()
      • doFillBackupItems

        @POST
        public ListBoxModel doFillBackupItems()
      • 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