How to Install TimeShift on Ubuntu 22.04 LTS

Although installing and configuring Linux is not a difficult task, but sometimes entering the wrong command can lead to some errors that you will find difficult to solve.
It’s good when there is a backup copy of the system, with the help of it you can easily restore the system to an earlier point when everything worked, this can be done using TimeShift.

What is Linux TimeShift Program?

Like Windows System Restore and macOS Time Machine, Linux also has a tool called TimeShift. We can easily install this Linux system restore or backup tool on Ubuntu, Linux Mint, and Debian. The key task of the tool is to create snapshots of the Linux file system that restore a previous state when restored.

The user Linux backup tool only creates differential backups and use storage space sparingly. Recovery points share common, unmodified files so they are not saved multiple times. Nevertheless, each snapshot contains a complete backup set, which can also be searched with a file manager, since identical files are represented by hard links. The first backup point is always a complete backup of the system directories and is quite large at a few gigabytes.

TimeShift uses Rsync to work in the background quietly to take care of system files and leaves users’ personal files in their home directories untouched, but also backs up their configuration files. Restoring a previous system status does not overwrite any documents, but also restores user settings. Also, supports the BTRFS Snapshot mode.

1. Update Ubuntu

First, before you begin, make sure your system is up-to-date by using the following terminal command.

$ sudo apt update && sudo apt upgrade -y

Ubuntu-22-04-update-upgrade-system

2. Install TimeShift on Ubuntu

We don’t need to add any extra repository to install TimeShift because we already have its packages in our Ubuntu’s default system repo.

Begin the installation using the following terminal command.

$ sudo apt install timeshift

Ubuntu-22-04-install-timeshift

3. Run TimeShift Application

Once installed, the backup software can be found in the following path Activities > Show Applications > TimeShift.

Ubuntu-22-04-run-timeshift-application

To run it, the system will ask you to enter your user password.

4. Select SnapShot Type

As this backup program is launched on your system, it will ask you to select the snapshot type between Rsync and BTRS. By default, Rsync will be selected. Go through the below-given details and select one of your choices.

Ubuntu-22-04-SnapShot-Type

To use the BTRFS snapshot type your Linux file system must be formatted in BTRFS. Otherwise, go for rsync.

RSYNC Snapshots

BTRFS snapshots

Know more about this tool at its GitHub Page.

5. Create Snapshots with TimeShift

Once you have the graphical user interface of the TimeShift, click on the Create button to start with your first system’s Snapshot.

Ubuntu-22-04-Create-SnapShot-1
Ubuntu-22-04-Create-SnapShot-2
Ubuntu-22-04-Create-SnapShot-3
Ubuntu-22-04-Create-SnapShot-4

6. To schedule System backup

If you want the Timeshift to automatically take the system’s snapshot at some particular given time, then use the Schedule option of this tool.

Ubuntu-22-04-schedule-system-backup

7. How to update TimeShift

Well, we have used the APT package manager and system’s default repository to install TimeShift, hence running the system update and upgrade command will also install if any latest version of TimeShift is available.

$ sudo apt update && sudo apt upgrade -y

Ubuntu-22-04-update-upgrade-system

8. How to Remove (Uninstall) TimeShift

This can be easily removed using the following command for users who no longer need or require the backup software.

$ sudo apt remove timeshift -y

Ubuntu-22-04-remove-timeshift

Conclusion

TimeShift is an excellent addition to helping Linux users back up from bad software installations; typically, if your hard drive has space keeping a few snapshots can be pretty handy when diagnosing when some.

Source
linuxcapable.comhow2shout.com
Exit mobile version