Brad Kroeger
2004-Dec-08 17:46 UTC
rsync wants to copy Identical directory structure and files.
Hello, I have two identical directories and when I run an rsync --dry-run on them rsync wants to transfer all the files from the source directory to the target directory. I verified some files in both directories with 'ls -l' and the output is the same which, if I understand correctly, means that rsync should not include the file in the list of files to transfer. I also did an md5 check on source files and destination files and verified the output was the same. I am attempting to verify if the source and destination directories are the same using rsync. Perhaps there is a better way. --------- rsync --verbose --dry-run --progress --stats --recursive --times --perms --links /misc/cosmos/srb/tape_vault/dtfMcat.orig /misc/samqfs/srbfs/srb/tape_vault/dtfMcat shows 1150 different files including for example file : dtfMcat.orig/SRBVault/srb.sdsc/95/7/TEST.Sget.c.1549896231.1070989901 But "cmp" and "ls" shows them as same! orion-28% cmp /misc/cosmos/srb/tape_vault/dtfMcat.orig/SRBVault/srb.sdsc/95/7/TEST.Sget.c.1549896231.1070989901 /misc/samqfs/srbfs/srb/tape_vault/dtfMcat/SRBVault/srb.sdsc/95/7/TEST.Sget.c.1549896231.1070989901 orion-29% ls -al /misc/cosmos/srb/tape_vault/dtfMcat.orig/SRBVault/srb.sdsc/95/7/TEST.Sget.c.1549896231.1070989901 /misc/samqfs/srbfs/srb/tape_vault/dtfMcat/SRBVault/srb.sdsc/95/7/TEST.Sget.c.1549896231.1070989901 -r-x----w- 1 srb srbdev 12385 Dec 9 2003 /misc/cosmos/srb/tape_vault/dtfMcat.orig/SRBVault/srb.sdsc/95/7/TEST.Sget.c.1549896231.1070989901 -r-x----w- 1 srb srbdev 12385 Dec 9 2003 /misc/samqfs/srbfs/srb/tape_vault/dtfMcat/SRBVault/srb.sdsc/95/7/TEST.Sget.c.1549896231.1070989901 -Brad Kroeger
Brad Kroeger
2004-Dec-08 17:49 UTC
rsync wants to copy Identical directory structure and files.
Hello, I have one more tidbit of information that may help. The source directory was originally copied over to the target directory with 'cp -pR source dest'. Thanks, -Brad Kroeger Brad Kroeger wrote:> Hello, > > I have two identical directories and when I run an rsync --dry-run on > them rsync wants to transfer all the files from the source directory to > the target directory. I verified some files in both directories with > 'ls -l' and the output is the same which, if I understand correctly, > means that rsync should not include the file in the list of files to > transfer. I also did an md5 check on source files and destination files > and verified the output was the same. > > I am attempting to verify if the source and destination directories are > the same using rsync. Perhaps there is a better way. > > --------- > > rsync --verbose --dry-run --progress --stats --recursive --times --perms > --links /misc/cosmos/srb/tape_vault/dtfMcat.orig > /misc/samqfs/srbfs/srb/tape_vault/dtfMcat > > shows 1150 different files including for example file : > > dtfMcat.orig/SRBVault/srb.sdsc/95/7/TEST.Sget.c.1549896231.1070989901 > > But "cmp" and "ls" shows them as same! > > orion-28% cmp > /misc/cosmos/srb/tape_vault/dtfMcat.orig/SRBVault/srb.sdsc/95/7/TEST.Sget.c.1549896231.1070989901 > /misc/samqfs/srbfs/srb/tape_vault/dtfMcat/SRBVault/srb.sdsc/95/7/TEST.Sget.c.1549896231.1070989901 > > > orion-29% ls -al > /misc/cosmos/srb/tape_vault/dtfMcat.orig/SRBVault/srb.sdsc/95/7/TEST.Sget.c.1549896231.1070989901 > /misc/samqfs/srbfs/srb/tape_vault/dtfMcat/SRBVault/srb.sdsc/95/7/TEST.Sget.c.1549896231.1070989901 > > -r-x----w- 1 srb srbdev 12385 Dec 9 2003 > /misc/cosmos/srb/tape_vault/dtfMcat.orig/SRBVault/srb.sdsc/95/7/TEST.Sget.c.1549896231.1070989901 > > -r-x----w- 1 srb srbdev 12385 Dec 9 2003 > /misc/samqfs/srbfs/srb/tape_vault/dtfMcat/SRBVault/srb.sdsc/95/7/TEST.Sget.c.1549896231.1070989901 > > > -Brad Kroeger >
Wayne Davison
2004-Dec-08 17:52 UTC
rsync wants to copy Identical directory structure and files.
On Wed, Dec 08, 2004 at 09:46:06AM -0800, Brad Kroeger wrote:> rsync --verbose --dry-run --progress --stats --recursive --times --perms > --links /misc/cosmos/srb/tape_vault/dtfMcat.orig > /misc/samqfs/srbfs/srb/tape_vault/dtfMcatAdd a trailing slash to the source (dtfMcat.orig) dir so that rsync doesn't try to copy that dir by name into dtfMcat. ..wayne..