Skip to content

Instantly share code, notes, and snippets.

@francho
Created August 22, 2012 15:42
Show Gist options
  • Save francho/3426895 to your computer and use it in GitHub Desktop.
Save francho/3426895 to your computer and use it in GitHub Desktop.
Backup de jenkins en Ubuntu
#bin/sh
sudo tar vjcf /var/backups/jenkins.tgz /var/lib/jenkins/ \
--exclude '/var/lib/jenkins/jobs/*/workspace/*' \
--exclude '/var/lib/jenkins/jobs/*/builds/*' \
--exclude '/var/lib/jenkins/jobs/*/javadoc/*' \
--exclude '/var/lib/jenkins/jobs/*/bundle/*' \
--exclude '/var/lib/jenkins/tools/android-sdk/*' \
--exclude '/var/lib/jenkins/jobs/webapp-trunk/builds/*' \
--exclude '/var/lib/jenkins/.android/avd/*' \
--exclude '/var/lib/jenkins/.android/modem-nv-ram*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment