Fixed inconsistencies with backup script