Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-24-2012, 08:14 AM   #1
TS Tinarwo
LQ Newbie
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
Linux backup

How do I backup home directory in Linux. Its my first time to use Linux.

Old 06-25-2012, 10:04 AM   #2
Registered: Jun 2012
Location: Canada
Distribution: Ubuntu/Debian/CentOS
Posts: 45

Rep: Reputation: 18
I would look into using rsync.

To backup your home directory, try the following: (replace source and destination with what you have)

rsync -a /source/ /destination/
A quick google search gave me this:

Good luck
Old 06-25-2012, 04:28 PM   #3
Senior Member
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 18 MATE, antiX-16.1, MX-16
Posts: 2,145
Blog Entries: 9

Rep: Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771
That is a good suggestion.

Alternatively, if you prefer to use the graphic (GUI) version, grsync, then look here:

Both will work perfectly and quickly.
Old 06-25-2012, 04:42 PM   #4
Registered: Mar 2008
Posts: 16,883

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Hello and welcome.

Backup used to be the work of a program called tar. Tar along with compression can still be used to make a copy of your data generally.

There is almost an unlimited amount of ways to backup so expect a few ideas and ways.
Old 06-25-2012, 04:56 PM   #5
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,225

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Originally Posted by TS Tinarwo View Post
How do I backup home directory in Linux. Its my first time to use Linux.

I suppose that 'how' depends on several factors, including, but not limited to:

1) how much data are we talking about (a few word documents, or an entire music/video library/photo album etc..)

2) what kind of data (text compresses better than video/photos/audio which are usually already compressed, so trying to re-compress video/music/audio won't have a significant impact and can sometimes even be LARGER in a compressed archive rather than smaller)

3)on to what medium are we trying to back up the data? blank optical media? an external hard drive/thumb drive? a network volume? a backup service?

4) how often does the data on your home directory change? daily, weekly, monthly?

the simplest imho would be TAR however
tar -vcjf backup.tar.bz2 /home/{user}
than copy that to your desired medium
simplest however isn't necessarily the best, but tar usually works and doesn't require any configuration.

Last edited by frieza; 06-25-2012 at 05:00 PM.
Old 06-25-2012, 08:33 PM   #6
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,509
Blog Entries: 16

Rep: Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211
Back in Time is a GUI front end for rsync. Sourcetrunk gave it a good review.

Personally, I use

rsync -arv /home/[username] [target ip]:/path/to/backup/directory


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux os backup like Ignite backup in HP-UX santosh.rathod Linux - Newbie 2 03-07-2012 08:56 AM
LXer: Rsync Backup for Windows, Linux Knoppix, and Other Smart Technologies in Handy Backup by Novos LXer Syndicated Linux News 0 12-24-2011 11:43 AM
The linux software "simple backup" - how backup everything? Bob Appleby Linux - Software 1 09-19-2010 11:59 PM
[SOLVED] Linux HDD backup under windows - looking for backup utility SigTerm General 1 01-27-2010 11:54 AM
Newbie trying to write a simple backup script to backup a single folder Nd for school stryker759a Linux - Newbie 2 09-16-2009 08:52 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration