Backup
As the old saying goes: There are two types of people: those who backup, and those who will backup
. Believe it or not, the backup is something you probably want to configure. What files to back up and from which machines? Luckily, agents automatically send all the relevant data back to the master, so we don't need to bother about them. If you run Jenkins in the container, then the container itself is also not interesting, since it does not hold any persistent state. The only place we are interested in is the Jenkins home directory.
We can either install a Jenkins plugin (which will help us to set periodic backups) or simply set a cron job to archive the directory into a safe place. To reduce the size, we can exclude the subfolders ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access