Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12125

Push backups in remote git repository (or any other SCM)

    Details

    • Similar Issues:

      Description

      Hi,
      it would be nice if the backup could be pushed in a remote SCM (e.g. in my configuration: git).

      Summarized it could be done like this:

      • Check if the target directory is in a SCM (for git: check if .git directory is present)
      • Automatic backup
      • Stage the backup files and commit
      • Push to origin (the remote repository)

      Alternative to that, let the user run a shell script after backups.

      Edit:
      When stored in a SCM the naming scheme is disturbing, as the files should get overwritten each time a backup is running.
      So if thinBackup creates "backups/FULL-2011-12-01_12-15/" and "backups/FULL-2011-12-08_12-15/" it is not possible to directly put them in a SCM without moving files around or it will create duplicate content.


      Regards
      Samuel

        Attachments

          Activity

          Hide
          scientist_st Samuel Stirtzel added a comment -

          Added info about the problems of the naming scheme and SCM

          Show
          scientist_st Samuel Stirtzel added a comment - Added info about the problems of the naming scheme and SCM
          Hide
          canonicalchris Robert Christian Kahlert added a comment -

          I am with Samuel on this one. Just making the backup name editable, so that people can take out the $DATE part would be sufficient.
          I can check it into SVN myself, that's not the issue.

          Show
          canonicalchris Robert Christian Kahlert added a comment - I am with Samuel on this one. Just making the backup name editable, so that people can take out the $DATE part would be sufficient. I can check it into SVN myself, that's not the issue.
          Hide
          tofuatjava Thomas Fürer added a comment -

          I'm aware of this feature, and I have also some ideas about a solution, but have currently not enough time to implement it. So please do not be disappointed when I must put you off for a while.

          thanks for your feedback

          Show
          tofuatjava Thomas Fürer added a comment - I'm aware of this feature, and I have also some ideas about a solution, but have currently not enough time to implement it. So please do not be disappointed when I must put you off for a while. thanks for your feedback

            People

            • Assignee:
              tofuatjava Thomas Fürer
              Reporter:
              scientist_st Samuel Stirtzel
            • Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: