LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 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.

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

Rep: Reputation: 19
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, 04:28 PM   #3
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 22 MATE, Peppermint OS-Devuan, EndeavourOS
Posts: 4,233
Blog Entries: 47

Rep: Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571
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, 04:42 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,129

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
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
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,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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 05:00 PM.
 
Old 06-25-2012, 08:33 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,587
Blog Entries: 28

Rep: Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219
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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:09 AM.

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
Open Source Consulting | Domain Registration