The older type of lead acid cell with solid lead plates should last 20 years or more.
A basic lead acid battery is easy to make, and the materials keep indefinatly.
Nickel Iron batteries can last 50 years or more.
Disposable lithium cells are stated to last for 15 years from production, and would probably last for 30 years, though with declining reliability.
Alkaline cells of reputable make are warented to last 7 years from production, and most will work after being stored for 15 years, though not every cell will work, and the capacity will be appreciably reduced.
Wet Leclanche cells are easy to make, provided that you have the materials.
The materials are cheap and last indefinatly in storage.
The true doomer keeps stocks of materials to make batteries.