node_sync
Synchronizes a Host directory with a target node in push or pull mode, committing each file atomically and retaining extra files at the destination.
Instructions
Synchronize a directory between the Host and a node; scoped grants commit each file atomically and retain extra destination files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Target node identifier ('@appliance', '@bastion', or TargetNode name). | |
| tx_id | No | Optional stable transaction id. Reuse retrieves the original operation and never replays ambiguous work. | |
| as_root | No | Extract or pack with sudo privileges on a Linux TargetNode. | |
| exclude | No | Additional glob patterns to exclude from synchronization. | |
| direction | Yes | Sync direction ('push' from Host to Node, 'pull' from Node to Host). | |
| local_dir | Yes | Path to the directory on the Host filesystem. | |
| remote_dir | Yes | Destination or source directory path on the remote node. |