Backup file structure

By default all backups are performed under the …​/backups folder. Each entity is stored on it’s own file, named after its own id. They are placed under the equivalent rest endpoint filepath, e.g., if an entity named ¨Demo Basic route¨ is located at:

https://localhost:8080/tag/api/route/{id}

on the filesystem it can be found at:

.../backups/bak-yyyy-MM-dd-HH-mm-ss/api/route/demo-basic-route.json

The JSON file would contain:

{
  "headers": [],
  "displayName": "Demo Basic route",
  "profileRequiresAll": true,
  "roles": [],
  "profiles": [
    {
      "displayName": "Basic Auth Profile",
      "name": "Basic Auth Profile",
      "description": "Basic Auth Profile",
      "attributes": {},
      "id": "basic-auth-profile"
    }
  ],
  "description": "Demo - Route with Basic Auth",
  "index": 1,
  "modRewrite": "RewriteRule ^/?test-basic-auth$ https://www.example.com [P,NE,auth]",
  "lastMatchPattern": "^/?test-basic-auth$",
  "roleRequiresAll": true,
  "tags": [],
  "name": "Demo Basic route",
  "id": "demo-basic-route"
}