I am here again with an idea, help me regarding it, @Hassan1991
I want to have a 12v ups for my router, as when electricity cuts router turns off and then it takes at least 10 mints to start gen and router to turn on. So for 10 minutes the is a network cutdown.
So, First option I am thinking is to attach a 12v Battery (motorcycle one) to a 12v adapter in parallel circuit with 12v router like this.

12v charger will not be able to fully charge the battery as the battery voltage when fully charged is near to 12.6 so charger will charge it till potential difference is zero means 12v=12v i think it is safe, what do you say?
^I am a bit confused regarding safety.
Second option is to make the use of old laptop battery, but for that i have to buy the laptop battery charging board then attach it with 19v dc adaptor.
^Safe but messy
Third option is using 18650 Lithium Ion Cells, but for that i have to buy a proper charging circuit (>https://www.daraz.pk/products/3s-10a-12v-lithium-battery-charger-protection-board-module-for-3pcs-18650-li-ion-battery-cell-charging-bms-i209954206.html) and Make a connection like this (
)
^This one seams safest to me.