{"result":{"depiction_url":null,"edges":{"hasreference":{"objects":[{"created":"2026-10-07T11:13:44Z","object_id":{"id":3073,"is_a":["text","documentation","adminguide"],"name":"admin_restore_site","title":{"_type":"trans","tr":{"en":"Rehearse a complete site restore"}},"uri":"https:\/\/zotonic.com\/id\/3073"},"seq":1},{"created":"2026-10-07T11:13:44Z","object_id":{"id":2995,"is_a":["text","documentation","developerguide"],"name":"developer_backup_recovery","title":{"_type":"trans","tr":{"en":"Verify backups by restoring them"}},"uri":"https:\/\/zotonic.com\/id\/2995"},"seq":2}],"predicate":{"id":2774,"is_a":["meta","predicate"],"name":"hasreference","title":{"_type":"trans","tr":{"en":"Documentation reference"}},"uri":"https:\/\/zotonic.com\/id\/hasreference"}},"references":{"objects":[{"created":"2020-05-30T05:47:28Z","object_id":{"id":1521,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_backup","title":"mod_backup","uri":"https:\/\/zotonic.com\/id\/1521"},"seq":1000000}],"predicate":{"id":332,"is_a":["meta","predicate"],"name":"references","title":{"_type":"trans","tr":{"en":"References"}},"uri":"https:\/\/zotonic.com\/id\/references"}},"subject":{"objects":[{"created":"2026-10-07T11:13:44Z","object_id":{"id":2557,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_cookbook_recipe","title":"Cookbook recipe","uri":"https:\/\/zotonic.com\/id\/2557"},"seq":1},{"created":"2026-10-07T11:13:44Z","object_id":{"id":2566,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_operator","title":"Operator","uri":"https:\/\/zotonic.com\/id\/2566"},"seq":2},{"created":"2026-10-07T11:13:44Z","object_id":{"id":2602,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_backup_and_restore","title":"Backup and restore","uri":"https:\/\/zotonic.com\/id\/2602"},"seq":3},{"created":"2026-10-07T11:13:44Z","object_id":{"id":2671,"is_a":["categorization","keyword","keyword_technology"],"name":"zotonic_topic_postgresql","title":"PostgreSQL","uri":"https:\/\/zotonic.com\/id\/2671"},"seq":4},{"created":"2026-10-07T11:13:44Z","object_id":{"id":2631,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_database","title":"Database","uri":"https:\/\/zotonic.com\/id\/2631"},"seq":5}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1599,"is_a":["text","documentation","cookbook"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1599"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_cookbook_shell_restoring_db","page_url":{"en":"https:\/\/zotonic.com\/cookbook\/1599\/rehearse-a-complete-site-restore","x-default":"https:\/\/zotonic.com\/cookbook\/1599\/rehearse-a-complete-site-restore"},"preview_url":null,"resource":{"body":{"_type":"trans","tr":{"en":"<p><strong>Access needed:<\/strong> Server, database, storage, and backup access.<\/p>\n<p>Start with a separate recovery environment. Restoring changes its database and files and makes the destination unavailable; identify that destination before running a restore command.<\/p>\n<ol><li>Obtain the selected backup, its encryption credentials if needed, matching code, and required configuration and external media copies.<\/li><li>Isolate the destination from public traffic and production integrations. Set controlled test-email delivery before enabling workflows.<\/li><li>Use the installation&#39;s supported restore procedure. For a local backup known to <code>mod_backup<\/code>, use <code>bin\/zotonic backup garden restore BACKUP_NAME<\/code>, replacing both placeholders appropriately.<\/li><li>Read the confirmation prompts, including whether configuration and security files will be restored. Check their effect on database hosts, domains, and credentials.<\/li><li>Inspect completion logs and the resulting data; the command&#39;s exit status alone is not sufficient.<\/li><li>Verify an older page, a recent page, an original media file and preview, login, and one representative workflow.<\/li><li>Record the recovery point, time taken, missing items, and changes needed to the backup plan.<\/li><\/ol>\n<p><code>backup download<\/code> also restores and requires the backup environment. It is not a harmless way to fetch a copy. Read the command reference before choosing it.<\/p>\n<p>Keep recovery testing isolated until copied schedules, email settings, and external service connections have been reviewed.<\/p>\n<h2>Verify backups by restoring them<\/h2>\n<p>Define what must be recovered: database, original media, configuration, and security material. Check which parts the selected backup includes before depending on it.<\/p>\n<p>Use an isolated destination to restore a backup and verify a page, a media file, and a login or other essential operation. Record the backup&#39;s age and the time required to restore it.<\/p>\n<p>The <code>backup download<\/code> command downloads and restores the newest backup; it is not a read-only download. Read the command reference before using restore operations and confirm the destination site.<\/p>"}},"category_id":{"id":318,"is_a":["meta","category"],"name":"cookbook","title":{"_type":"trans","tr":{"en":"Cookbook"}},"uri":"https:\/\/test.zotonic.com\/id\/318"},"content_group_id":{"id":339,"is_a":["meta","content_group"],"name":"default_content_group","title":{"_type":"trans","tr":{"en":"Default Content Group"}},"uri":"https:\/\/zotonic.com\/id\/default_content_group"},"created":"2020-05-30T05:47:27Z","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"doc_editorial_bundle":true,"doc_editorial_edges":{"hasreference":[2995,3073],"subject":[2557,2566,2602,2631,2671]},"github_url":"https:\/\/github.com\/zotonic\/zotonic\/tree\/master\/doc\/cookbook\/shell-restoring-db.rst","is_authoritative":true,"is_dependent":false,"is_featured":false,"is_protected":false,"is_published":true,"is_unfindable":false,"language":["en"],"modified":"2026-10-07T11:13:55Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"name":"doc_cookbook_shell_restoring_db","pivot_geocode":null,"pivot_location_lat":null,"pivot_location_lng":null,"privacy":0,"publication_end":"9999-06-01T00:00:00Z","publication_start":"2022-02-15T10:01:44Z","slug":"rehearse-a-complete-site-restore","summary":{"_type":"trans","tr":{"en":"Restore into isolation and verify content, media, and access."}},"title":{"_type":"trans","tr":{"en":"Rehearse a complete site restore"}},"title_slug":{"_type":"trans","tr":{"en":"rehearse-a-complete-site-restore"}},"tz":"UTC","uri":null,"version":35,"visible_for":0},"uri":"https:\/\/zotonic.com\/id\/1599","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1599"}},"status":"ok"}