http://www.wolframalpha.com/input/?i=4%2F3+pi+*+(radius+of+m...
http://www.wolframalpha.com/input/?i=1.617%C3%9710%5E19+joul...
Assuming you had no losses, so say ideal superconducting coils, that's how much energy you have to dump into magnetic field. You can do this as slow as you like, so with 1/10 the US electrical energy production it would take 10 years to build up that magnetic field. Hypothetically, if you had thin-film plastic PV cells (like cellophane thin to be reasonable to build and get into space) with 100% efficiency covering the footprint of this system (Mars) you could generate enough power to charge up this field in 471 seconds:
http://www.wolframalpha.com/input/?i=1e19+J+%2F+((solar+powe...)
Of course the big story here is that efficient thin film solar in space could generate obscene amounts of power.
I'm not sure on the depth of the field volume required, so that might make it easier, too.