On Thu 16 Jul 2009, vven...@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 -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html