Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Enhance Backups Method #47

Open
ferricoxide opened this issue Jan 31, 2019 · 0 comments
Open

Enhance Backups Method #47

ferricoxide opened this issue Jan 31, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@ferricoxide
Copy link
Member

Is your feature request related to a problem? Please describe.

Per #22, backup job, as currently architected, can unpredictably run away. This has become a more frequent condition as more users execute multi-branch pipelines (which run on the master and cause target-files to appear and disappear during backup runs). Likely, it's either the overall business of the master or the business of the filesystem being backed up that's causing the runaways.

Describe the solution you'd like

Replace the simple, one-line, "dumb" tar-direct-to-S3 backup job with something more intelligent. Likely, this would include:

  • Changing ${JENKINS_HOME} to be hosted on an LVM (vice its current, "bare" /dev/sdX device)
  • Creating an actual backup script to be called from crond that:
    1. Adding locking-logic to script to ensure only one job at a time runs (and that any prior failed runs are cleaned up)
    2. Creates an LVM snapshot of ${JENKINS_HOME}
    3. Backs up the LVM snapshot of ${JENKINS_HOME}
    4. Destroys the LVM snapshot once backup completes
    5. Removes lockfile
@ferricoxide ferricoxide added the enhancement New feature or request label Jan 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant