Created
August 19, 2014 15:09
-
-
Save andreiashu/54f0ccd212991cf9ddb5 to your computer and use it in GitHub Desktop.
Jenkins self-backup to S3 job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /var/lib | |
tar czf ${WORKSPACE}/ecm_jenkins.tar.gz --exclude='*.log' --exclude='jenkins/jobs/*/builds/*' --exclude='jenkins/jobs/*/workspace/*' jenkins | |
s3cmd put ${WORKSPACE}/ecm_jenkins.tar.gz s3://[bucket-name]/ecm_jenkins.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment