Seed config export/backup

Hello good people of this forum. What would be the best way to export all configuration (all profiles, all networks, all zones, all acl, etc) in text format that could be backed up end versioned with GIT and used as a seed during incus admin init while provisioning new server or restoring from backup?

incus admin init --dump may be a good starting point.

Though if the goal is to keep track of the general state of the config in git, I’d probably recommend you use Terraform/Opentofu with the Incus provider as that will let you make your git repository the source of truth for the configuration and be able to easily detect any changes that have occurred.

This is exactly what i was hoping for. Thank you. Learning how to use Terraform is on my todo list.