LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-16-2007, 10:18 PM   #1
szim90
Member
 
Registered: Nov 2006
Distribution: Debian Testing
Posts: 39

Rep: Reputation: 15
cp or rsync


Hi.

What program should I use to copy large folders with important data, cp or rsync? From what I have read, rsync runs checks to make sure the files it creates were copied correctly. Does cp do this? Does gnome run checks when you copy files from the gui?

I frequently transfer files from my main hard disk to my external hard disk and I want to make certain that the copies I am creating are correctly generated, since some of the things being copied are large backup tar files that I won't open unless I need to restore something (so, if there is a copy error, it could go unnoticed for a long time).

Thank you for any help,
szim90
 
Old 06-16-2007, 10:45 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
cpio is a very good choice for local file-systems, even though
rsync should be sufficiently thorough; it would definitely be
faster since you can set it up to only copy files that were
changed since they last got copied .... :}


Cheers,
Tink
 
Old 06-17-2007, 12:11 AM   #3
quantumsummers
LQ Newbie
 
Registered: Oct 2006
Posts: 6

Rep: Reputation: Disabled
Here are some options for you.


Hi,

I have to do this all the time & so I have researched to a degree, at least to my satisfaction.

There are gui tools for this, but the easiest thing to do is use rsync. rsync will do some manner of file integrity check. With compressed archives I also recommend the use of a file checksum utility, like md5sum or sha*.

My method entails:
1> Compress the archive.
2> Checksum the compressed archive, and copy the checksum string to a text file.
3> Make a directory, labeled appropriately, with the archive & checksum text file.
4> Use rsync to copy it to backup location.
5> Verify integrity of the new file in backup location using checksum.

If the files are really really important I checksum every file prior to compressing & then use the procedure above.

For the truly paranoid, write a script that checksums all the files in all/some backup locations (I use several physical disks in different locations for backup all containing the same data) & compares the output. Then include protocol in the event that the checksums don't match, like asking _you_ what to do, or some form of automation.

If you want to see some of the available tools, search "backup" at gentoo-portage. I am a fan of backuppc & rdiff-backup. In general, the best ones use librsync anyway. Hope this helps!

Cheers,

QuantumSummers

 
  


Reply

Tags
backup, cp, rsync


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
Rsync server vs rsync over ssh humbletech99 Linux - Networking 1 10-18-2006 12:10 PM
Rsync sant25 Linux - General 2 09-02-2005 03:34 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM
rsync becks.lin Linux - Software 6 03-22-2004 07:45 PM
Rsync buttersoft Linux - Software 4 11-05-2003 11:37 AM


All times are GMT -5. The time now is 11:38 PM.

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