I'm curious about knowing whats the different them both. Thanks.
A generator is usually powered by a diesel or gas (petrol) engine which powers an alternator to produce mains power for hours provided it is topped up with fuel. A UPS uses a large battery and a high powered inverter circuit to produce mains power but is not expected to power equipment for very long, just long enough to shut them down safely without loss of data.