Verify if files have been copied correctly
Posted: Sat Apr 28, 2018 10:01 am
I want to copy / transfer files from location to another then verify the files were copied correctly.
One technique to verify if a group of files has been copied correctly to another location would be to:
1) Create a archive of the files ... (tar, cpio or bz - whatever)
2) Create a md5sum for the archive then copy or transfer the archive to the new location.
3) Then create a new md5sum for the archive in the new location.
4) Use diff to compare the 2 md5sum files.
Can cp or another command be used to accomplish this task.
I need to copy all files in the specified directory and sub-directories.
Thanks in advance for any advice / suggestions offered.
Tom
Naturally nuts no pharmaceuticals required
One technique to verify if a group of files has been copied correctly to another location would be to:
1) Create a archive of the files ... (tar, cpio or bz - whatever)
2) Create a md5sum for the archive then copy or transfer the archive to the new location.
3) Then create a new md5sum for the archive in the new location.
4) Use diff to compare the 2 md5sum files.
Can cp or another command be used to accomplish this task.
I need to copy all files in the specified directory and sub-directories.
Thanks in advance for any advice / suggestions offered.
Tom
Naturally nuts no pharmaceuticals required