Re: question about --link-dest and the rsync protocol

Kevin Korb via rsync <[email protected]> Sat, 11 Jan 2025 22:01:21 -0500
Newsgroups gmane.network.rsync.general
Message-ID <[email protected]>
rsyncd doesn't take unix paths.  You must adapt your --link-dest to 
contend with however the rsycd module is defined in rsyncd.conf.

On 1/11/25 9:52 PM, Anthony LaTorre via rsync wrote:
> Hi all,
> 
> I'm trying to figure out why a script works when using SSH but not
> when using the rsync protocol. When I run the following command:
> 
> rsync -aPh --link-dest=/user/snapshots/rsync_test/last
> /home/user/rsync_test
> [email protected]:/user/snapshots/rsync_test/Jan_11_2025
> 
> it works perfectly, correctly recognizing the link-dest parameter.
> However, when I try to run the same command using the rsync protocol:
> 
> $ rsync -aPh --link-dest=/user/snapshots/rsync_test/last
> /home/user/rsync_test
> rsync://[email protected]/snapshots/user/Jan_11_2025
> Password:
> sending incremental file list
> --link-dest arg does not exist: /user/snapshots/rsync_test/last
> 
> I have tried several permutations of using relative/absolute paths to
> the last file, but nothing seems to work. The only thing slightly
> unusual is the mismatch in versions between rsync. On my client
> machine I have:
> 
> $ rsync --version
> rsync version 3.3.0 protocol version 31
> 
> while on the ReadyNAS I have
> 
> $ rsync --version
> rsync version 3.0.9 protocol version 30
> 
> I have looked over the man page description of --link-dest here:
> https://download.samba.org/pub/rsync/rsync.1#opt--link-dest, but I
> don't see any mention of anything special when using the rsync
> protocol.
> 
> Is there something I'm missing?
> 
> Thanks,
> 
> Tony
> 


-- 
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