Skip to content

Instantly share code, notes, and snippets.

View clsa1's full-sized avatar

Clifford Sanders clsa1

View GitHub Profile
@abayer
abayer / jenkins-git-backup.sh
Last active June 7, 2025 03:08
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