Backup jenkins home to S3 (supports periodic backups)
Docker:
$ docker run -e S3_ACCESS_KEY_ID=key -e S3_SECRET_ACCESS_KEY=secret -e S3_BUCKET=my-bucket -e S3_PREFIX=backup -e JENKINS_HOME=/var/jenkins_home raphaelpr/postgres-backup-s3
Docker Compose:
jkbackups3:
image: raphaelpr/jenkins-backup-s3
environment:
SCHEDULE: '@daily'
S3_REGION: region
S3_ACCESS_KEY_ID: key
S3_SECRET_ACCESS_KEY: secret
S3_BUCKET: my-bucket
S3_PREFIX: backup
TIMEZONE: 'America/Maceio'
JENKINS_HOME: '/var/jenkins_home'
You can additionally set the SCHEDULE environment variable like -e SCHEDULE="@daily" to run the backup automatically.
More information about the scheduling can be found here.
Content type
Image
Digest
Size
26.6 MB
Last updated
over 9 years ago
docker pull raphaelpr/jenkins-backup-s3