How to Backup and Restore System Files in elementary OS

TimeShift automatically takes incremental snapshots of the file system at regular intervals, which can be used to restore your Linux computer. Let's check out how to install and configure it on your elementary OS.

One of the ways to backup the elementary OS system state is by using a free tool ‘TimeShift.’ It provides functionality similar to the System Restore on Windows OS and the Time Machine in Mac OS.

TimeShift automatically takes incremental snapshots of the file system at regular intervals, which can be used to restore your Linux computer. Let’s check out how to install and configure it on your elementary OS.

Installing TimeShift on elementary OS

Launch Terminal and enter the following commands one at a time.

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

Configure TimeShift for Automatic Backups

After installation is complete, launch TimeShift from Applications. TimeShift won’t backup anything by itself by default settings. Click on ‘Settings’ in the TimeShift user interface. You will see ‘Schedule,’ ‘Auto-Remove,’ and ‘Advanced’ tabs.

1. Schedule Automatic Backup

This is the first thing I would do to use TimeShift effectively. Enable ‘Scheduled snapshots’ and check ‘Daily’ and ‘Boot’ options. The tool should now take one backup every day and also one for every reboot. You can choose the way you want.

TimeShift Settings - Schedule Automatic Backups
TimeShift Settings – Schedule Automatic Backups

2. Auto Cleanup Old Backup Snapshots

Each snapshot typically takes around 9 GB of hard disk space to backup elementary OS system files. So if you choose one per day, the hard disk space will be consumed very fast. To tackle this issue, you can let TimeShift to automatically delete older snapshots and keep the latest five or so snapshots.

TimeShift Settings - Remove Old Backups
TimeShift Settings – Remove Old Backups

3. Add Additional Backup Locations

Note that by default settings, TimeShift is intended to only backup Linux system files. It won’t back up the user data stored in music, pictures, documents, videos, or any other such non-system files. However, you can include additional folders or files in the backup. For example, I have added the ‘Documents’ directory to be backed up. You can configure it in the ‘Advanced’ tab.

TimeShift Settings - Add Custom Backup Locations
TimeShift Settings – Add Custom Backup Locations

Click ‘Save,’ and TimeShift will take care of the backups for you. Anytime you feel elementary OS is not running well due to misconfiguration or data loss, launch ‘TimeShift,’ click on ‘Restore’ option, and select the snapshot you want to bring your system to the snapshot state.

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities, especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. I hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,437FansLike
375FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

How to change Hostname on Ubuntu

Generally, a hostname is just an assigned name to a computer, laptop, or any other connected device to a network. You can say a hostname is a computer's nickname, and it is used to identify the machine over the network uniquely.

Manjaro vs. Ubuntu – which is better for you?

If you are a person associated with Computer technology and spend most of the time in the open-source arena, you must have heard or worked with some of the popular Linux distributions we have in the market. Some of the names that you will never miss are; Ubuntu, Arch Linux, Debian, and Mint.

9 Useful Tips Working with Operating System using Python

There are several situations when we want to work with the operating system using python. We may want to see the user details or want to do some tasks with the files and directories. If you are a system administrator, you will find it useful to work with Operating System as one can easily automate some repeating tasks of the Operating System using python.

System76 Lemur Pro Review

Buyers who wish to go for a machine that is based on Linux often show interest in Chromebooks due to the form factor and extended battery life capabilities. Although ChromeOS power these machines, users can still miss out on a more genuine Linux experience. For those who happen to agree, the new Lemur Pro by System76 might get some heads turning.

Top 10 New Features in Linux Kernel 5.8

Linus Torvalds recently announced the release of Linux Kernel 5.8, and he seems delighted with it. He has pointed it out as the most significant release of all time. To developers, this new kernel comes with an addition of 800,000 new code lines and more than 14,000 changed files. To the average user, you might not see many eye-candy changes, as seen in the earlier releases.

How to install Flutter on Linux

Do you want to install Flutter and start creating awesome Android and iOS applications? Then you have come to the right place. Here is a comprehensive tutorial on how to install Flutter on Linux. If you are new to Flutter, don't worry, we got that covered too as we shall go in-depth understanding of Flutter and what it brings to the table.

MUST READ

Buyers who wish to go for a machine that is based on Linux often show interest in Chromebooks due to the form factor and extended battery life capabilities. Although ChromeOS power these machines, users can still miss out on a more genuine Linux experience. For those who happen to agree, the new Lemur Pro by System76 might get some heads turning.
Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.

[Guide] apt vs apt-get commands, and which one to use?

Most Linux users, both veterans, and newbies, often get confused about what the difference between the Linux commands apt, and apt-get are and when they should use one or the other.

5 Things to do when your Linux system GUI freezes

All operating systems freeze at some point and, Linux distributions are no exceptions. In this post, we are going to look at five methods you can apply to your frozen system before thinking of plugging out the power cable or holding down the power button to power off the PC.

How to clone hard disk on Linux using Clonezilla

Disk cloning refers to the process of copying data from one disk to another, thus creating a one-to-one copy of the drive. Technically, this process is possible using the copy-and-paste method.

VIDEO: Linux Lite 4.8 Features and Desktop Tour

Linux Lite eases Windows 7 users transition to Linux much more comfortable by offering simple software like Team Viewer, VLC, Firefox, TimeShift backup utility, and a full Microsoft Office compatible office suite in LibreOffice.