restore_from_backup
Restore a backup file to its original location, optionally specifying a different target path or forcing the restore when the target is newer than the backup.
Instructions
Restore a backup file over its original target. target_path defaults to the path implied by the backup's .bak. filename; pass target_path explicitly when the backup name doesn't match that shape. Refuses if target mtime is newer than backup (staleness guard) — pass force=True to override. Returns {source, restored_to, bytes_restored}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| backup_path | Yes | ||
| target_path | No |