Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 08-23-2006, 09:40 AM   #1
Senior Member
Registered: Apr 2003
Posts: 3,672

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


Old 08-23-2006, 10:11 AM   #2
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 545

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, 10:27 AM   #3
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, 01:31 PM   #4
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

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

Original Poster
Rep: Reputation: 55
Hi folks,

Tks for your advice.

Follows were the result of googling;
A Tutorial on Using Rsync
Last updated on November 20th, 1999

Easy Automated Snapshot-Style Backups with Linux and Rsync

How to setup rsync for anonymous mirroring - Chapter 2:

Rsync tutorial
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.



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 08:02 PM
dd backup and restore command jimmete Red Hat 4 06-07-2006 03:13 AM
LXer: Accessing Network attached storage from Linux system for file sharing and backup purpose LXer Syndicated Linux News 0 05-20-2006 02:03 AM
Will this command backup my box? BBlalock Linux - Newbie 2 05-02-2004 12:14 PM
backup command ust Linux - General 1 03-16-2004 12:34 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:48 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