~veebers/juju-ci-tools/perf-initial-heatmap-details

« back to all changes in this revision

Viewing changes to backup-jobs

  • Committer: Aaron Bentley
  • Date: 2014-02-27 19:34:25 UTC
  • mto: This revision was merged to the branch mainline in revision 257.
  • Revision ID: aaron.bentley@canonical.com-20140227193425-exij5mem765i029l
Update backups to include history, build-failure config and repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
 
tarfile=/mnt/jenkins/ci-jobs-$(date -I).tar.gz
3
 
if [ -x $tarfile ]; then
 
2
tarfile=/mnt/jenkins/ci-jobs-$(date -I).tar.bz2
 
3
if [ -e $tarfile ]; then
4
4
    echo $tarfile already exists!
5
5
    exit 1
6
6
fi
7
 
tar -C /var/lib/jenkins -czvf $tarfile --exclude=workspace/* \
8
 
  --exclude=builds/* --exclude=.bzr  jobs/
 
7
tar -C /var/lib/jenkins -cjf $tarfile --exclude=workspace/* \
 
8
  --exclude=builds/*/archive --exclude=jobs/.bzr  \
 
9
  jobs/ build-failure-analyzer.xml repository