This tutorial will show you how to easily create backups and restore a Linux system using the Timeshift application.
No matter what level of programmer you are, if you use Linux, sooner or later you have to do backup. Just one wrong command with sudo is enough to send you back to the Stone Age. Linux is merciless, especially if you haven’t created a backup.
How to make backups and restore Linux using Timeshift
For Linux, there are a lot of programs for creating backups. Almost all distributions have built-in easy-to-use solutions. They create backups of documents, music, and other important data.
But at the moment of reinstalling the system, drivers and configurations, working with the system turns into torture. And although there is software like Aptik, it still falls a little short.
Easily back up and restore your Linux desktop using Timeshift
Sometimes, when you try to get new Nvidia drivers to work or set up a new Gnome on the system, the graphics environment is disabled. It depends on the distribution and the instructions you follow.
This can happen if you missed a step and realized it at the last moment. Anyway, then you usually go to the Internet for the next instruction in order to fix everything, which is not very fun. It would be great to have a chance to roll everything back, if you clicked somewhere wrong and want to return everything as it was.
Have you bought a new computer and want to transfer the entire OS with settings and improvements to a new PC?
Timeshift will help.
What does Timeshift do?
You see, Timeshift doesn’t just create a backup copy of the home directory. It doesn’t just copy apps. The program is able to FULLY TRANSFER YOUR OS with all the contents of the home directory in one snapshot of the file system.
Installing Timeshift on Linux
1. Ubuntu and Linux Mint
Open the terminal (ctrl+alt+T) and execute the commands below one by one
sudo apt-add-repository -y ppa:teejee2008/ppa sudo apt-get update sudo apt-get install timeshift
2.Arch Linux, Antergos, Apricity and Manjaro
The latest version of Timeshift is available in the Arch User Repository. Enable AUR and get Timeshift with the command
3. All other distributions
32-bit download here.
64-bit download here.
Download the appropriate file and open the terminal where the file is located.
4. Timeshift for 32-bit Linux
su (enter password on demand) chmod +x timeshift-latest-i386. run sh. /timeshift-latest-i386.run
5. Timeshift for 64-bit Linux
su (enter password on demand) chmod +x timeshift-latest-amd64. run sh. / timeshift-latest-amd64.run
How to use Timeshift to back up and restore a Linux system
A.Creating a Linux backup
You will no longer have to work on the command line. Launch Timeshift from the menu. Enter the sudo password on demand. Click on “create”. Quickly watch this video while Timeshift is working. Done.
You can change the backup settings, such as the location of the backup, in the corresponding menu.
You can even set up daily and weekly backups. If something goes wrong, you will always be sure of the escape routes.
B.Linux System Recovery
1. From the same OS
If you can still log in to the OS and want to go back to the previous state of the PC, just run Timeshift from the menu or dash and select “Restore Image “and click”Restore”. That is all.
2. Restore if you can’t log in to Linux
This part applies to systems that cannot access the graphics part due to formatting or corruption.
You will need an installation USB. I highly recommend always having a Linux flash drive or DVD at hand, as it helps a lot at times. There are no excuses for the absence of such things.
Anyway, we start a live session and download and install Timeshift according to the above instructions (yes, you can install applications in it).
After installation, run the application and look for the location of the backup. Next, click “Restore” (yes, the live session has access to the hard disk).
I recommend letting Timeshift reinstall the bootloader.
To sum up
Is it easier to back up and restore Linux? This program has the ability to configure, allows you to mess up and understand without fear of consequences. This is an indispensable tool for new Linux users who are not yet used to the harsh reality of the system. After all, the main thing in using Linux is what? Never stop exploring. So you will definitely need this tool, even if you are a Penguin expert.
How do you like Timeshift? How do you back up Linux?
We also ask you to share cases when you made a mistake so that Timeshift would not hurt. Don’t be shy! Maybe you can save someone’s life. 😀