site_snapshot
Create a comprehensive backup of all Voog site resources including pages, articles, products, and layouts. Required before risky operations like layout changes or page deletions.
Instructions
Comprehensive read-only backup of every mutable Voog resource: pages, articles, elements, layouts, layout_assets, languages, redirect_rules, nodes, texts, content_partials, tags, forms, media_sets, assets, webhooks, site, me, products (with translations + variant_types), per-page contents, per-article details, per-product details, and rendered HTML samples for VoogStyle capture. By default REFUSES to overwrite an existing directory — pick a fresh location. Pass overwrite=true to write into an existing directory (automation/cron use case); files from a prior snapshot may persist alongside new files if the underlying Voog state has shrunk. REQUIRED pre-flight before any risky operation: layout rename, mass push, layout swap, VoogStyle template push, page_delete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site name from voog_list_sites | |
| output_dir | Yes | Absolute path. Fresh (non-existing) by default; pass overwrite=true to allow existing. | |
| overwrite | No | Allow writing into an existing snapshot directory. Default false; set true to overwrite a prior snapshot's output. (Distinct from the force flag on delete tools, which authorizes destruction. Here it only authorizes writing into an existing dir.) |