Updated
On this page
Reference for the saferm undelete command — usage, flags, arguments, and examples for the undelete subcommand of the saferm CLI.
#saferm undelete
Restore a previously archived file back to its original path
Effect: mutating
#Flags
| Name | Short | Type | Default | Env | Description |
|---|---|---|---|---|---|
--force-overwrite | bool | Overwrite any existing file at the restoration destination |
#Arguments
| Name | Required | Description |
|---|---|---|
target | yes | Numeric database ID or original file path of the item to restore |
#Grants
| Kind | Name | Reason |
|---|---|---|
| proc_mutate | git-index | a restored file is staged so the working tree and the index agree again |