Update cp docs: permissions preserved by default#5180
Merged
btshrewsbury-viam merged 3 commits intoJul 13, 2026
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E46cVmU8tP3pJ1pzviLmzv
✅ Deploy Preview for viam-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Collaborator
|
Evan Dorsky (@EvanDorsky) Would you mind giving this a quick review please? |
| ``` | ||
|
|
||
| Preserve file permissions and timestamps: | ||
| File permissions are preserved by default, matching `scp` behavior. |
There was a problem hiding this comment.
I would change "matching scp behavior" to "respecting the destination umask"
Collaborator
Author
There was a problem hiding this comment.
| | `--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 | |
There was a problem hiding this comment.
I would change "bypassing umask" to "overriding the destination umask"
Collaborator
Author
There was a problem hiding this comment.
Member
|
Thanks, this is great. I left nits but this is also fine as-is. |
Evan Dorsky (EvanDorsky)
approved these changes
Jul 13, 2026
|
🔎💬 Inkeep AI search and chat service is syncing content for source 'Viam Docs' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Update
viam machines part cpdocumentation to reflect RDK #6211: file permissions are now preserved by default (matchingscpbehavior). The--preserveflag now additionally preserves modification timestamps and forces exact permission bits past umask, rather than being required for any permission preservation.Source changes
viam machine part cp+ fix copy resume bugDocs changes
docs/cli/reference.md: Updated--preserveflag 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 (matchingscpbehavior) and--preserveadds timestamps and exact permission bits.How I found these
cli-xref.mdformachines part cppart cp; 2 needed updatingGenerated by daily docs change agent
Generated by Claude Code