Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Use Timeshift to Backup and Restore a Linux System

Learn about Timeshift, including how to Install Timeshift on Linux, key uses, practical steps, common issues, and answers to frequently asked questions.

Table of Contents

This practical guide explains how to use timeshift to backup and restore a linux system with clear steps and useful context. It also covers common requirements, potential problems, and the details that can help you get better results.

Luckily, there are system restore tools that take snapshots of your files and settings, which you can restore on your system to bring it back to a previous operating point in the event of any manipulations. Your actions render the system unusable.

Timeshift is one such tool for Linux. And in this tutorial, Tipsmake will guide you through using Timeshift on a Linux computer.

How to Install Timeshift on Linux

Timeshift comes pre-installed on some Linux distributions. With other distributions, you need to install them manually.

1. on Ubuntu and Its Derivatives

If you are using Ubuntu and its derivatives like Linux Mint, elementary OS, etc. you most likely have Timeshift pre-installed on it. And so you can start using it right away.

However, in case it's not there, you can install Timeshift on Ubuntu by running the following commands in the terminal:

sudo add-apt-repository -y ppa:teejee2008/timeshift sudo apt-get update sudo apt-get install timeshift

Alternatively, you can go to the Software Manager on your distro and install Timeshift from there.

2. on Fedora, Centos and RHEL

Timeshift only supports BTRFS snapshots in Fedora. To get it use:

sudo dnf install timeshift

3. on Arch Linux and Manjaro

Finally, on Arch Linux, Manjaro and similar distros, you can install Timeshift with:

yay -S timeshift

Run and Initialize Timeshift

After you have installed Timeshift, open the Applications menu, search for Timeshift and launch it. It will ask you to enter the user password for authentication. Enter the password and tap Authenticate.

Run and Initialize Timeshift - Timeshift

Now, if this is your first time running Timeshift on your computer, you will be greeted with the Setup Wizard. Here, you need to set options for a few different Timeshift settings.

First, you will have to choose between two types of snapshots Rsync and Btrfs.

Run and Initialize Timeshift - Timeshift

The Rsync option creates snapshots using rsync and hard links. Essentially, an Rsync snapshot contains only files and directories that have been changed or modified - the rest of the files (which are unchanged) are not backed up in the snapshot. Therefore, it takes up less disk space. On the other hand, Btrfs mode is ideal for users using one of the Linux distributions that use the btrfs file system.

After selecting a suitable snapshot type, click Next.

Cho mot vai giay trong khi Timeshift uoc tinh kich thuoc he thong cua ban. Ngay sau khi no ket thuc, hay chon mot vi tri tren he thong noi ban muon luu snapshot Timeshift.

Run and Initialize Timeshift - Timeshift

Bai viet khuyen ban nen thuc hien viec nay tren o cung gan ngoai hoac o cung HDD/SSD ngoai, vi lam nhu vay co the giup ban an toan trong nhung truong hop khong the khoi ?ong vao he thong. Nhan Next ?e tiep tuc.

Tuy thuoc vao tan suat ban sua ?oi cac phan tu he thong cua minh, buoc tiep theo la chon tan suat thuc hien snapshot. Thao tac nay se tu ?ong sao luu tat ca cac file va cai ?at he thong cua ban vao khoang thoi gian ban ?a ?at ma khong can su can thiep cua ban.

?anh dau vao hop kiem ben canh mot cap trong Select Snapshot Levels va nhan Next.

Run and Initialize Timeshift - Timeshift

Finally, Timeshift asks if you want to back up your home directory to the snapshot. Select an option here as appropriate and click Next.

Run and Initialize Timeshift - Timeshift

Click Finish to complete the setup.

How to Use Timeshift on Linux

After successfully setting up Timeshift on your machine, you will be taken to the main window.

How to Use Timeshift on Linux - Timeshift

You can perform all Timeshift operations in this window, as shown in the sections below:

1. Create a Snapshot Using Timeshift

Press the Create button on the main Timeshift window and Timeshift will start creating a snapshot using your set options.

1. Create a Snapshot Using Timeshift - Timeshift

Wait for the process to complete.

Since this is your first snapshot, it may take a significant amount of time compared to the snapshots you will take afterwards. Once the snapshot is ready, it will appear in the main window.

2. Restore Snapshot

You can restore the snapshot in two cases: When your system is up and when you are unable to boot into your system. In the first case, press the Restore button on the main Timeshift window and it will open a window where you need to select the snapshot you want to restore.

2. Restore Snapshot - Timeshift

In addition, it will also ask you to select the destination partition to which the snapshot needs to be restored. Select it and click Next.

Timeshift will now compare the current system state with the state in the snapshot. Depending on the size of your snapshot, this can also take time.

2. Restore Snapshot - Timeshift

Once done, you will see a list of all the files and folders that need to be restored and deleted. Go through this list to verify the changes, and no important files or settings were modified in the process.

After you are satisfied with the changes, click Next to confirm. Again, click Next in the following warning screen to confirm the snapshot restore.

2. Restore Snapshot - Timeshift

Wait a moment and Timeshift will restore your snapshot.

In case you are unable to boot into the system, you can try to boot into it using a live USB and then use Timeshift to restore it to its previous working state and fix any system components, settings or files. system is damaged or misconfigured.

3. Delete Snapshot

If you happen to store a lot of media and software on your local machine and for some reason you are also saving the snapshot on the same drive, then you may want to delete the old snapshot at some point to resolve the issue. free up disk space.

To do this, click the Delete tab on the main Timeshift window. Then, select the snapshot you want to delete and press the Delete button.

3. Delete Snapshot - Timeshift

The system restore utility is a must-have application on Linux computers, especially if you love to customize your system and need to adjust its various configurations and system files quite often.

Therefore, it is also essential to ensure that the tool automatically takes the appropriate snapshots. Hope this guide helps you get started with Timeshift. You can use it to set up automatic snapshots, so that when you need to restore the system, you can do it quite easily.

Similarly, another great Linux system backup and restore utility is dd, which backs up your entire system, including everything from system settings to all documents, files, and even application.

Conclusion

Understanding Timeshift makes it easier to compare options, avoid common mistakes, and apply the information in this guide more effectively. Review the relevant requirements before making changes or choosing a solution.

FAQ

How do you use timeshift to backup and restore a linux system?

Follow the steps in this guide in order, confirm the required settings or tools, and verify the result before making additional changes.

Is it safe to use timeshift to backup and restore a linux system?

It is generally safe when you follow the recommended instructions, use trusted tools, and avoid changing settings you do not understand.

What should you do if the process does not work?

Recheck the requirements, restart the device or application when appropriate, and review each step for missed settings or compatibility issues.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.