Back up saves
backup_savesCreate a dated snapshot of a MiSTer's saves and save states, hard-linking unchanged files so each backup stays complete while only changes use space; older snapshots past the limit are removed.
Instructions
Copy a MiSTer's saves and save states into a new dated snapshot in the configured backup folder.
Files unchanged since the last snapshot are hard-linked rather than downloaded, so each snapshot is complete but only changes cost space. The MiSTer is only read. Old snapshots beyond the configured number are removed. Needs SSH and a backup folder (backup_dir).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | MiSTer name from get_status. Omit when the call already says which (a ref does). | |
| dry_run | No | Count what would be copied, write nothing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| files | Yes | ||
| copied | Yes | ||
| linked | Yes | ||
| pruned | Yes | ||
| outcome | Yes | ||
| snapshot | Yes | ||
| bytes_copied | Yes |