Stouts / Stouts.backup

Ansible role to backup files, databases
MIT License
150 stars 40 forks source link

Failing restores exit with 0 #6

Closed tspivey closed 8 years ago

tspivey commented 9 years ago

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.

klen commented 8 years ago

Fixed now.