Skip to content

Update cp docs: permissions preserved by default#5180

Merged
btshrewsbury-viam merged 3 commits into
mainfrom
claude/update-cp-preserve-permissions-2026-07-11
Jul 13, 2026
Merged

Update cp docs: permissions preserved by default#5180
btshrewsbury-viam merged 3 commits into
mainfrom
claude/update-cp-preserve-permissions-2026-07-11

Conversation

@shannonbradshaw

Copy link
Copy Markdown
Collaborator

Summary

Update viam machines part cp documentation to reflect RDK #6211: file permissions are now preserved by default (matching scp behavior). The --preserve flag now additionally preserves modification timestamps and forces exact permission bits past umask, rather than being required for any permission preservation.

Source changes

Docs changes

  • docs/cli/reference.md: Updated --preserve flag description to clarify that file permissions are always transferred by default. Updated code example comments from "keep original permissions and metadata" to "preserve exact permissions and timestamps".
  • docs/cli/manage-your-fleet.md: Updated prose to explain that permissions are preserved by default (matching scp behavior) and --preserve adds timestamps and exact permission bits.

How I found these

  • Xref lookup: cli-xref.md for machines part cp
  • Grep matches: 4 docs pages reference part cp; 2 needed updating

Generated by daily docs change agent


Generated by Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E46cVmU8tP3pJ1pzviLmzv
@netlify

netlify Bot commented Jul 11, 2026

Copy link
Copy Markdown

Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit beec185
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/6a55065ae837130008ff8026
😎 Deploy Preview https://deploy-preview-5180--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 40 (🔴 down 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Jul 11, 2026
@btshrewsbury-viam

Copy link
Copy Markdown
Collaborator

Evan Dorsky (@EvanDorsky) Would you mind giving this a quick review please?

Comment thread docs/cli/manage-your-fleet.md Outdated
```

Preserve file permissions and timestamps:
File permissions are preserved by default, matching `scp` behavior.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would change "matching scp behavior" to "respecting the destination umask"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in beec185.


Generated by Claude Code

Comment thread docs/cli/reference.md Outdated
| `--part` | Part ID for which the command is being issued. | **Required** |
| `--recursive`, `-r` | Recursively copy files. Default: `false`. | Optional |
| `--preserve`, `-p` | Preserve modification times and file mode bits from the source files. Default: `false`. | Optional |
| `--preserve`, `-p` | Preserve modification times and set exact file permissions from the source, bypassing umask. File permissions are always transferred by default; this flag additionally preserves timestamps and forces exact permission bits. Default: `false`. | Optional |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would change "bypassing umask" to "overriding the destination umask"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in beec185.


Generated by Claude Code

@EvanDorsky

Copy link
Copy Markdown
Member

Thanks, this is great. I left nits but this is also fine as-is.

@btshrewsbury-viam btshrewsbury-viam merged commit 0b3d9c4 into main Jul 13, 2026
12 checks passed
@btshrewsbury-viam btshrewsbury-viam deleted the claude/update-cp-preserve-permissions-2026-07-11 branch July 13, 2026 21:26
@github-actions

Copy link
Copy Markdown

🔎💬 Inkeep AI search and chat service is syncing content for source 'Viam Docs'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to build This pull request is marked safe to build from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants