<div dir="ltr"><div class="gmail_default" style="font-size:large">I may be missing your intent, but why not set up different rsyncd modules for the different paths?</div><div class="gmail_default" style="font-size:large">Or are you saying that the paths change dynamically all the time?  In which case set a cron or triggered script to change the symlinks to the paths..?</div><div class="gmail_default" style="font-size:large">H</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 5, 2022 at 5:08 AM Glen Huang via rsync <<a href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I'm trying to set up a module for rsyncd where it offers multiple<br>
paths like /var/www, /etc/app, etc to be accessed by clients.<br>
<br>
However, from rsyncd.conf(5) it seems a module can point to only one<br>
path. So it seems I should use something like a bind mount, and mount<br>
paths to /mnt/{var/www,etc/app}, then point the module to /mnt.<br>
However, the paths that should be available in the module are<br>
dynamically configured. So I can't make the root user mount them<br>
beforehand. My only option seems to be mounting them in the "early<br>
exec" hook. However, this seems to mean the module has to have the<br>
root's uid, which I'd really like to avoid.<br>
<br>
So I came to a dead end. I wonder if a module could somehow directly<br>
offer multiple paths?<br>
<br>
Would be grateful if someone could shed some light.<br>
<br>
Thanks.<br>
<br>
-- <br>
Please use reply-all for most replies to avoid omitting the mailing list.<br>
To unsubscribe or change options: <a href="https://lists.samba.org/mailman/listinfo/rsync" rel="noreferrer" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a><br>
Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" rel="noreferrer" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div>Harry Mangalam</div></div></div></div></div></div></div></div>