jenkins-backup-s3
A collection of scripts to backup Jenkins configuration to S3, as well as manage and restore those backups. By default runs silently (no output) with proper exit codes. Log Level option enables output.
Setup
pip install jenkins-backup-s3
Configure S3 and IAM
-
Create an S3 bucket to store backups.
-
Create an IAM role with STS:AssumeRole and a trust Service ec2.amazonaws.com. The IAM role must have the
GetObject,DeleteObject,PutObjectandListBucketS3 permissions for that bucket.
Usage
Setup with cron for ideal usage.
backup-jenkins {OPTIONS} {COMMAND} {COMMAND_OPTIONS}
Options can be set directly or via and environment variable.
The only required option is your S3 bucket:
backup-jenkins --bucket={BUCKET_NAME}
Other available options are:
Bucket prefix (defaults to "jenkins-backups"):
backup-jenkins --bucket-prefix={BUCKET_PREFIX}
Bucket region (defaults to "us-east-1"):
backup-jenkins --bucket-region={BUCKET_REGION}
Available commands:
createrestorelistdeleteprune
Run backup-jenkins {COMMAND} --help for command-specific options.
Running a daily backup on Jenkins
Create a new item in Jenkins and configure a build of this repository.
Set the shell / virtualenv builder (if you have it installed) to run backup-jenkins create.
Set the build on a daily CRON schedule.
Metadata
Release files for jenkins-backup-s3 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jenkins-backup-s3-0.1.9.tar.gz | 4.5 kB | Without provenance | Details for jenkins-backup-s3-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jenkins_backup_s3-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for jenkins_backup_s3-0.1.9-py3-none-any.whl |
Total release size: 10.6 kB
Release files / jenkins-backup-s3-0.1.9.tar.gz
| Download URL | jenkins-backup-s3-0.1.9.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78080b1a541f826c9b343aba4f97e00fcab767bb1370887a295a2f52d71a45bc
|
|
BLAKE2b-256 checksum How to use checksums |
67d58836f375d0acafd839764b34cc6fcdac7413091915d2216f52693ebff993
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/2.7.15
|
Release files / jenkins_backup_s3-0.1.9-py3-none-any.whl
| Download URL | jenkins_backup_s3-0.1.9-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7a07618a95d684c2c24a335661ce36bd17d7df43644e1b5d4792292f1157ce2
|
|
BLAKE2b-256 checksum How to use checksums |
7541c6756fd28c60f038660c0231ccdf18dd54a1dedf62015a72c3562020b068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/2.7.15
|
Security for jenkins-backup-s3 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.