Implemented external backup hook (issue #20)