[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More


Backup Files in Linux Using Timeshift

Published on
10,599 Points
1 Endorsement
Last Modified:
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

Expert Comment

by:Puspharaj Selvaraj
Can you post a restore scenario here?

LVL 14

Author Comment

I will work on this and thanks for the feedback.

Expert Comment

Really interesting!

Thanks a lot for sharing.

What is it backupping?

Is it stable?

Featured Post

Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
I've published three five-minute Experts Exchange video Micro Tutorials that describe terrific features in an excellent, free PDF product called PDF-XChange Editor: How to rotate pages in a PDF with free software (https://www.experts-exchange.com…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month