Fix regression with backup and restore tasks