This works for me.... rsync -ruva --delete -e "ssh -l root -i /root/.ssh/id_rsa" [email protected]:/backups/ $FILELOCATION/dmz/
On Thursday, 11 June 2020 07:17:02 UTC+10, Jose wrote: > > Hi, > > remote hosting is updated with new files using RSYNC from WeeWX, thank > you, but if I am having some problems when I try to do it with > > rsync -a --delete -e ssh /home/pi/backup.tar.gz [email protected]:/www/ > backup/ &> /dev/null > > this command worked fine in the past but not now. When I run this command > nothing happens, no updating remote hosting and even no error messages. so > RSYNC with WeeWX is working fine but RSYNC in command line don't. > > > > > > > El miércoles, 10 de junio de 2020, 14:00:13 (UTC+2), gjr80 escribió: >> >> Hi, >> >> By default the WeeWX daemon runs as root, so unless you have changed this >> root needs passwordless ssh access to the server to which you wish to sync >> your files. Did you give root passwordless ssh access or was it some other >> account? If this is the problem you have two choices; either change WeeWX >> to run as the user you have given passwordless ssh access or keep WeeWX >> running as root and give root passwordless ssh access. >> >> The wiki article ‘Run WeeWX as a non-root user’ ( >> https://github.com/weewx/weewx/wiki/Run-as-a-non-root-user) provides >> instructions on how to run WeeWX as a user other than root. >> >> Gary > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c26d1656-bf66-40ba-96cd-cb4b6fcaabfdo%40googlegroups.com.
