backup_file
Creates a tar.gz backup of a remote file or directory with a SHA-256 checksum in a dated tag folder under ~/ops-backups, so you can restore before edits.
Instructions
Back up a remote file or directory (tar.gz) to ~/ops-backups/-/ with a sha256 file. Use before editing via exec.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Short name, e.g. xray-chain | |
| host | Yes | ||
| path | Yes | Absolute remote path |