reworked backup/Restore
fixed indentation and naming conventions