I'd tell you to take JUST the $ZITI_HOME/pki
folder, the controller's configuration file (If using "the host it anywhere" quickstart it'd be named: $ZITI_HOME/$ZITI_NETWORK.yaml
) and the db snapshot. Oh and actually, you might want to also backup the systemd file at /etc/systemd/system/ziti-controller.service
We don't have this whole process documented at this time and I will admit that I have not tested this myself yet but here's the process that you should be able to use to restore:
- put back systemd unit file
/etc/systemd/system/ziti-controller.service
- put back yaml file at
$ZITI_HOME/$ZITI_NETWORK.yaml
- put pki directory back into
$ZITI_HOME/pki
- put db back into
$ZITI_HOME/db/ctrl.db
(notice I renamed it, without the timestamp) - enable the systemd unit file:
sudo systemctl enable --now ziti-controller