Backup only when necessary