LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-24-2012, 09: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.

Thanks.
 
Old 06-25-2012, 11:04 AM   #2
montel
Member
 
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)

Code:
rsync -a /source/ /destination/
A quick google search gave me this:
http://www.thegeekstuff.com/2010/09/...mand-examples/

Good luck
 
Old 06-25-2012, 05:28 PM   #3
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Ubuntu MATE, Mint MATE & antiX MX-15
Posts: 1,664
Blog Entries: 5

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

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

http://www.dedoimedo.com/computers/grsync.html

Both will work perfectly and quickly.
 
Old 06-25-2012, 05:42 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,394

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
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, 05:56 PM   #5
frieza
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,200

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

Thanks.
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
Code:
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 06:00 PM.
 
Old 06-25-2012, 09:33 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,358
Blog Entries: 12

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

Personally, I use

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


Reply


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 09: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 12:43 PM
The linux software "simple backup" - how backup everything? Bob Appleby Linux - Software 1 09-20-2010 12:59 AM
[SOLVED] Linux HDD backup under windows - looking for backup utility SigTerm General 1 01-27-2010 12:54 PM
Newbie trying to write a simple backup script to backup a single folder Nd for school stryker759a Linux - Newbie 2 09-16-2009 09:52 AM


All times are GMT -5. The time now is 03:58 PM.

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