Archive type recognition