If the restore fails due to an error,
for example the backup directory being empty because no backup has been run yet,
the customized version of duply returns 0.
This seems to be because of the run_script $CONFDIR/restore; line, which always runs the script,
even if the restore command above it fails.
If the restore fails due to an error, for example the backup directory being empty because no backup has been run yet, the customized version of duply returns 0.
This seems to be because of the run_script $CONFDIR/restore; line, which always runs the script, even if the restore command above it fails.