refactoring backup_mc into a universal backup script