file_write
Writes content verbatim to a remote file, backing up and atomically replacing existing files on overwrite or appending to the end.
Instructions
Write content to a remote file verbatim (no escaping). overwrite first backs up the old file to ~/ops-backups/-auto/, then replaces it atomically, keeping mode and owner; append adds to the end.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| mode | No | overwrite | |
| path | Yes | Absolute remote path | |
| backup | No | Back up before overwrite | |
| content | Yes |