duplicati
duplicati copied to clipboard
Fail if --restore-path has no path
- [x] I have searched open and closed issues for duplicates.
- [x] I have searched the forum for related topics.
Environment info
- Duplicati version: 2.0.6.3
- Operating system: Windows 7
- Backend: local
Description
Feature request: Fail if the user provides --restore-path
on the command line but there is no path provided. When I was testing a restore, I was getting result of "Restore completed without errors but no files were restore". After poking around for a little while, I discovered out it was attempting to restore to the original path. Finally I realized that I was missing the necessary =
, so what I intended as the target path was just another path to restore. It would be helpful to users to abort if the path to --restore-path
is missing rather than proceed with restoring to the original path.
Steps to reproduce
-
Duplicati.CommandLine.exe restore D:\Backup\repo kenji.jpg --restore-path D:\Backup\restore\
-
Actual result:
Restore completed without errors but no files were restored
- Expected result: Program abort with failure return code