Page MenuHomePhabricator

Configure config backup
Closed, ResolvedPublic

Description

SCM Sync Configuration Plugin or via the jenkins_home volume

Related Objects

Event Timeline

kai.nissen renamed this task from Configure config backup to repo to Configure config backup.Jun 7 2017, 1:32 PM
kai.nissen updated the task description. (Show Details)

Along the lines of https://docs.docker.com/engine/tutorials/dockervolumes/#backup-restore-or-migrate-data-volumes

jenkins-backup-files.txt - List of files we want in the backup (if not all)

/data/config.xml

Command to create tar ball of current config
docker run --rm -u $UID:$GID -v jenkins_home:/data:ro -v $(pwd):/backup ubuntu tar czf /backup/backup.tar.gz -T /backup/jenkins-backup-files.txt

Found problems

  • mail not installed, hence crontjob notifications were not sent
  • wmfg-backup user mysteriously not in docker group (despite playbook instructions)

Entire jenkins config kept on backup server for 10d

wmfg-backup@vm5001443:~/jenkins-backup$ ll
insgesamt 674736
drwxrwx---  2 wmfg-backup wmfg-backup      4096 Jun 26 13:21 ./
drwxr-xr-x 14 wmfg-backup wmfg-backup      4096 Jun 22 11:50 ../
-rw-r--r--  1 wmfg-backup wmfg-backup 171368425 Jun 22 03:00 20170622030015Z.tar.gz