Upgrade from 3.0 to Nightly Build

Installation of OpenNethome Server and drivers
Post Reply
perjarle
Posts: 32
Joined: Wed Aug 03, 2016 8:08 am

Upgrade from 3.0 to Nightly Build

Post by perjarle »

Hi
I have the 3.0 installed on rpi.
What is the easiest way to upgrade it to nightly build?

Can I just download the nightly build and run the install script, or will that overwrite my configuration?

/PJ
Don MC
Posts: 31
Joined: Mon Nov 16, 2015 7:40 am

Re: Upgrade from 3.0 to Nightly Build

Post by Don MC »

I always run this on the R-Pi:
sudo ./upgrade_nethome_nightly.sh
(just type it in and press enter)

And after that's finished, just to be sure:
sudo shutdown -r now


Downloads and installs the nightly build. Does not overwrite any settings.
But one is wise to backup at least the config file before trying (etc/opt/nethome/config.xml).
stefangsbb
Site Admin
Posts: 313
Joined: Sun Nov 30, 2014 2:16 pm

Re: Upgrade from 3.0 to Nightly Build

Post by stefangsbb »

The easiest way to upgrade to the latest nightly build is actually to let the server do it! There is a built in upgrade feature in ONH in the raspberry pi release. If you from the command prompt type:

Code: Select all

sudo nethome upgrade-nightly
ONH will automatically download the latest nightly build, upgrade the server and restart it. You do not need to restart the Raspberry Pi afterwards.
Don MC
Posts: 31
Joined: Mon Nov 16, 2015 7:40 am

Re: Upgrade from 3.0 to Nightly Build

Post by Don MC »

Oh, so there is a slightly simpler command?
But the one I used above still works.

The hardcore user will create a timer in ONH that will run the command ;)
I have a timer in ONH that runs a script every night that backs up key parts of ONH to an external drive (using rsync).

The script:

Code: Select all

#!/bin/sh
rsync -avP --delete --log-file=/PATH/TO/NAS/NH_dailybackup_automatic.txt /opt/nethome/ /PATH/TO/NAS/Bak/opt/nethome
rsync -avP --delete --log-file=/PATH/TO/NAS/NH_dailybackup_automatic.txt /etc/opt/nethome/ /PATH/TO/NAS/Bak/etc/opt/nethome
rsync -avP --delete --log-file=/PATH/TO/NAS/NH_dailybackup_automatic.txt /var/log/nethome/ /PATH/TO/NAS/Bak/var/log/nethome
exit 0
Post Reply