please help me using rsync efficiently

Paul Slootman paul+rsync at wurtel.net
Thu Jul 16 07:10:44 MDT 2009


On Thu 16 Jul 2009, vvenu88 at gmail.com wrote:

> The contents of the list file (passed to rsync for synchronisation) are
>
> /folder1/folder2/rep/01234018329/FSG2_PULL.txt#79GA91205KAE --- actual file
> /folder1/folder2/users/01234002360/my/FSG2_PULL#79GA91205KAE ---- link
> /folder1/folder2/rep/00000000090/TEST#79GA85630K9X
> /folder1/folder2/users/01234002360/my/TEST#79GA85630K9X
> /folder1/folder2/rep/00000000090/TEST#79GAL5005KMN
> /folder1/folder2/users/01234002360/my/TEST#79GAL5005KMN
> /folder1/folder2/rep/00000000090/TEST#79GAL5303KMQ
> /folder1/folder2/users/01234002360/my/TEST#79GAL5303KMQ
> /folder1/folder2/rep/00000000090/TEST#79GB04321Q0T
> /folder1/folder2/users/01234002360/my/TEST#79GB04321Q0T
>
> After rsync has transferred the files and links the log shown is
>
> /folder1/folder2/rep/00000000090/
> /folder1/folder2/rep/00000000090/TEST#79GA85630K9X
> /folder1/folder2/rep/00000000090/TEST#79GAL5005KMN
> /folder1/folder2/rep/00000000090/TEST#79GAL5303KMQ
> /folder1/folder2/rep/00000000090/TEST#79GB04321Q0T
>
> /folder1/folder2/rep/01234018329/
> /folder1/folder2/rep/01234018329/FSG2_PULL.txt#79GA91205KAE
>
> /folder1/folder2/users/01234002360/my/
> /folder1/folder2/users/01234002360/my/FSG2_PULL#79GA91205KAE ->  
> /folder1/folder2/rep/01234018329/FSG2_PULL.txt#79GA91205KAE
> /folder1/folder2/users/01234002360/my/TEST#79GA85630K9X ->  
> /folder1/folder2/rep/00000000090/TEST#79GA85630K9X
> /folder1/folder2/users/01234002360/my/TEST#79GAL5005KMN ->  
> /folder1/folder2/rep/00000000090/TEST#79GAL5005KMN
> /folder1/folder2/users/01234002360/my/TEST#79GAL5303KMQ ->  
> /folder1/folder2/rep/00000000090/TEST#79GAL5303KMQ
> /folder1/folder2/users/01234002360/my/TEST#79GB04321Q0T ->  
> /folder1/folder2/rep/00000000090/TEST#79GB04321Q0T
>
> The log shows the way the rsync is copying the files to destination dir.
> But i want rsync to copy the files the way the files and links are in the 
> list file.

Why?
It doesn't make any difference. Once two files are hard-linked, there is
no difference whatsoever between both names (names are effectively just
links).

> Is it possible with rsync?

No; rsync will always transfer the files alphabetically (sorted).
Hence linked files will first be transferred as the first name to be
found in the sorted list.


Paul


More information about the rsync mailing list