I'm not a military veteran, but when I was a Civil War re-enactor we subsisted on hardtack, coffee, bacon, potato's, and sometimes beans of whatever variety was local to our campsite. We always managed to get a local state or national guard unit to drop off a water bowser for potable water. I can't see how they did it for the duration of the war.