233.1.9
by Aaron Bentley
Add backup-jobs script. |
1 |
#!/bin/bash
|
255.1.1
by Aaron Bentley
Update backups to include history, build-failure config and repository. |
2 |
tarfile=/mnt/jenkins/ci-jobs-$(date -I).tar.bz2 |
3 |
if [ -e $tarfile ]; then |
|
233.1.9
by Aaron Bentley
Add backup-jobs script. |
4 |
echo $tarfile already exists! |
5 |
exit 1 |
|
6 |
fi
|
|
255.1.1
by Aaron Bentley
Update backups to include history, build-failure config and repository. |
7 |
tar -C /var/lib/jenkins -cjf $tarfile --exclude=workspace/* \ |
8 |
--exclude=builds/*/archive --exclude=jobs/.bzr \ |
|
9 |
jobs/ build-failure-analyzer.xml repository |