Backup Files in Linux Using Timeshift

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals.

Note: TimeShift makes use of rsync to get the work done. While you can easily make use of rsync to accomplish the same task, this provides a simple to use interface so you can get things done easier and faster.

First you will need to add the repository file and this could be performed by typing this command and press ENTER:
sudo apt-add-repository -y ppa:teejee2008/ppa

Open in new window

Here is my example....
Adding the file to the repository...Now you want to update the update the repository and this can be done with this command and press ENTER:
sudo apt-get update

Open in new window

or ,if you do not have apt-get, you can run:
sudo aptitude update

Open in new window

Updating the repositoryNow it is time to install Timeshift program with this command and press ENTER:
sudo apt-get install timeshift

Open in new window

Installing the timeshift programNow we will run the program, but remember that Timeshift is only executable with root privileges. Before I run the program I will show you the error message that you will get if you just run this command and press ENTER:

Open in new window

Running Timeshift without elevated privileges (root)....To properly get the program to work run this command and press ENTER:
sudo timeshift

Open in new window

Running the program correctly with elevated privileges...Now when the program opens you will see size requirement and all you have to do is click on "Backup"
Timeshift GUI ScreenPlus we can change the schedule when we want to take a snapshot. You can click on the "Settings" icon on the main Timeshift window. The "Schedule" tab will automatically present itself.  Click the sliding handle to the right to the "On" position. Now you can configure when you want it to perform the snapshots, default "Daily and Boot"
Configuring Schedule SnapshotsNow you can click on the "Auto-Remove" tab to see the default options and this will help to make sure you do not use up storage space.
Auto-remove tabFinally you can go to the "Advanced" tab to "Exclude" or "Include" what you want to take a snapshot of.  After you are finish you can click "Save"
Advanced Tab

Comments (3)

Puspharaj SelvarajSr.System engineer

Can you post a restore scenario here?



I will work on this and thanks for the feedback.

Really interesting!

Thanks a lot for sharing.

What is it backupping?

Is it stable?

Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.