LinuxQuestions.org
Register a domain and help support LQ
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 05-03-2008, 07:05 PM   #1
j3nn1
LQ Newbie
 
Registered: Mar 2008
Location: Singapore
Distribution: Fedora 8
Posts: 10

Rep: Reputation: 0
Backup Tools


I would like to ask opinions on utility to backup the entire content on my Hard Drive. I have read about MIRRORDIR, TAR, and DD. What am I trying to do if the Hard Drive failed to run the content from a USB Portable Hard Disk. Is this possible? If yes, what is the suitable backup software? I am currently using Fedora 9. Thanks.
 
Old 05-03-2008, 07:14 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,536

Rep: Reputation: 178Reputation: 178
The best command to back up your hard drive is the cp command. Use the -a option. Suppose that you have your USB drive mounted on /mnt/abc. Then the command to back up your drive would be:

cp -a / /mnt/abc

This will give you an update backup where you only copy files that have changed since the last backup. It will preserve permissions and ownership. It also makes it easy to restore a single file or directory as well as being fairly easy to restore the entire file system.

--------------
Steve Stites
 
Old 05-03-2008, 07:15 PM   #3
npereira
LQ Newbie
 
Registered: Oct 2003
Posts: 26

Rep: Reputation: 15
i would be interested in this also. I currently run fedora8 and am using tar to make a copy of the /home onto a XP box.

But if there is an easier way to do this, then i would like to hear it.
 
Old 05-03-2008, 08:08 PM   #4
npereira
LQ Newbie
 
Registered: Oct 2003
Posts: 26

Rep: Reputation: 15
the problem with cp -a is that if you put it in a script to run from cron, if the files are existant in both source and destination, cp waits for your input to overwrite or not... So this is not good in a script.. at least for me.

I built my own script with Tar, and simple mv to the smbshare.


Quote:
Originally Posted by jailbait View Post
The best command to back up your hard drive is the cp command. Use the -a option. Suppose that you have your USB drive mounted on /mnt/abc. Then the command to back up your drive would be:

cp -a / /mnt/abc

This will give you an update backup where you only copy files that have changed since the last backup. It will preserve permissions and ownership. It also makes it easy to restore a single file or directory as well as being fairly easy to restore the entire file system.

--------------
Steve Stites
 
  


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
Backup tools Fill Linux - Software 2 06-30-2007 03:02 AM
Best firewall and backup tools rdabra Linux - Newbie 4 12-15-2005 05:40 AM
backup tools bob_man_uk Linux - Software 5 02-09-2005 02:38 AM
linux backup and tools kalmen Linux - General 10 01-02-2003 01:42 PM
Backup tools jpc82 Linux - Software 1 07-15-2002 11:40 PM


All times are GMT -5. The time now is 03:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration