Migrate Ubuntu 16.04 between laptops (same model)

Spread the love

I would like to learn on how I can make a copy of system to be moved to another machine. My laptop started to fail at few things, most likely hardware issue, and I must send it to manufacturer’s technical service. Before I do so, I’d like to make a copy of what I have in case they format/replace my disk or just send me a new piece of equipment. I will hold the backup on two external drives (just to make sure).
What I would like to “save”:

my home directory obviously (without .cache dir and one other)
all installed packages and applications (compilers, parsers, utility apps, libraries, etc.)
configuration for several things like local web server, PHP-FPM
drivers, drivers, drivers, because last time I tried to make a fresh install, I had to use Ethernet cable because there was no drivers for my wireless card

I have few applications that were installed using .deb package, but these I can lose (NetBeans and QtFramework with QtCreator), the rest of them I’d like to keep.
I think it would be much easier to include whole /etc directory to deal with configurations, rather than selecting them one by one. Are there any other directories that may contain stuff like configs, settings?
Is there any reliable tool I could use for that? It may be command-line tool, I don’t mind, as long as it allows me to specify what I want to include, exclude and that would generate a single file, most probably compressed – so simply copying won’t work.
If it helps you, my home director
y is about 42GB, but I only need about 25-30% of that to be backed up.
Just thought I would also mention it in the question itself. It is fair to assume I will not move to another hardware configuration. This is only for the case where configuration is exactly the same. I’m not sure if that changes anything.
Alright, I figured out the way to backup my applications list using this “tutorial”: https://gist.github.com/brpaz/6d5bbcb5231cae2132ff
Now I’m only looking for some nice GUI application that would let me to backup my home directory excluding few subdirectories. I would much more prefer if it created a compressed file instead of just copying files, but if there’s nothing out there, I will take anything really 🙂 Deja dup does not work for me (it does not exclude directories I want to exclude, no matter what I do). I want to emphasize the need to exclude certain directories (either by selecting them or using a pattern), because 70% of my home directory can be recreated other way (e.g. local git repositories).

X ITM Cloud News


Leave a Reply

Next Post

How to disable the advertisements when sshing into an Ubuntu machine

Sat Sep 12 , 2020
Spread the love          When sshing into my machine, I see the following: Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.6-sound-29 x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage * Security certifications for Ubuntu! We now have FIPS, STIG, CC and a CIS Benchmark. – http://bit.ly/Security_Certification * Want to make a […]

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware