Does it worth with the current prices, because I think the problem here is the cost of the batteries, I don't know exactly the lifespan of a battery
If you go with safe lithium iron phosphate (LiFePO4) it can be done. You can build your own for about $600 or buy them pre-built for about a thousand each or by the used ones like I did for about 300 to 350.
The big question is how much power do you use and how much battery do you really need? For example if you wanted to pull about 400 Watts 24 hours a day you would probably need about five or six of them (144 Ah).
As far as the battery life expectancy goes it could last anywhere from 10 to 20 years depending on how many times you depleted a recharge them. For an example if you were to mine with them and use all the energy and recharging everyday it would maintain more than 80% of its original charge capacity for about 10 years and probably only hold about another 60% of its original capacity over the next 5 years or so.
I hope this helps but did you give me a better idea what you're trying to do I can try to help you more.