When we have "tamed" an operating system, we have installed all the apps we need in our day to day and we have everything ready to work, but we find that, for whatever reason, we have to do a format or a new installation of our operating system and install all the apps from scratch, that is something quite tedious and It consumes a lot of time that we could use for other more productive purposes.
Well, today we are going to introduce you apt-clone, a tool that allows us to clone apps that we have installed to create a backup and then be able to restore it in a clean installation of Debian / Ubuntu / Derivatives. Thus, in operating systems based on DEB packages, it is becoming easier to install, with programs such as apt-clone, Aptik, etc. In fact, they are good complements, since with Aptik you can make a backup and restore it in a clean operating system, but in this case of settings and data.
If you want to try it, you can start now. For install apt-clone, just run:
sudo apt-get install apt-clone
Once installed, start perform the backup with:
sudo apt-clone clone /Directorio/done/quieras/guardar/copia_seguridad
And if we go to the directory where we have indicated to store the backup, we can see a .tar.gz with said backup. In it you will have all the hundreds or thousands of packages installed in your distro ready to be able restore with:
</div> <div>sudo apt-clone restore /opt/nombre_tarball.tar.gz</div> <div>