Page 1 of 1

Upgrade from 3.0 to Nightly Build

Posted: Sat Mar 10, 2018 9:31 am
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

Re: Upgrade from 3.0 to Nightly Build

Posted: Sat Mar 10, 2018 12:25 pm
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).

Re: Upgrade from 3.0 to Nightly Build

Posted: Sat Mar 10, 2018 2:15 pm
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.

Re: Upgrade from 3.0 to Nightly Build

Posted: Sat Mar 10, 2018 6:37 pm
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