rsync wants to copy Identical directory structure and files.
Brad Kroeger
bkroeger at sdsc.edu
Wed Dec 8 17:49:04 GMT 2004
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
>
More information about the rsync
mailing list