- Create system snapshots to revert configuration errors or failed updates.
- Difference between RSYNC mode for external storage and BTRFS for specific partitions.
- Automate the frequency of backups to prevent the loss of critical system data.
- It allows restoration both from the graphical interface and through terminal commands.
I'm sure you've been told a thousand times that you need to make backups, but the truth is, many of us are too lazy or simply forget. The problem is that fate is cruel , and one day when you least expect it, your hard drive might give out or an update might wreck your system, leaving you without all your work in the blink of an eye.
To avoid this drama, the ideal solution is to let the machine do the work for you and automate the process. This is where Timeshift comes in , a fantastic tool that allows you to schedule unattended system backups, so you can sleep soundly knowing that if something goes wrong, you have a safe way back.
What exactly is Timeshift and what is it used for?
We can say that Timeshift is to Linux what System Restore is to Windows or Time Machine is to macOS. Its main function is to safeguard system files and configurations by creating snapshots that allow you to restore your computer to a previous working state in case of failure.
It's crucial to understand that this tool isn't designed to back up your photos, videos, or personal documents; in fact, it excludes user files by default so that when you restore your system to a previous date, you won't lose documents you've recently created. If you're looking to protect your personal folder, it's best to complement Timeshift with a utility like Back In Time.
Installation according to your layout
Depending on which distro you're using, the installation process varies slightly, as it's not always in the official repositories:
- Ubuntu, Linux Mint and derivatives: The quickest way is to add the official PPA by running
sudo add-apt-repository -y ppa:teejee2008/ppa, followed by asudo apt updateand finallysudo apt install timeshift. - ArchLinux: Arch users can easily find it in the AUR (Archive User Repository).
- Other distributions: If it's not available in the package manager, you can download the executable installer from the official website and launch it via the terminal with the command
sudo sh ./timeshift*runmaking sure you choose the correct version depending on whether your system is from 32 or 64 bit.
Step-by-step backup setup
When you open the program for the first time, a wizard will guide you through setting it up. The first critical step is choosing the snapshot method :
- RSYNC: It's the most versatile option. It uses hard links to save space, copying only what has changed between backups. The best part is that It allows you to save copies on external drives. or separate partitions, which is vital if the main disk fails.
- BTRFS: This option is extremely fast and accurate (byte by byte), but it requires that the operating system be installed on a BTRFS partition. A major drawback is that It does not support external drives.Therefore, if the disk fails, you lose both the system and the backup.
After choosing the method, you'll need to specify the backup location . Keep in mind that Timeshift doesn't support Windows formats like NTFS or FAT, nor does it support remote drives; the disk must be physically connected to the computer. Once you've selected the destination, you'll proceed to scheduling the tasks.
Here you can decide whether you want backups every hour, daily, weekly, or monthly. The important thing is to find a balance, since keeping too many snapshots can consume a lot of disk space . Interestingly, these tasks don't run at a specific time; instead, there's an hourly maintenance process that checks if a backup is due, and if it happens when the PC starts up, there's usually a ten-minute delay.
Customizing the backrest and creating the first point
Once the basics are configured, you can access the settings menu to adjust the file filters . In the Users tab, you can force the inclusion of personal folders if you wish, even though that wasn't the tool's original purpose. In the Filters tab, you can select which specific folders you want to include or exclude from the process.
When everything is ready, simply click the Create button . The software will begin generating the first snapshot, which is usually the slowest because it has to copy the entire system for the first time. From then on, subsequent snapshots will be much faster thanks to the incremental system.
How to restore the system when something goes wrong
If your system starts having problems or an update has broken it, you have two ways to revert. The simplest is to open the Timeshift graphical interface, select the desired backup from the list, and click Restore . The program will guide you to confirm that you want to overwrite the current state with the previous one.
If the system won't even boot, you can use the terminal from a Live USB or a rescue console. Running timeshift --list You will be able to see the available points and then, with the command timeshift --restore you can enjoy recover functionality of your computer. However, remember that restoring will erase any changes made to system files after the date of that backup.
Having an automatic snapshot system configured using rsync or BTRFS allows any user, whether expert or novice, to experiment with their Linux configuration without fear, since a couple of clicks are all it takes to undo any serious error and restore the stability of the operating system in a matter of minutes.
FAQ
Does Timeshift make copies of my personal documents?
No, by default this tool only backs up system files and settings, excluding user folders such as images or music.
What is the difference between RSYNC and BTRFS in Timeshift?
RSYNC allows you to save copies to external disks and works on any Linux file system, while BTRFS requires a specific partition and saves the data on the same disk.
Can I use an external hard drive for my backups?
Yes, as long as you use RSYNC mode and the disk has a file system compatible with Linux, avoiding formats such as NTFS or FAT.
What happens to my new files if I restore the system?
Personal files are not affected because they are excluded, but any changes made to system settings after the copy will be deleted.
How do I install Timeshift if it's not in my repositories?
You can add the official PPA on Ubuntu-based distributions or download the executable installer from the official website for other distros.
What to do if the system won't start up so I can restore it?
The terminal can be used from a live boot medium (Live USB) by running the commands timeshift --list and timeshift --restore.




