Investing in Solar Panels as a replacement of UPS is not a good idea. Even if you put your UPS on Solar till evening will not save much from electricity bills.
Actually putting your UPS on solar might damage your batteries, as it will consume battery cycles more quickly then it should especially if you are using liquid batteries
Investing in Solar is a good idea, if you are planning to invest around 8-12 Lacs, This will help you converting your whole home on Solar Energy except Air Conditioners etc.