Skip to content

docs: recommend backup-all for host backups#4164

Merged
cv merged 3 commits into
NVIDIA:mainfrom
glenn-agent:docs/backup-all-restore-guide
Jun 6, 2026
Merged

docs: recommend backup-all for host backups#4164
cv merged 3 commits into
NVIDIA:mainfrom
glenn-agent:docs/backup-all-restore-guide

Conversation

@glenn-agent

@glenn-agent glenn-agent commented May 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace the source-tree scripts/backup-workspace.sh section with the host-installed nemoclaw backup-all workflow
  • Explain where backup-all stores per-sandbox snapshot bundles and how to inspect/restore them
  • Keep the source-tree helper documented only as an engineering-only helper that is not installed by the standard installer

Fixes #3681

Signed-off-by: Glenn-Agent glenn_agent@163.com

Verification

  • npm run docs:strict (passes; existing Fern upgrade warnings only)
  • git diff --check
  • git verify-commit HEAD

Summary by CodeRabbit

  • Documentation
    • Clarified that destroying a sandbox permanently deletes workspace/state files and updated restore guidance.
    • Added a “Back Up All Running Sandboxes” section documenting the single-command backup, where snapshot bundles are stored, and how to list/restore per-sandbox snapshots.
    • Removed automated backup script guidance and noted helper scripts exist only in the source repository.

@copy-pr-bot

copy-pr-bot Bot commented May 25, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented May 25, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 611dd5e2-904d-471a-a654-87f758b1a063

📥 Commits

Reviewing files that changed from the base of the PR and between 013eb62 and 963cba9.

📒 Files selected for processing (1)
  • docs/manage-sandboxes/backup-restore.mdx
💤 Files with no reviewable changes (1)
  • docs/manage-sandboxes/backup-restore.mdx

📝 Walkthrough

Walkthrough

Documentation updated to clarify sandbox destruction deletes workspace/state, add a "Back Up All Running Sandboxes" section documenting nemoclaw backup-all, note the helper script is source-repo-only, and adjust multi-agent snapshot restore syntax.

Changes

Sandbox Backup Documentation

Layer / File(s) Summary
Intro clarification
docs/manage-sandboxes/backup-restore.mdx
Reworded introduction to warn that destroying a sandbox permanently deletes workspace/state files and to list covered topics: snapshot commands, all-sandbox backups, and manual CLI backup.
Back Up All Running Sandboxes & script note
docs/manage-sandboxes/backup-restore.mdx
Added "Back Up All Running Sandboxes" documenting nemoclaw backup-all, per-running-sandbox snapshot create behavior, bundle storage under ~/.nemoclaw/rebuild-backups/, and replaced the prior "Using the Backup Script" section with a note that scripts/backup-workspace.sh exists only in the source repository and is not installed by default.
Multi-Agent Deployments wording
docs/manage-sandboxes/backup-restore.mdx
Updated text to reference the fully-qualified $$nemoclaw <name> snapshot restore command when describing reapplying the full per-agent workspace set.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

v0.0.58

Suggested reviewers

  • miyoungc

Poem

🐰 I hopped through docs at break of day,
I nudged the commands to show the right way,
"backup-all" hums, no phantom script in sight,
Snapshots tucked under ~/.nemoclaw at night,
A merry hop — the docs now sleep all right.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: replacing script-based backups with the nemoclaw backup-all command in documentation.
Linked Issues check ✅ Passed The PR directly addresses all coding-related requirements from issue #3681: replacing the 'Using the Backup Script' section with nemoclaw backup-all documentation and clarifying backup bundle storage.
Out of Scope Changes check ✅ Passed All changes are scoped to the backup-restore documentation update; no unrelated modifications are present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/manage-sandboxes/backup-restore.mdx`:
- Line 118: The docs currently show the wrong CLI syntax for snapshots; update
the example on that line to use the correct contract by replacing instances of
"nemoclaw <name> snapshot ..." with the proper form "nemoclaw sandbox snapshot
<list|restore|create> <name>" (e.g., use "nemoclaw sandbox snapshot list <name>"
and "nemoclaw sandbox snapshot restore <name>") so the documented commands match
the CLI.
- Around line 121-122: Update the paragraph in
docs/manage-sandboxes/backup-restore.mdx that mentions
scripts/backup-workspace.sh to include a direct link to the script in the
NemoClaw source tree; locate the text that reads "scripts/backup-workspace.sh"
and replace or augment it with a hyperlink pointing to the exact repository path
for that file (e.g., the GitHub/GitLab URL to scripts/backup-workspace.sh) while
keeping the surrounding note about the installer and the suggested host commands
(nemoclaw backup-all and snapshot commands) unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: ed7ea862-9ef4-489d-8ce2-73199069da0e

📥 Commits

Reviewing files that changed from the base of the PR and between 8be9986 and d800e7d.

📒 Files selected for processing (1)
  • docs/manage-sandboxes/backup-restore.mdx

Comment thread docs/manage-sandboxes/backup-restore.mdx
Comment thread docs/manage-sandboxes/backup-restore.mdx Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
docs/manage-sandboxes/backup-restore.mdx (2)

145-148: ⚡ Quick win

Split sentences to one per line.

Lines 147 and 148 each contain multiple sentences. The style guide requires one sentence per line to make diffs readable.

Suggested formatting
 `nemoclaw sandbox snapshot create <name>` automatically discovers every `workspace-*/`
 directory under the sandbox state tree and includes it in the snapshot bundle
-alongside the default `workspace/`. `nemoclaw sandbox snapshot restore <name>` re-applies the full
-per-agent set. No manual per-workspace backup pattern is needed.
+alongside the default `workspace/`.
+`nemoclaw sandbox snapshot restore <name>` re-applies the full per-agent set.
+No manual per-workspace backup pattern is needed.

As per coding guidelines: One sentence per line in source (makes diffs readable). Flag paragraphs where multiple sentences appear on the same line.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/manage-sandboxes/backup-restore.mdx` around lines 145 - 148, Split the
sentences on the lines that describe snapshot creation and restore so each
sentence is on its own line; update the lines mentioning `nemoclaw sandbox
snapshot create <name>`, the discovery of `workspace-*/` and inclusion of
`workspace/`, and `nemoclaw sandbox snapshot restore <name>` so each sentence is
separated onto its own line to comply with the one-sentence-per-line style rule.

