Varnish Controller maintains two different types of history related to VCL deployments:
The controller keeps track of all the deployments in its database. You can list them
It is important to note that they are not automatically cleaned up. If space management is a concern, you can delete them manually:
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)base_url_certificate/ directory (if configured)After each successful backup, the agent updates a symlink (cmds.cli in the agent’s base directory) to point to the latest backup. This ensures Varnish can always load from the most recent successful configuration on startup.
You can use the restore.sh script to redeploy a certain version manually.