(docs) Add targeted restore examples
Extend the restore guidance with directory and single-file dry-run examples so operators can restore a focused path without copying an entire snapshot. Render the examples on snapshot detail pages using the selected snapshot's data path and the host-specific staging destination.
This commit is contained in:
@@ -1427,6 +1427,12 @@ class ViewTests(TestCase):
|
||||
self.assertContains(response, "rsync -aHAX --numeric-ids --info=progress2 --dry-run")
|
||||
self.assertContains(response, f"{base.path}/data/")
|
||||
self.assertContains(response, "root@web-01.example.test:/")
|
||||
self.assertContains(response, "Dry-run a directory restore")
|
||||
self.assertContains(response, f"{base.path}/data/etc/nginx/")
|
||||
self.assertContains(response, f"/restore/{host.host}/etc/nginx/")
|
||||
self.assertContains(response, "Dry-run a single file restore")
|
||||
self.assertContains(response, f"{base.path}/data/home/example/site/public_html/index.php")
|
||||
self.assertContains(response, f"/restore/{host.host}/home/example/site/public_html/index.php")
|
||||
self.assertContains(response, "Treat snapshot directories as read-only")
|
||||
self.assertContains(response, child.dirname)
|
||||
self.assertContains(response, f"Run {run.id}")
|
||||
|
||||
Reference in New Issue
Block a user