Skip to content

Instantly share code, notes, and snippets.

View dalwar23's full-sized avatar
🌶️
🦄 🧜‍♀️ 🧚 ☕️ ⚡️ ☔️ 🍦 🖖

Dalwar Hossain dalwar23

🌶️
🦄 🧜‍♀️ 🧚 ☕️ ⚡️ ☔️ 🍦 🖖
View GitHub Profile
@dalwar23
dalwar23 / jenkins-git-backup.sh
Created October 29, 2020 23:06 — forked from abayer/jenkins-git-backup.sh
Example of a script for backing up Jenkins config in git.
#!/bin/bash
#
# Copies certain kinds of known files and directories from a given Jenkins master directory
# into a git repo, removing any old ones, adds 'em, commits 'em, pushes 'em.
#
set -ex
if [ $# -ne 2 ]; then
echo usage: $0 root_dir jenkins_master