<

Go Premium for a chance to win a PS4. Enter to Win

x

Backup Files in Linux Using Timeshift

Published on
9,834 Points
3,734 Views
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:
timeshift

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
1
Comment
3 Comments
 
LVL 2

Expert Comment

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

Thanks
0
 
LVL 14

Author Comment

by:comfortjeanius
I will work on this and thanks for the feedback.
0
 
LVL 1

Expert Comment

by:ltpitt
Really interesting!

Thanks a lot for sharing.

What is it backupping?

Is it stable?
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Join & Write a Comment

How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month