Closed kalekundert closed 11 months ago
The Borg check command does not support the --dry-run option.
However, it seems like commands that modify the repository but do not support the --dry-run option should not run if --dry-run is requested. So I have modified Emborg so it does not run either ‘check --repair´ or ‘compact’ if --dry-run is requested.
I am not convinced that --dry-run should imply --narrate. If you run without --narrate and want to see the details of how the Borg commands are run, you can always run ‘emborg log’ to see the contents of the log file.
The latest release (1.38) contains a fix to this issue.
Borg warns not to run the repair command unless you know what you're doing, since it can cause data loss, so I wanted to use the dry run option to see the command before running it. However, the
-d
flag seems to have no effect in this case:Also, unless you use the
--narrate
option, the dry run option doesn't seem to print out the commands that would be executed. This doesn't make sense to me: isn't the whole point of a dry run to see the commands that would be run? Nothing else is supposed to happen, so if the commands aren't displayed, isn't the whole thing a no-op?