This is dependent on a couple of things. (Since you probably do not have a canner I will assume bottles and crown caps. Kegs that are pressure transferred and filled will last longer than any bottles.
At the brewery, for bottles, we use a machine but the concept is the same at home, sanitize...