How to Use Timeshift to Backup and Restore Ubuntu Linux

Tinkering with Linux is a rewarding experience, but a single incorrect command or a flawed system update can occasionally break your operating system. If you rely on your Ubuntu machine for daily work, you need a reliable safety net.

Timeshift is the Linux equivalent of Windows System Restore or macOS Time Machine. It takes incremental snapshots of your system files, allowing you to instantly roll back your PC to a previous working state if something goes wrong. In this guide, you will learn how to install, configure, and use Timeshift to seamlessly backup and restore Ubuntu Linux.

Step 1: Install Timeshift on Ubuntu

Timeshift is available directly from the standard Ubuntu software repositories, making installation fast and straightforward. You can install it using the terminal.

  1. Open your terminal by pressing Ctrl + Alt + T.
  2. Update your package list by typing the following command and pressing Enter:
    sudo apt update
  3. Install Timeshift by running this command:
    sudo apt install timeshift -y
  4. Once the installation is complete, you can launch Timeshift from your application menu. You will be prompted to enter your administrator password to open it.

Step 2: Configure Timeshift and Choose Snapshot Type

When you launch Timeshift for the first time, a Setup Wizard will appear. The first and most critical choice is selecting your Snapshot Type. You will see two options: RSYNC and BTRFS.

  • RSYNC (Recommended for most users): If your file system is EXT4 (the default for most Ubuntu installations), you must select RSYNC. This creates backups using standard file copying and hard links.
  • BTRFS: Only select this if you formatted your hard drive using the BTRFS file system during the initial Ubuntu installation. This option relies on built-in file system features for instantaneous snapshots.

After choosing your snapshot type, click Next. Timeshift will estimate your system size and ask you to select a backup destination. It is highly recommended to select an external hard drive or a separate internal partition rather than your main OS drive. Finally, set up a schedule (e.g., daily or weekly) and define how many snapshots you want to keep before the oldest ones are automatically deleted.

Step 3: Create Your First System Snapshot

Even if you have enabled automatic scheduling, it is a best practice to create a manual snapshot immediately before performing major system upgrades or experimenting with system configurations.

  1. Open the Timeshift application.
  2. Click the Create button located in the top menu bar.
  3. Timeshift will begin scanning your system and copying files. Depending on the size of your installation and the speed of your drive, this initial backup may take between 5 to 20 minutes.
  4. Once finished, the snapshot will appear in the main list with a timestamp. You can click on the snapshot and add a custom comment (such as “Before upgrading graphics drivers”) to help you identify it later.

Step 4: How to Restore Ubuntu Using Timeshift

If your system experiences issues or fails to boot correctly, you can use your Timeshift snapshots to instantly roll back the changes.

Restoring from a Working Desktop

If your Ubuntu desktop is still functioning but behaving erratically:

  1. Open Timeshift from your application menu.
  2. Select the snapshot you wish to roll back to from the list.
  3. Click the Restore button in the top menu.
  4. Timeshift will ask you to confirm the target devices. Leave the default settings as they are and click Next.
  5. The system will display a dry-run summary of the files that will be modified. Review it and click Next. Your PC will automatically reboot and restore the system to the exact state it was in when the snapshot was taken.

Restoring from a Live USB (Unbootable System)

If a kernel update or graphics driver has broken your system entirely and Ubuntu will no longer boot:

  1. Insert an Ubuntu Live USB and boot your computer from it.
  2. Select Try Ubuntu.
  3. Connect the drive containing your Timeshift backups.
  4. Open the terminal and install Timeshift on the Live environment using sudo apt update and sudo apt install timeshift.
  5. Launch Timeshift, select your snapshot, and click Restore. Once the process completes, remove the USB drive and reboot your computer. Your system will boot normally again.

Important Limitations

It is crucial to understand that Timeshift is designed to back up system files, not personal user data. By default, it excludes your /home directory (where your documents, photos, and downloads are stored). This is intentional, so that rolling back a broken system update does not accidentally delete an essay you wrote yesterday. For personal files, you should use a dedicated backup tool like Deja Dup or cloud storage.

Conclusion

Using Timeshift is one of the smartest decisions any Ubuntu Linux user can make. By taking a few minutes to configure automatic system snapshots, you grant yourself the freedom to tinker, upgrade, and explore the terminal without the fear of permanently breaking your operating system. If disaster strikes, a full recovery is only a few clicks away.

\n

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the best tech tips delivered straight to your inbox.

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

Receive our best articles and tips delivered straight to your inbox.