Re: [weewx-user] Re: RSync using NFS

2023-03-05 Thread Mark Fraser

On 04/03/2023 21:13, paul.ba...@gmail.com wrote:


Hello,
I don't understand why you want to use rsync over NFS.
NFS juste does all the work for you.
Once the remote file system is  mounted, usually at boot or login 
depending on the setup, there is no more distinction between the local 
files and the remote ones.

So, in weewx.conf
   - disable rsync
   - set HTML_ROOT = 
something like
         HTML_ROOT = /www/html/weewx
NFS will know where /www/ is installed, of course this is defined in the 
NFS setup.

Regards,     Paul
PS Remember, in the mid 80's  SUN said
            The network IS the computer


Thanks Paul,
I'd forgotten I'd set up NFS to share the pages I wanted to sync.

The reason I'm doing this is originally I had weewx with weewx-sdr 
running outside on a Pi fitted inside an old security camera that was 
capturing data using a cheap DVB-T USB stick. This would occasionally 
stop receiving data from one sensor so I upgraded to a Nooelec RTL-SDR 
v5. While I was finding time to replace the DVB-T stick I ran weewx on 
my server with the Nooelec.


This was working, but I didn't want to open up port 80 on the server to 
the outside world. So I was copying the data over to the Raspberry Pi 
which did have an outside connection.


--
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/56720047-a76c-2831-45ca-b83e727e2360%40gmail.com.


[weewx-user] Re: RSync using NFS

2023-03-04 Thread paul.ba...@gmail.com

Hello,
I don't understand why you want to use rsync over NFS. 
NFS juste does all the work for you. 
Once the remote file system is  mounted, usually at boot or login depending 
on the setup, there is no more distinction between the local files and the 
remote ones. 
So, in weewx.conf
  - disable rsync
  - set HTML_ROOT = 
something like 
HTML_ROOT = /www/html/weewx
NFS will know where /www/ is installed, of course this is defined in the 
NFS setup.
Regards, Paul
PS Remember, in the mid 80's  SUN said
   The network IS the computer
 
Le Thursday, March 2, 2023 à 6:37:45 PM UTC+1, vince a écrit :

> Set your server to 127.0.0.1 and rsync-over-ssh to yourself.   Just follow 
> the same procedure you'd do for setting up a remote system.  You need a 
> /root/.ssh/config file and the public key you use should be in 
> /root/.ssh/authorized_keys on the weewx system.
>
>
> On Thursday, March 2, 2023 at 12:24:38 AM UTC-8 Mark Fraser wrote:
>
> I have set up file sharing between 2 devices using NFS so that I don't 
> have to store passwords. Is it possible to have weewx rsync over this 
> connection as it seems to want a server name and port as part of the 
> configuration?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f6f4e2f4-9e36-4e57-93f4-3a7bb1b78029n%40googlegroups.com.


[weewx-user] Re: RSync using NFS

2023-03-02 Thread vince
Set your server to 127.0.0.1 and rsync-over-ssh to yourself.   Just follow 
the same procedure you'd do for setting up a remote system.  You need a 
/root/.ssh/config file and the public key you use should be in 
/root/.ssh/authorized_keys on the weewx system.


On Thursday, March 2, 2023 at 12:24:38 AM UTC-8 Mark Fraser wrote:

I have set up file sharing between 2 devices using NFS so that I don't have 
to store passwords. Is it possible to have weewx rsync over this connection 
as it seems to want a server name and port as part of the configuration?

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/7ca65d55-32cf-4a64-aa06-bb03a57db386n%40googlegroups.com.


[weewx-user] Re: RSync using NFS

2023-03-02 Thread cric...@pobox.com
Well...not exactly.  I didn't look to see what weewx does with the empty 
server in the config, but either way rsync still works over ssh, which
isn't nfs.  Just straight using nfs, you soft link could link between your 
weewx directory and your destination on the other machine.
Or you can set up passwordless ssh so that rsync works.  ssh uses keys, and 
at least one (.pub) needs to be on the remote end.

What problem are you trying to solve?  Some more clear details would get 
you a better answer.

Chris

On Thursday, March 2, 2023 at 1:24:38 AM UTC-7 Mark Fraser wrote:

> I have set up file sharing between 2 devices using NFS so that I don't 
> have to store passwords. Is it possible to have weewx rsync over this 
> connection as it seems to want a server name and port as part of the 
> configuration?
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f369fba1-0abb-4955-a3a0-6f3946db6944n%40googlegroups.com.