sync
Flush cached filesystem writes to persistent storage to ensure data durability before critical operations like system shutdown.
Instructions
Flush cached filesystem writes to persistent storage where supported. Read-only in interface but causes I/O: forces dirty buffers to disk. Returns JSON with sync status. Use to ensure data durability before critical operations like system shutdown. Not for general use before every file operation — most commands flush on close. See also 'dd'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Report without syncing. |