This question already has an answer here:

Hi AskUbuntu community,

I'm going to format my hard drive and install a new version of Ubuntu. I want to backup some programs, not only sync data, I want to have ready-to-restore apps and their data, also offline.

Any tool that can help?

merged by fossfreedom May 21 '13 at 8:32

This question was merged with How to backup settings and list of installed packages because it is an exact duplicate of that question.