LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 08-23-2006, 10:40 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Rep: Reputation: 53
About cp command for backup purpose


Hi folks,

I'm prepared to connect an USB enclosure to PC to be used for backup data from /home/user's directory with cp command regularly.

My questions are;

1) Can I run incremental copying for time saving with following options up
$ cp -p -R -u /home/user/* /mnt/point/of/usb_enclosure/

2) Is there any method whenever I save a file on /home/user/directory_A a duplicate copy would be saved on the USB enclosure automatically to /directory_A which has already been existing.

3) Is there any better method to serve my purpose solely to backup data from /home/user/ on USB enclosure regularly

TIA

B.R.
satimis
 
Old 08-23-2006, 11:11 AM   #2
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 542

Rep: Reputation: 33
Looks like a good plan to me.
You might at a -d so that the copy does not follow symbolic links. Or you could use the -a (archive) which is equivalent to using -dpR.

Either way I think you're plan as is will work just fine.
 
Old 08-23-2006, 11:27 AM   #3
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
There are many backup solutions besides cp. rsync to name one. Try searching this forum for backup software.
 
Old 08-23-2006, 02:31 PM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
If you just want a basic 'update this mirror periodically', definitely use rsync.
 
Old 08-24-2006, 06:24 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Hi folks,

Tks for your advice.

Follows were the result of googling;
Code:
A Tutorial on Using Rsync
Last updated on November 20th, 1999 
http://everythinglinux.org/rsync/rsync_content.html

Easy Automated Snapshot-Style Backups with Linux and Rsync
http://www.mikerubel.org/computers/rsync_snapshots/

How to setup rsync for anonymous mirroring - Chapter 2:
http://sunsite.dk/info/guides/rsync/rsync-mirroring02.html

Rsync tutorial
http://www.fredshack.com/docs/rsync.html
Any injection? TIA. Which of the above is more appropriate to my application?

My top preference is to have replication on the USB enclosure whenever a copy of file is saved on local HD (PC HD). It'll save my work to run rsync periodically creating backup on the enclosure.

B.R.
satimis
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup and Restore Command jimmete Amigo 4 06-07-2006 09:02 PM
dd backup and restore command jimmete Red Hat 4 06-07-2006 04:13 AM
LXer: Accessing Network attached storage from Linux system for file sharing and backup purpose LXer Syndicated Linux News 0 05-20-2006 03:03 AM
Will this command backup my box? BBlalock Linux - Newbie 2 05-02-2004 01:14 PM
backup command ust Linux - General 1 03-16-2004 01:34 PM


All times are GMT -5. The time now is 12:39 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration