Aptik – A Tool to Backup/Restore Your Favourite PPAs and Apps in Ubuntu

As we all know that Ubuntu has a six month release cycle for new version. All the PPAs and Packages of your choice also needs to be re-added, to avoid doing those stuffs and save your time, here we bringing a fantastic tool called ‘Aptik‘.

Aptik (Automated Package Backup and Restore) is a GUI application that lets you backup your favourite PPAs and Packages. It is very difficult to remember to which packages are installed and from where it has been installed them. We can take backup and restore of all the PPAs before re-installation or up-gradation of OS.

Install Aptik in Ubuntu
Backup/Restore PPAs and Apps

Aptik is a open source package that simplify backup and restore of PPAs, Applications and Packages after a fresh installation or upgradation of Debian based Ubuntu, Linux Mint and other Ubuntu derivatives.

Features of Aptik

  1. Custom PPAs and the Apps
  2. Backup Themes and icons
  3. Backup applications installed via APT cache
  4. Apps installed from Ubuntu Software Centre
  5. Aptik command-line options

How to Backup PPA’s and Packages on Old Systems

By default Aptik tool is not available under Ubuntu Software Centre, you need to use PPA to install it. Add the following PPA to your system and update the local repository and install package as shown.

Installation of Aptik

$ sudo apt-add-repository -y ppa:teejee2008/ppa
$ sudo apt-get update
$ sudo apt-get install aptik      [Commandline]
$ sudo apt-get install aptik-gtk  [GUI]

Start ‘Aptik‘ from the applications menu.

Start Aptik
Start Aptik

Create Backup Directory

Create or Select a backup directory to store your all sections to re-use on your new install.

Aptik Backup-Directory
Select Backup Directory

Backup Software Sources

Click the ‘Backup‘ button for Software Sources. A list of installed third-party PPAs will be displayed along with their Packages names that are installed from the PPA.

Aptik Software Sources
Backup Software Sources

Note: PPAs with a green icon indicates as active and have some packages installed. Whereas yellow icon indicates as active but no packages installed.

Select your favourite PPAs and click on the ‘Backup‘ button to create backup. All PPAs will be stored in a file called ‘ppa.list‘ in the selected backup directory.

Backup Downloaded Packages (APT Cache)

Click the ‘Backup‘ button to copy all the downloaded packages to backup folder.

Aptik Downloaded Packages
Backup Downloaded Packages

Note: All the downloaded packages stored under your ‘/var/cache/apt/archives‘ folder will be copied to the backup folder.

This step is only useful if you are re-installing the same version of Linux distribution. This step can be skipped for upgradation of system, since all the packages for the new release will be latest than the packages in the system cache.

Backup Software Selections

Clicking the ‘Backup‘ button will show a list of all installed top-level packages.

Aptik Software Selections
Software Selections

Note: By default all the packages installed by Linux distribution are un-selected, because those packages are the part of Linux distribution. If required those packages can be selected for backup.

By default all extra packages installed by the user marked as selected, because those packages are installed via Software Centre or by running apt-get install command. If required those can be un-selected.

Select your favourite packages to backup and click the ‘Backup‘ button. A file named ‘packages.list‘ will be created under the backup directory.

Backup Backup Themes and Icons

Click the ‘Backup‘ button to list all the installed themes and icons from the ‘/usr/share/themes‘ and ‘/usr/share/icons‘ directories. Next, select your themes and click on the ‘Backup‘ button to backup.

Aptik Themes Icons
Backup Themes Icons

Aptik Command-line Otions

Run ‘aptik –help’ on the terminal to see the full list of available options.

Aptik Command-line
Command-line Options

To restore those backups, you will need to install Aptik from its own PPA on the newly installed system. After this, hit the ‘Restore’ button to restore all your PPAs Packages, Themes and Icons to your freshly installed system.

Conclusion

You may be wondering why such cool stuff is not by default available on Ubuntu? Ubuntu does it via ‘Ubuntu One‘ and that too paid apps. What do you think about this tool? Share you views through our comment section.

Source: Aptik

If you read this far, tweet to the author to show them you care. Tweet a thanks
Narad Shrestha
He has over 10 years of rich IT experience which includes various Linux Distros, FOSS and Networking. Narad always believes sharing IT knowledge with others and adopts new technology with ease.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

24 thoughts on “Aptik – A Tool to Backup/Restore Your Favourite PPAs and Apps in Ubuntu”

  1. Ravi Saive,

    Thank for your prompt reply. I am yet to succeed in backing up the partitions needed to retain the original functionality of the application in the old Ubuntu 8.04 server. Redo application was stubbornly picking folder mnt for backup destination. But this folder could not afford me the write permission to create the Backup folder in this folder.

    Please i need your guidance. My external drive could not be mounted. Also the aptik does not seem working on Ubuntu 8.04 server. Please I need your help. I am very new to Linux/Ubuntu operating system.

    Thanks very much for your readily available assistance. More grease to your elbow.

    Reply
  2. I just found this tool and it is excellent. Really fills a need. I will donate.

    Yet another reason to not trust the cloud… You mention that Aptik is not included (and it should be not only included but mentioned PROMINENTLY in the installation instructions) in the ubuntu release because Canonical does the same through the cloud and Ubuntu One.

    Not liking the cloud myself — it’s my data and my life, why should I trust someone else to keep it — I still decided to look up Ubuntu One. Turns out Canonical has discontinued the whole service. So rather than providing this service with a piece of software with willing support engineers, they create an complex, expensive-to-run service that they can’t continue to offer.

    BTW, I found the migrating of users to be especially useful. Perhaps this could have been done by just copying the user directories into the new installation but I didn’t want to try.

    Craig

    Reply
  3. Wow! I wish I knew this after my first reinstall. Would have made my days go by a lot easier!

    To be absolutely honest… This is probably my 10th reinstall?

    Reply
  4. Heard about this on UBUNTU PODCAST.
    But not working in 14.04 distro’s except in command line.
    As stated above why does the gui not work ?
    Using xubuntu XFCE-4.12 desktop.
    Is it a GTK problem ?

    Reply
  5. Wonderful. I was looking exactly for this as I was wondering how people keep on upgrading Ubuntu new versions considering the hassle to download and install every software package again. Gr8 help from this article.

    Reply
  6. For some reason Aptik’s GUI does not work in KDE 4. Luckily the application works by means of CLI. I have tried to contact the owner (Tony George) of APTIK to relay, but have not gotten any feedback.

    Reply
  7. This is great. I recently read (somewhere on Stack Overflow) and backed-up my PPAs, but completely forgot where the docs were and how to restore them.

    Aptik worked out wonderfully. I upgraded from 12.04 to 14.04. I have a bit more verification to do, but this worked out exactly as I needed it to.

    I didn’t have any obvious issues running on 14.04. Perhaps it was updated since the April 23rd response.

    Reply
  8. I installed aptik on Ubuntu 14.04. The install seemed to go well and the terminal version works. However, I have no icon in Applications and no way to use a GUI. I may be doing something really dumb–I’m relatively new to Linux, but I think I folowed your install suggestions perfectly. Any Ideas?

    Thanks

    Reply

Got something to say? Join the discussion.

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.