LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-18-2014, 05:13 PM   #1
voyager2014
LQ Newbie
 
Registered: Feb 2014
Posts: 9

Rep: Reputation: Disabled
Question File diffeerences with rsync


Hi,
I try to backup a lot of binary files from dir1 to dir2, music files, pictures, etc
I use rsync -av dir1/ dir2, so far so good.

After running diff dir1/ dir2/ it outputs that there still are differences in some files. Where is it going wrong? the files in both directories diff complains about have the same date and the same length, still they differ and it is not noticed by rsync.

I googled for hours but did not find any resolution.
 
Old 03-18-2014, 05:15 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by voyager2014 View Post
Hi,
I try to backup a lot of binary files from dir1 to dir2, music files, pictures, etc
I use rsync -av dir1/ dir2, so far so good.

After running diff dir1/ dir2/ it outputs that there still are differences in some files. Where is it going wrong? the files in both directories diff complains about have the same date and the same length, still they differ and it is not noticed by rsync.

I googled for hours but did not find any resolution.
rsync uses timestamp and size for comparison so it will miss these. See man rsyns, --checksum.

What is the diff command that you are using?

Last edited by astrogeek; 03-18-2014 at 05:37 PM.
 
Old 03-19-2014, 05:43 PM   #3
voyager2014
LQ Newbie
 
Registered: Feb 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thumbs up

the --checksum (or -c) option did the trick. It makes the rsync process much slower, of course, but at least I have an exact copy of my original files. Many thanks Astrogeek!
 
  


Reply



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 some file types kilee Linux - Newbie 10 08-28-2013 07:08 PM
Rsync file ust Linux - Software 3 07-06-2009 05:39 AM
rsync with password file mnauta Linux - Server 10 11-15-2008 08:06 PM
rsync no such file or directory (2) baronsam Linux - General 6 06-01-2006 06:13 PM
RSYNC - file ownership MikeAtVillage Linux - Networking 2 01-16-2006 03:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:12 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
Open Source Consulting | Domain Registration