<div dir="ltr">Brian....  I think you got ahead of yourself; did you miss the dselect command in your insructions?</div><div class="gmail_extra"><br clear="all"><div>:-)~MIKE~(-:</div>
<br><br><div class="gmail_quote">On Mon, Dec 30, 2013 at 11:34 AM, Brian Cluff <span dir="ltr"><<a href="mailto:brian@snaptek.com" target="_blank">brian@snaptek.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

This is a great way to backup a system without actually backing it up completely, but I like to add at least one additional step, that backs up the configuration of the packages themselves.<br>
First you need to install the deconf-utils package:<br>
<br>
sudo apt-get install deconf-utils<br>
<br>
That will give you the debconf-get-selections utility that will give you the contents of the debian package configs in a format that can be read by debconf-set-selections; which is already on the system so you don't need any extra packages installed when you do the restore.<br>


<br>
debconf-get-selections >~/debconf-selections<br>
<br>
Then all you need to do is add:<br>
<br>
debconf-set-selections ~/debconf-selections<br>
<br>
before the dselect command.<br>
<br>
Alternatively you can skip loading the dselect command altogether and just use in place of it:<br>
<br>
apt-get dselect-upgrade<br>
<br>
Brian Cluff<div><div class="h5"><br>
<br>
On 12/30/2013 09:57 AM, Kevin Fries wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
saw this at askubuntu, and it looks quite complete:<br>
<br>
A quick way of backing up a list of programs is to run this:<br>
<br>
dpkg --get-selections > ~/Package.list<br>
sudo cp /etc/apt/sources.list ~/sources.list<br>
sudo apt-key exportall > ~/Repo.keys<br>
It will back them up in a format that dpkg can read for after your<br>
reinstall, like this:<br>
<br>
sudo apt-key add ~/Repo.keys<br>
sudo cp ~/sources.list /etc/apt/sources.list<br>
sudo apt-get update<br>
sudo apt-get install dselect<br>
sudo dpkg --set-selections < ~/Package.list<br>
sudo apt-get dselect-upgrade -y<br>
Settings and Personal Data<br>
Before you reinstall, you should probably back up the settings from some<br>
of your programs, this can easily be done by grabbing folders from /etc<br>
and all the content from your user directory (not just the stuff you can<br>
see in nautilus!):<br>
<br>
rsync --progress /home/`whoami` /path/to/user/profile/backup/<u></u>here<br>
After you reinstall, you can restore it with:<br>
<br>
rsync --progress /path/to/user/profile/backup/<u></u>here /home/`whoami`<br>
So all together as a pseudo-bash script.<br>
This assumes there is only one user on the machine (remove /'whoami'<br>
otherwise) and that you used the same username on both installs (modify<br>
dest. of rsync otherwise).<br>
<br>
dpkg --get-selections > ~/Package.list<br>
sudo cp /etc/apt/sources.list ~/sources.list<br>
sudo apt-key exportall > ~/Repo.keys<br>
rsync --progress /home/`whoami` /path/to/user/profile/backup/<u></u>here<br>
<br>
##  Reinstall now<br>
<br>
rsync --progress /path/to/user/profile/backup/<u></u>here /home/`whoami`<br>
sudo apt-key add ~/Repo.keys<br>
sudo cp ~/sources.list /etc/apt/sources.list<br>
sudo apt-get update<br>
sudo apt-get install dselect<br>
sudo dpkg --set-selections < ~/Package.list<br>
sudo dselect<br>
<br>
<br>
On Fri, Dec 27, 2013 at 1:21 PM, Michael Havens <<a href="mailto:bmike1@gmail.com" target="_blank">bmike1@gmail.com</a><br></div></div><div class="im">
<mailto:<a href="mailto:bmike1@gmail.com" target="_blank">bmike1@gmail.com</a>>> wrote:<br>
<br>
    well.... it looks as if I may have to reinstall my laptop (which<br>
    sucks) if we can't get x working again. I  just realized something I<br>
    didn't do: I did not write down all the ppa addresses. So what I<br>
    would like to know is in which file are the ppa s kept? then I can<br>
    scp that to the tv server and if we can't get x working again it<br>
    won't be as painful a bite. Thanks:-)<br>
    :-)~MIKE~(-:<br>
<br>
    ------------------------------<u></u>---------------------<br>
    PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.<u></u>org</a><br></div>
    <mailto:<a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.<u></u>phxlinux.org</a>><div class="im"><br>
    To subscribe, unsubscribe, or to change your mail settings:<br>
    <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/<u></u>mailman/listinfo/plug-discuss</a><br>
<br>
<br>
<br>
<br>
--<br>
<br>
<br>
  “Keep away from people who try to belittle your ambitions. Small<br>
  people always do that, but the really great make you feel that you,<br>
  too, can become great.”<br>
<br>
<br></div>
― Mark Twain <<a href="http://www.goodreads.com/author/show/1244.Mark_Twain" target="_blank">http://www.goodreads.com/<u></u>author/show/1244.Mark_Twain</a>><div class="im"><br>
<br>
<br>
------------------------------<u></u>---------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.<u></u>org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/<u></u>mailman/listinfo/plug-discuss</a><br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
------------------------------<u></u>---------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.<u></u>org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/<u></u>mailman/listinfo/plug-discuss</a></div></div></blockquote></div><br></div>