Introduction
In today’s world, where data loss can occur due to hardware failure, human error, or a malware attack, having a reliable backup tool is essential. Timeshift has become one of the most popular options for Linux users who want to protect their operating system and revert to a previous state in minutes. This article explores in depth what Timeshift is, how it works, its operating modes, how to install and use it both from the graphical interface and from the terminal, and offers best practices to ensure your snapshots are useful and secure.
What is Timeshift?
Timeshift is an open-source application designed to create real-time filesystem snapshots, similar to Windows’ «System Restore» functionality or macOS’s Time Machine tools. Its main goal is to allow system restoration to a previous point without affecting the user’s personal files, although it can also include those data if configured accordingly. Timeshift works at the partition level and uses underlying technologies such as RSYNC or BTRFS to generate the copies.
How Timeshift Works
The process of creating a snapshot involves copying the data from the selected partitions to a designated storage location, usually another partition or an external disk. Timeshift does not perform full copies each time; instead, it uses an incremental approach that only saves changes since the last snapshot, saving space and time. Depending on the target partition’s filesystem, Timeshift can use:
- RSYNC: copies files and directories, creating an identical file structure at the destination. Each snapshot is a full copy but leverages hard links to avoid duplicating unchanged data.
- BTRFS: takes advantage of BTRFS’s native subvolume and snapshot capabilities, creating near-instantaneous snapshots that are very space-efficient.
Installation on Different Distributions
Timeshift is available in the repositories of most Linux distributions. Below are the typical installation commands:
- Ubuntu / Linux Mint:
sudo apt update && sudo apt install timeshift - Debian:
sudo apt-get install timeshift - Fedora:
sudo dnf install timeshift - Arch Linux:
sudo pacman -S timeshift - openSUSE:
sudo zyp
This post is also available in ESPAÑOL.