2
0
mirror of https://github.com/schnidrig/openhab-ansible synced 2026-01-12 00:48:46 +01:00

upgrade to openhab 2.4; debian stretch

This commit is contained in:
Christian Schnidrig
2019-01-03 15:42:07 +01:00
parent 9231e75be7
commit d4dcdc7c0d
15 changed files with 119 additions and 36 deletions

View File

@@ -1,11 +1,11 @@
# stop openhab instance (here: systemd service)
sudo systemctl stop openhab2.service
#sudo systemctl stop openhab2.service
# backup current installation with settings
TIMESTAMP=`date +%Y%m%d_%H%M%S`;
mkdir ~/openhab2-backup-$TIMESTAMP
cp -arv /etc/openhab2 ~/openhab2-backup-$TIMESTAMP/conf
cp -arv /var/lib/openhab2 ~/openhab2-backup-$TIMESTAMP/userdata
TIMESTAMP=`date +%Y%m%d`;
tar -C / -czf /tmp/openhab2-backup-$TIMESTAMP.tgz etc/openhab2 var/lib/openhab2
# restart openhab instance
sudo systemctl start openhab2.service
echo "Now save the file /tmp/openhab2-backup-$TIMESTAMP.tgz"
# start openhab instance
#sudo systemctl start openhab2.service