question about --link-dest and the rsync protocol
Anthony LaTorre
tlatorre9 at gmail.com
Sun Jan 12 03:23:53 UTC 2025
Hi Kevin,
Thanks for your quick response. The rsyncd.conf file looks like:
charset = utf-8
[user]
path = /c/user
comment = ""
use chroot = true
uid = root
gid = root
read only = false
auth users = admin
I'm still confused about how to specify the path. The actual UNIX path is:
/c/user/snapshots/rsync_test/last
I've tried:
--link-dest=snapshots/rsync_test/last
--link-dest=./snapshots/rsync_test/last
--link-dest=../last
but none seem to work.
Thanks,
Tony
On Sat, Jan 11, 2025 at 9:02 PM Kevin Korb via rsync
<rsync at lists.samba.org> wrote:
>
> 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
> > root at readynas.internal:/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://admin@readynas.internal/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
More information about the rsync
mailing list