Skip to main content
updated formatting - the Q/A was obscured by markdown combining the lines
Source Link

Quick and dirty answers, directly to the questions.

Q:Q: Will rsync make the comparison when copying the files between two local drives? A: It will do comparison to figure out what to copy.

A: It will do comparison to figure out what to copy.

Q:Q: If it does do a verification - is it a safe bet? Or is it better to do a byte by byte comparison? A: as safe as the mathematics behind MD5 checksum of file. You can try to do simple experiment to learn and trust the tool.

A: as safe as the mathematics behind MD5 checksum of file. You can try to do simple experiment to learn and trust the tool.

Long answer: I guess, you wanted rsync to do file comparison (bit by bit or by checksum) after copying files. If you are one of the few that value data integrity, you might find the below useful:

rsync -avh [source] [destination] && rsync -avhc [source] [destination] 

#aboveThe above code rsync files folder on first run and if complete without issue, will run rsync again immediately while performing same file name comparison by using hash of entire file.

Quick and dirty answers, directly to the questions.

Q: Will rsync make the comparison when copying the files between two local drives? A: It will do comparison to figure out what to copy.

Q: If it does do a verification - is it a safe bet? Or is it better to do a byte by byte comparison? A: as safe as the mathematics behind MD5 checksum of file. You can try to do simple experiment to learn and trust the tool.

Long answer: I guess, you wanted rsync to do file comparison (bit by bit or by checksum) after copying files. If you are one of the few that value data integrity, you might find the below useful:

rsync -avh [source] [destination] && rsync -avhc [source] [destination] 

#above code rsync files folder on first run and if complete without issue, will run rsync again immediately while performing same file name comparison by using hash of entire file.

Quick and dirty answers, directly to the questions.

Q: Will rsync make the comparison when copying the files between two local drives?

A: It will do comparison to figure out what to copy.

Q: If it does do a verification - is it a safe bet? Or is it better to do a byte by byte comparison?

A: as safe as the mathematics behind MD5 checksum of file. You can try to do simple experiment to learn and trust the tool.

Long answer: I guess, you wanted rsync to do file comparison (bit by bit or by checksum) after copying files. If you are one of the few that value data integrity, you might find the below useful:

rsync -avh [source] [destination] && rsync -avhc [source] [destination] 

The above code rsync files folder on first run and if complete without issue, will run rsync again immediately while performing same file name comparison by using hash of entire file.

Quick and dirty answers, directly to the questions.

Q: Will rsyncrsync make the comparison when copying the files between two local drives? A: It will do comparison to figure out what to copy.

Q: If it does do a verification - is it a safe bet? Or is it better to do a byte by byte comparison? A: as safe as the mathematics behind MD5 checksum of file. You can try to do simple experiment to learn and trust the tool.

Long answer: I guess, you wanted rsyncrsync to do file comparison (bit by bit or by checksum) after copying files. If you are one of the few that value data integrity, you might find the below useful:

rscyn -avh [source] [destination] && rscyn -avhc [source] [destination]

rsync -avh [source] [destination] && rsync -avhc [source] [destination] 

#above code rsyncrsync files folder on first run and if complete without issue, will run rsyncrsync again immediately while performing same file name comparison by using hash of entire file.

Quick and dirty answers, directly to the questions.

Q: Will rsync make the comparison when copying the files between two local drives? A: It will do comparison to figure out what to copy.

Q: If it does do a verification - is it a safe bet? Or is it better to do a byte by byte comparison? A: as safe as the mathematics behind MD5 checksum of file. You can try to do simple experiment to learn and trust the tool.

Long answer: I guess, you wanted rsync to do file comparison (bit by bit or by checksum) after copying files. If you are one of the few that value data integrity, you might find the below useful:

rscyn -avh [source] [destination] && rscyn -avhc [source] [destination]

#above code rsync files folder on first run and if complete without issue, will run rsync again immediately while performing same file name comparison by using hash of entire file.

Quick and dirty answers, directly to the questions.

Q: Will rsync make the comparison when copying the files between two local drives? A: It will do comparison to figure out what to copy.

Q: If it does do a verification - is it a safe bet? Or is it better to do a byte by byte comparison? A: as safe as the mathematics behind MD5 checksum of file. You can try to do simple experiment to learn and trust the tool.

Long answer: I guess, you wanted rsync to do file comparison (bit by bit or by checksum) after copying files. If you are one of the few that value data integrity, you might find the below useful:

rsync -avh [source] [destination] && rsync -avhc [source] [destination] 

#above code rsync files folder on first run and if complete without issue, will run rsync again immediately while performing same file name comparison by using hash of entire file.

Rewote answer to aim directly at Q
Source Link
M.N.
  • 382
  • 2
  • 8

RsyncQuick and dirty answers, directly to the questions.

Q: Will rsync make the comparison when copying the files between two local drives? A: It will do comparison to figure out what to copy.

Q: If it does do a verification - is capable of doingit a safe bet? Or is it better to do a byte by byte comparison? A: as safe as the mathematics behind MD5 checksum of source and destination to confirm file integrity, however. You can try to do simple experiment to learn and trust the tool.

Long answer: I guess, if man pages confuse you andwanted rsync to do file comparison (bit by bit or by checksum) after copying files. If you are not able to understand source codeone of the few that value data integrity, you wouldmight find the below useful:

  1. run rsync to sync folders/files, wait for it to finish then
  2. run rsync again, with an extra -c option to force checksum of source and destination on the second run for matching size files.

rscyn -avh [source] [destination] && rscyn -avhc [source] [destination]

#above code rsync files folder on first run and if complete without issue, will run rsync again immediately while performing same file name comparison by using hash of entire file.

Rsync is capable of doing checksum of source and destination to confirm file integrity, however, if man pages confuse you and you are not able to understand source code you would:

  1. run rsync to sync folders/files, wait for it to finish then
  2. run rsync again, with an extra -c option to force checksum of source and destination on the second run for matching size files.

Quick and dirty answers, directly to the questions.

Q: Will rsync make the comparison when copying the files between two local drives? A: It will do comparison to figure out what to copy.

Q: If it does do a verification - is it a safe bet? Or is it better to do a byte by byte comparison? A: as safe as the mathematics behind MD5 checksum of file. You can try to do simple experiment to learn and trust the tool.

Long answer: I guess, you wanted rsync to do file comparison (bit by bit or by checksum) after copying files. If you are one of the few that value data integrity, you might find the below useful:

rscyn -avh [source] [destination] && rscyn -avhc [source] [destination]

#above code rsync files folder on first run and if complete without issue, will run rsync again immediately while performing same file name comparison by using hash of entire file.

Source Link
M.N.
  • 382
  • 2
  • 8
Loading