Search
Varnish Controller

Backups

Backups and Versioning in Varnish Controller

Varnish Controller maintains two different types of history related to VCL deployments:

Deploy logs and file versions (database-stored)

The controller keeps track of all the deployments in its database. You can list them

  • in UI via the rollback tab of a VCLGroup page
  • via the REST API
  • using vcli

It is important to note that they are not automatically cleaned up. If space management is a concern, you can delete them manually:

  1. Delete any deploy logs that are no longer needed and not currently deployed.
  2. Delete file versions if you no longer need to keep historical VCL files (for example with [vc]vcli file delete](../cli/vcli/vcli_file_delete)

Deployment backups (on the Varnish nodes)

The agents will keep local copies of the recently deployed VCLs. By default, this is limited to 20 backups, but this can easily be changed with the -max-backups argument.

Backups include:

  • restore.sh (script to reload via varnishadm)
  • cmds.cli (Varnish CLI commands for reloading VCLs)
  • Associated VCL files

You can use the restore.sh script to redeploy a certain version manually.


®Varnish Software, Wallingatan 12, 111 60 Stockholm, Organization nr. 556805-6203