added quota check on restore media