Taking and restoring application backups