sue445 / Jenkins Backup Script
Licence: mit
archive jenkins setting and plugins
Stars: ✭ 358
Labels
Projects that are alternatives of or similar to Jenkins Backup Script
Janky
Continuous integration server built on top of Jenkins and Hubot
Stars: ✭ 2,773 (+674.58%)
Mutual labels: jenkins
Nvwa Io
Nvwa-io is a open source DevOps CI/CD auto-build and auto-deploy system(女娲 - 开源 DevOps CI/CD 自动构建和自动部署系统). http://nvwa-io.com
Stars: ✭ 283 (-20.95%)
Mutual labels: jenkins
Skyhook
Parses webhooks and forwards them in the proper format to Discord.
Stars: ✭ 263 (-26.54%)
Mutual labels: jenkins
Helm Charts
A curated set of Helm charts brought to you by codecentric
Stars: ✭ 295 (-17.6%)
Mutual labels: jenkins
Rspec junit formatter
RSpec results that your CI can read
Stars: ✭ 255 (-28.77%)
Mutual labels: jenkins
Docker Inbound Agent
Docker image for a Jenkins agent which can connect to Jenkins using TCP or Websocket protocols
Stars: ✭ 342 (-4.47%)
Mutual labels: jenkins
Performance Testing Framework
Framework allows to perform load testing with Apache Jmeter, view application/server metrics in real-time with Grafana, analyze errors cause with detailed traces for failed requests, compare different test runs in scripted dashboard and perform frontend performance testing with sitespeed.io+webpagetest
Stars: ✭ 275 (-23.18%)
Mutual labels: jenkins
Docker Android
Android in docker solution with noVNC supported and video recording
Stars: ✭ 4,042 (+1029.05%)
Mutual labels: jenkins
Jenkins Bootstrap Shared
Jenkins as immutable infrastructure made easy. A repository of shared scripts meant to be used as a git submodule. Packing Jenkins, plugins, and scripts into immutable packages and images.
Stars: ✭ 270 (-24.58%)
Mutual labels: jenkins
Jenkins Course
This is the repository with all the resources for the Jenkins training on Udemy
Stars: ✭ 269 (-24.86%)
Mutual labels: jenkins
Jenkins Script Console Scripts
A repository of one-off script console scripts for Jenkins.
Stars: ✭ 300 (-16.2%)
Mutual labels: jenkins
Jenkins Rce
😈 Jenkins RCE PoC. From unauthenticated user to remote code execution, it's a hacker's dream!
Stars: ✭ 262 (-26.82%)
Mutual labels: jenkins
Unittest Xml Reporting
unittest-based test runner with Ant/JUnit like XML reporting.
Stars: ✭ 255 (-28.77%)
Mutual labels: jenkins
Devops Guide
DevOps Guide - Development to Production all configurations with basic notes to debug efficiently.
Stars: ✭ 4,119 (+1050.56%)
Mutual labels: jenkins
Node Build Monitor
A Build Monitor written in Node.js, which supports several build services and can be easily extended.
Stars: ✭ 336 (-6.15%)
Mutual labels: jenkins
Ccmenu
CCMenu is a Mac application to monitor continuous integration servers.
Stars: ✭ 306 (-14.53%)
Mutual labels: jenkins
Jenkins backup script
Archive Jenkins settings and plugins
$JENKINS_HOME/*.xml
$JENKINS_HOME/jobs/*/*.xml
$JENKINS_HOME/nodes/*
$JENKINS_HOME/plugins/*.jpi
$JENKINS_HOME/secrets/*
$JENKINS_HOME/users/*
Usage
./jenkins-backup.sh /path/to/jenkins_home archive.tar.gz
# add timestamp suffix
./jenkins-backup.sh /path/to/jenkins_home backup_`date +"%Y%m%d%H%M%S"`.tar.gz
run with Jenkins Job
1. install Exclusive Execution Plugin
https://wiki.jenkins-ci.org/display/JENKINS/Exclusive+Execution+Plugin
2. New Job
3. Configure
Source Code Management > Repository URL
https://github.com/sue445/jenkins-backup-script.git
- Recommended : specify Branch Specifier with latest release tag
- Check https://github.com/sue445/jenkins-backup-script/releases
Build Triggers > Build periodically
Build Environment > Set exclusive Execution
Build > Execute shell
ex.
./jenkins-backup.sh $JENKINS_HOME /path/to/backup_`date +"%Y%m%d%H%M%S"`.tar.gz
Operability confirmed
- Debian wheezy
- Debian jessie
- Debian stretch
- Debian buster
- CentOS 6
- CentOS 7
Testing
requirements Docker
bundle install
bundle exec itamae docker --node-yaml=spec/node.yml spec/recipes/bootstrap.rb --image=centos:7 --tag local:latest
DOCKER_IMAGE=local:latest bundle exec rspec
Tips
rotate backup files
# keep backup with latest 30 days
find /path/to/backup_* -mtime +30 -delete
Restore commands
example
sudo /etc/init.d/jenkins stop
cd /path/to/backup_dir
tar xzvf backup.tar.gz
sudo cp -R jenkins-backup/* /path/to/jenkins/
sudo chown jenkins:jenkins -R /path/to/jenkins/
sudo /etc/init.d/jenkins start
Changelog
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].