15-15: ⚡ Quick win

Use active voice.

The phrase "are permanently deleted" is passive. Per the style guide, active voice is required.

Suggested rewrite
-They persist across sandbox restarts but are **permanently deleted** when you run `nemoclaw <name> destroy`.
+They persist across sandbox restarts, but `nemoclaw <name> destroy` **permanently deletes** them.

As per coding guidelines: Active voice required. Flag passive constructions. Bad: "A gateway is created by the CLI." Good: "The CLI creates a gateway."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/manage-sandboxes/backup-restore.mdx` at line 15, Rewrite the passive
sentence "They persist across sandbox restarts but are permanently deleted when
you run `nemoclaw <name> destroy`." to active voice: replace the passive clause
with an active subject (the CLI/command) — e.g., "They persist across sandbox
restarts, but the command `nemoclaw <name> destroy` permanently deletes them."
Update the line in docs/manage-sandboxes/backup-restore.mdx where that exact
phrase appears.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@docs/manage-sandboxes/backup-restore.mdx`:
- Around line 145-148: Split the sentences on the lines that describe snapshot
creation and restore so each sentence is on its own line; update the lines
mentioning `nemoclaw sandbox snapshot create <name>`, the discovery of
`workspace-*/` and inclusion of `workspace/`, and `nemoclaw sandbox snapshot
restore <name>` so each sentence is separated onto its own line to comply with
the one-sentence-per-line style rule.
- Line 15: Rewrite the passive sentence "They persist across sandbox restarts
but are permanently deleted when you run `nemoclaw <name> destroy`." to active
voice: replace the passive clause with an active subject (the CLI/command) —
e.g., "They persist across sandbox restarts, but the command `nemoclaw <name>
destroy` permanently deletes them." Update the line in
docs/manage-sandboxes/backup-restore.mdx where that exact phrase appears.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 4976d9d5-1d27-4924-8ecc-d6462530f984

📥 Commits

Reviewing files that changed from the base of the PR and between d800e7d and 5852659.

📒 Files selected for processing (1)
  • docs/manage-sandboxes/backup-restore.mdx

@wscurran

Copy link
Copy Markdown
Contributor

✨ Thanks for submitting this detailed PR about updating the backup and restore documentation to include the snapshot workflow and 'nemoclaw backup-all' command. This proposes a fix for issue #3681 by replacing the source-tree 'scripts/backup-workspace.sh' section with the host-installed 'nemoclaw backup-all' workflow and explaining where 'backup-all' stores per-sandbox snapshot bundles.


Related open issues:

@wscurran wscurran requested a review from miyoungc May 26, 2026 17:56
@wscurran wscurran added area: cli Command line interface, flags, terminal UX, or output bug-fix PR fixes a bug or regression area: docs Documentation, examples, guides, or docs build and removed NemoClaw CLI labels Jun 3, 2026
Signed-off-by: Glenn-Agent <glenn_agent@163.com>
@cv cv enabled auto-merge (squash) June 6, 2026 17:46
@cv cv merged commit 86eace3 into NVIDIA:main Jun 6, 2026
22 checks passed
miyoungc added a commit that referenced this pull request Jun 8, 2026
## Summary
- Add the v0.0.61 release notes from the GitHub dev announcement.
- Document managed vLLM recovery after host reboot and Slack
denied-mention feedback.
- Refresh generated `nemoclaw-user-*` skills from the source docs.

## Source summary
- #4983 -> `docs/about/release-notes.mdx`: Added the v0.0.61 release
summary from the dev announcement and linked behavior groups to deeper
docs.
- #4904 -> `docs/inference/use-local-inference.mdx`: Documented that
managed vLLM restarts the `nemoclaw-vllm` container after host reboot
during recovery.
- #4933 -> `docs/manage-sandboxes/messaging-channels.mdx`: Documented
Slack sender feedback for denied channel `@mention` events.
- #4879, #4915, #4935, #4759, #4164, #4888, #4897, #4944, #4959 ->
`.agents/skills/`: Refreshed generated user skills from the current
source docs for release prep.

## Verification
- `python3 scripts/docs-to-skills.py docs/ .agents/skills/ --prefix
nemoclaw-user --doc-platform fern-mdx`
- `npm run docs` (passed outside the tool sandbox after `tsx` IPC pipe
creation was blocked in the sandbox)
- `npm run build:cli` (refreshed local `dist/` for the pre-push
TypeScript hook)
- Commit and pre-push hooks passed, including docs-to-skills
verification, markdownlint, gitleaks, skills YAML tests, and CLI
TypeScript.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
  * Updated sandbox security documentation with file descriptor limits.
  * Changed default inference model for DGX Station profile.
  * Enhanced agent policy and backup/restore documentation.
  * Improved command reference examples with clearer formatting.
  * Clarified Slack messaging denial notice behavior.
  * Added automatic vLLM container recovery during host reboot.
  * Updated release notes for v0.0.61.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli Command line interface, flags, terminal UX, or output area: docs Documentation, examples, guides, or docs build bug-fix PR fixes a bug or regression v0.0.61 Release target

Projects

None yet

4 participants