split out export routines

We need the ability to export without the full update process.

Change-Id: I5aead08f928f91f7f8317db1b85dfa56c64ac21e
Merge remote-tracking branch 'origin/master' into deploy

Change-Id: Ic288b29283590bfe469a7e57b35b4a605612cd74