Added configuration of backups by environment variables, added backupRestore prototype function