Hello bud,
I am sorry you are going through this. That is a long time, but it is never too late to change it around. If you could afford it or have health insurance, then rehab is a great idea. But when you get out, it's the real battle. It's easy to stay sober in a treatment center, but when you get out then it gets real.
That's why the best option I think is a sober living house. I live in one right now. I see that you are in San Francisco, well I live in Santa Rosa in Sonoma County. There are a lot of good SLE's out here, and they are all very interconnected with each other making for a good support group.
Also there are some good treatment centers out here such as Azure Acres or Mount Vista Farms. Good luck bud!