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
Upgrade from 3.0 to Nightly Build
Re: Upgrade from 3.0 to Nightly Build
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).
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).
-
- Site Admin
- Posts: 313
- Joined: Sun Nov 30, 2014 2:16 pm
Re: Upgrade from 3.0 to Nightly Build
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:
ONH will automatically download the latest nightly build, upgrade the server and restart it. You do not need to restart the Raspberry Pi afterwards.
Code: Select all
sudo nethome upgrade-nightly
Re: Upgrade from 3.0 to Nightly Build
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:
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