restore_from_recycle_bin
Restore deleted files and folders from a Synology shared folder's recycle bin back to their original location or a chosen destination folder, with an option to overwrite existing items.
Instructions
Restore deleted files or folders from one shared folder's recycle bin. Check what's there first with list_recycle_bin: every path must be in that share's bin, or nothing is restored. Without dest_folder, each item goes back to its original folder, which is re-created if it's gone. An item already at the destination is skipped and stays in the bin, unless overwrite=true, which replaces the existing one. A long restore keeps running on the NAS and returns a handle for file_task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Items to restore, as paths in the bin the way list_recycle_bin shows them (`Shows/Ep1.mkv`); full paths such as `/video/#recycle/Shows/Ep1.mkv` work too. | |
| share | Yes | The shared folder whose bin holds the items, as a name (`video`) or path (`/video`). | |
| overwrite | No | Replace an item already at the destination (default false: it's skipped and stays in the bin). | |
| dest_folder | No | An existing folder to restore everything into, flat (default: each item's original folder). |