How to Use Timeshift to Create and Restore System Snapshots on Ubuntu

The Risk of Broken Package Updates and Kernel Panics in Linux

One of the greatest strengths of Ubuntu Linux is its cutting-edge package ecosystem: graphics drivers, desktop environments, software libraries, and Linux kernels update continually. However, every experienced Linux user has encountered that sinking feeling after running sudo apt upgrade: a proprietary NVIDIA GPU driver conflicts with an updated kernel, an essential dependency breaks, or the system boots to a black screen with an unblinking cursor.

While recovering from a broken Linux system using live rescue USBs and terminal chroot environments is possible, it is stressful and time-consuming. Timeshift acts as the ultimate system insurance policy for Ubuntu. Similar to Windows System Restore or macOS Time Machine, Timeshift captures incremental snapshots of your operating system’s exact system configuration, libraries, and binaries. If an update breaks your system, you can roll back your entire OS to the exact state it was in an hour ago in less than two minutes.

Timeshift Snapshots vs Personal Data Backups (Important Distinction)

Before installing Timeshift, understand its specific operational role:

  • What Timeshift Backs Up: Operating system files, kernel modules, /etc/ system configurations, installed software in /usr/, and bootloader files.
  • What Timeshift Ignores by Default: Your personal home directory (/home/username), personal documents, pictures, music, and downloads. Timeshift is intentionally designed to restore system stability without overwriting your personal files. If you roll your system back two days, your newly written documents and downloaded files will remain completely intact.

Step-by-Step Tutorial: Installing Timeshift on Ubuntu

Timeshift is available in the official Ubuntu repositories across all current releases (Ubuntu 24.04 LTS, 22.04 LTS, and later):

sudo apt update && sudo apt install -y timeshift

Configuring Timeshift with the Setup Wizard

Once installed, launch Timeshift from your Ubuntu App Launcher (or run sudo timeshift-gtk in Terminal). The Initial Setup Wizard will open:

  1. Select Snapshot Type:
    • RSYNC (Recommended for most users): Works on any standard filesystem (ext4, XFS). Uses hard links to create instantaneous, space-efficient incremental snapshots where only modified files consume new disk space.
    • BTRFS: Select this only if your Ubuntu root partition was formatted natively as Btrfs during operating system installation. Btrfs snapshots are instantaneous and take zero disk space initially.
    Select RSYNC and click Next.
  2. Select Snapshot Location: Choose the storage drive where snapshots will be saved. Best practice: While you can store snapshots on your primary system drive, selecting a secondary internal drive or an external USB hard drive ensures you can restore your system even if your main drive experiences hardware failure.
  3. Set Snapshot Schedule: Choose an automated snapshot cadence:
    • Keep Monthly: 1 or 2
    • Keep Weekly: 3
    • Keep Daily: 5
    • Keep Boot: 3 (Captures a snapshot automatically every time the computer boots up).
  4. User Home Directories: Leave personal home folders excluded to conserve disk space and prevent personal data rollbacks. Click Finish.

Creating a Manual Snapshot Before Major System Updates

Whenever you are about to install proprietary hardware drivers, test unstable PPAs, or execute major distribution upgrades, create a manual safety snapshot:

  1. Open Timeshift and click the Create button on the top toolbar.
  2. Timeshift will scan the system files and write an incremental snapshot. The first snapshot takes several minutes; subsequent snapshots take under 30 seconds because only changed files are copied.
  3. Add a comment tag (e.g., “Pre-NVIDIA Driver 550 Upgrade”) to easily identify the snapshot later.

How to Restore Your System If Ubuntu Fails to Boot

If an update renders your desktop unbootable or damages the display server, you can restore your system in two ways:

Method 1: Restoring from a Live Ubuntu USB

  1. Boot your computer using any standard Ubuntu Live installation USB.
  2. Select “Try Ubuntu”.
  3. Open Terminal and install Timeshift inside the live session:
    sudo apt update && sudo apt install -y timeshift
  4. Launch Timeshift, select your snapshot drive, choose the snapshot you wish to restore, and click Restore.
  5. Timeshift will overwrite the damaged system files on your internal drive and reinstall GRUB. Reboot your machine, and your system will start cleanly.

Method 2: Restoring via Terminal CLI

If you can still access a terminal console (via recovery mode or Ctrl + Alt + F3):

# List available snapshots
sudo timeshift --list

# Restore the most recent snapshot interactively
sudo timeshift --restore

Frequently Asked Questions

How much disk space do Timeshift RSYNC snapshots consume?

The first snapshot copies your operating system files (typically 15 GB to 25 GB). Because subsequent snapshots use hard links for unchanged files, each daily snapshot usually consumes only a few hundred megabytes of new space.

Can Timeshift be used to clone an OS to a new computer?

While Timeshift can restore snapshots onto different partitions, it is designed for system recovery rather than bare-metal hardware migrations, as device UUIDs and specific hardware drivers may require manual re-configuration.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.