Results 1 to 7 of 7

Thread: Best way to backup applications?

  1. #1
    Join Date
    Apr 2008
    Location
    Florida
    Beans
    80
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Best way to backup applications?

    Hello,

    I want to create a backup of all my installed applications so that I can quickly reinstall when (not if) I destroy my system. Here's the catch. I'm on 32 bit, and when I reinstall someday I want to use x64. I imagine using Aptoncd will backup the 32 bit apps and won't reinstall on x64. Will exporting a list of packages from Synaptic also have this limitation, or would it be the better choice? Other options you recommend? Thanks.

  2. #2
    Join Date
    May 2006
    Location
    Lake Placid, Florida, USA
    Beans
    2,019
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Best way to backup applications?

    What I do is just make a list , sure it's more trouble to download and install but you get the latest versions and the right bit version .

  3. #3
    Join Date
    Oct 2007
    Beans
    48

    Re: Best way to backup applications?

    Is there any way to export a list of the items that *you* have installed from synaptic/apt? Preferably along with any repositories/keyfiles you have added?

    That would be the ideal (for me at least) way to do it, just export (Or even just have synaptic keep a copy of) that list to your home directory, install the next version, then do you're updates and let synaptic look at the list and reinstall everything.

    Jonnan
    This has been a test of the Ubuntu Messaging System
    Had this been a real message, there would be real content.

  4. #4
    Join Date
    Apr 2009
    Beans
    1,173

    Re: Best way to backup applications?

    Quote Originally Posted by jonnan View Post
    Is there any way to export a list of the items that *you* have installed from synaptic/apt?
    You can save a list of everything that is installed with File->Save markings as.. in Synaptic. If you had saved one on fresh install, then you could subtract it from the current list to get only the packages that you installed or caused to be installed.

    However, it doesn't matter too much because when you run File->Read markings.. in Synaptic it will only install the remaining packages required to match the list.

  5. #5
    Join Date
    Sep 2006
    Beans
    8,623
    Distro
    Ubuntu 14.04 Trusty Tahr

    dpkg / apt

    Here is one way to get a list of *all* packages you have, including the dependencies:

    Code:
    $ dpkg --get-selections \
      | egrep 'install$' \
      | egrep -v 'deinstall$' \
      | awk '{print $1}' \
      > ~/mylistofpackages.txt


    Alternately, more slowly,
    Code:
    $ apt-show-versions \
      | sed -e 's/\/.*$//' \
      > ~/mylistofpackages.txt

    To re-install, inefficiently:

    Code:
    $ sudo apt-get install `cat ~/mylistofpackages.txt`

  6. #6
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,004
    Distro
    Ubuntu Development Release

    Re: Best way to backup applications?

    Or use synaptic.

    File>Save Markings As

    But make sure to tick the box "Save full state etc".

    Then

    File >Read markings.

  7. #7
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,630

    Re: Best way to backup applications?

    And yet another way:

    Code:
    $sudo dpkg --get-selections > myPackages
    Code:
    $sudo dpkg --set-selections < myPackages && sudo apt-get dselect-upgrade

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •