Skip to main content
48 votes
Accepted

How do you back up Jenkins jobs & master configs?

There are many ways to do this but the easiest way I can think of is doing a backup of the Jenkins home folder. You can see where your Jenkins home folder is located with: su jenkins echo $...
Gepser Hoil's user avatar
  • 1,312
40 votes

How do you back up Jenkins jobs & master configs?

All jobs (jobs/) and master config files (config.xml) can be found in Jenkins home folder (JENKINS_HOME ) in the following structure: JENKINS_HOME +- config.xml (jenkins root configuration) +- *....
kenorb's user avatar
  • 7,901
11 votes

How do you back up Jenkins jobs & master configs?

If your Jenkins jobs are defined in a Jenkinsfile you can store it in a git repository and have it loaded up by using Pipeline. Unfortunately, since not all Jenkins plugins support Jenkinsfile and ...
avi's user avatar
  • 1,279
9 votes

How do you back up Jenkins jobs & master configs?

The SCM Sync Configuration Plugin does exactly what you wish. Works with either svn or git to backup your jenkins core and job configuration, so gives you easy tracking as to who made changes, as well ...
Adam Berry's user avatar
7 votes
Accepted

Zip/tar a folder using chef resource

Well that's not exactly about chef, you're basically asking how to use tar. The command to create an archive of a folder would be tar -zcvf <backup_thing>.tgz <path_to_backup> In the tar ...
Tensibai's user avatar
  • 11.4k
6 votes

How do you back up Jenkins jobs & master configs?

I'm using scripts from sue445/jenkins-backup-script. It archives Jenkins settings and plugins such as: $JENKINS_HOME/*.xml $JENKINS_HOME/jobs/*/*.xml $JENKINS_HOME/nodes/* $JENKINS_HOME/plugins/*....
nickcheng's user avatar
  • 161
6 votes

How do you back up Jenkins jobs & master configs?

There are few ways to backup jenkins data and master configurations. The best way for backup is to use the Thinbackup plugin. You can schedule timely backups using cron expressions. You can configure ...
Bibin Wilson's user avatar
4 votes

Backup Jenkins log files to external cloud storage

Historically, I approached this a bit differently. I added a post-build step to each job, and had it copy the output to S3 at execution time via the S3 plugin. This blog post covers the moving parts ...
Corey Quinn's user avatar
4 votes

How do you back up Jenkins jobs & master configs?

You can try the thinBackup plugin (even though it is not actively maintained) [if taking a logical backup is all you want] (i.e. most of the config xml files, jobs, nodes etc). The backup size won't ...
Saikat's user avatar
  • 141
3 votes
Accepted

What are tools that lend themselves for backup and recovery in a CI/CD environment?

The things that would be backed up would be the config files of the servers, the database and uploaded content as these will almost always be unique and necessary. The containers, VMs, even the ...
James Shewey's user avatar
  • 3,732
2 votes

How do you back up Jenkins jobs & master configs?

I needed to migrate a Jenkins from one Windows Server instance to another. Finally I managed to do it like that: Stop the Jenkins service (if you can afford it) Copy the entire Jenkins folder (by ...
mandarin's user avatar
  • 121
2 votes

How to test database applications in QA testing environments?

The biggest problem with database backups is that you cannot simply snapshot them. You first have to make sure the DB is not mid-transaction when taking a snapshot, otherwise you will restore to an ...
James Shewey's user avatar
  • 3,732
2 votes
Accepted

Download Google Cloud Bucket as a file (zip)

You seem to be confused a bit about how Firestore stores data and what Google is suggesting you do. What is the problem? You are backing up a bucket inside other bucket. This is not correct. ...
Xiong Chiamiov's user avatar
2 votes

How to handle AWS Offsite or cross-account RDS (mysql) backups?

On top of protecting your root account as best as you can, you should be able to reduce the risk of such resource deletion if you have more than 1 resource to protect. For example if all AWS ...
jdog's user avatar
  • 650
2 votes

How to take a backup of Ansible tower?

All you need is a backup of the postgres database and the projects (to be safe but they should be rebuildable by pulling them again from your VCS in most cases). Exporting an ovf of you full vm is ...
Zeitounator's user avatar
2 votes

How to remove the AWS Backups

Coincidentally I had to do something very similar yesterday. This is the script I used: #!/bin/bash -e VAULT_NAME=... # put your Backup Vault name here for ARN in $(aws backup list-recovery-points-...
MLu's user avatar
  • 1,001
2 votes
Accepted

Backup Jenkins log files to external cloud storage

Corey's answer ended up inspiring me to take another look at the plugins available, this time considering anything that could be applied to jobs as a post-build step. I found AWS CloudWatch Logs ...
Alex's user avatar
  • 4,522
1 vote
Accepted

How to run a task from a playbook to a specific host

This is a duplicate of this StackOverflow question. But I will combine and summarize all the answers here. If your "other_host" is in the playbooks inventory then you can use the when ...
Levi's user avatar
  • 1,054
1 vote

What are possible backup status in velero?

As I see in Velero code (version: v.1.5.3), the backups can have the following phases: New FailedValidation InProgress Completed PartiallyFailed Failed Deleting see: https://github.com/vmware-tanzu/...
Ferenc Németh's user avatar
1 vote

How to push to other origins using Azure Pipelines?

While I haven't tried this, I suppose a solution would be to have a regular pipeline (this should work in either build or release pipelines) that would check out your repo (as it's default first step) ...
Peter's user avatar
  • 221
1 vote

Planning a backup system using postgress, chef and vault

First chef runs as often as you configure it to do. Second Chef is a configuration management system and not a crontab or an orchestration system. Use chef to configure cron (that can not be not an ...
Tensibai's user avatar
  • 11.4k
1 vote

Best practices for external backups for S3 buckets?

In terms of S3, for increased durability, consider cross region replication as an option if you want to increase the durability. AWS also provides their AWS Backup service you might investigate. I'm ...
sheldonhull's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible