quitting with non-zero code on fail
added backup feature
Merge pull request #3 from sbar/master

Exitcode and backup