func backupMetadata(connection *bolt.DB) (map[string]interface{}, error) {
    buckets := map[string]interface{}{}

    err := connection.View(func(tx *bolt.Tx) error {
        err := tx.ForEach(func(name []byte, bucket *bolt.Bucket) error {