It all depends on how many outside sources you have and whether you install
things like GoogleEarth from bin. For most people it will do the trick. You
can also do this from GUI using Synaptic which is better for people with an
aversion to the commandline or if you cannot remember seldom used commands
or don't like typing paths. In Synaptic, go to File, Save Markings and check
the box at the bottom to Save full state.
The reverse afterwards is equally simple. File, Read Markings. You have to
love Linux for its flexibility. There is almost always more than one way. :)