- refactored backup/restore mechanism to allow automatic backup, before any restore.