Skip to content

Backup and Restore

The sf-operator CLI provides commands to perform a backup and a restore of a deployment managed by the sf-operator.

The backup command can be run periodically to perform a backup of a Software Factory deployment. The command should be couple with a proper backup system to safely store the backuped data.

Restoring a backup must be done via the restore command and by following a specific process:

  1. Deploy a Software Factory CR resource without ConfigLocation and Zuul connections definition.
  2. Restore the backup with the restore command
  3. Apply your final Software Factory CR

The backup archive

The archive contains:

  • Some k8s Secret resources (like the Zuul Keystore Secret and Zuul SSH private key Secret)
  • The Zuul SQL database content (history of builds)
  • The Zuul projects' private keys (the keys stored into Zookeeper and used to encrypt/decrypt in-repo Zuul Secrets)