Because of the acid (tomatoes and vinegar) this should keep for 4-6 months in the fridge, but you can freeze it if you want it to last longer. You could always also do traditional canning to preserve it.