ioBroker – automatisches Backup und Restore
Backup Script
#! /bin/bash cd /opt/iobroker/ echo "_________ erst mal backup" iobroker backup echo "_________ iobroker stop" sudo ./iobroker stop echo "_________ iobroker update" sudo ./iobroker update --yes echo "_________ iobroker upgrade self" sudo ./iobroker upgrade self echo "_________ iobroker upgrade" sudo ./iobroker upgrade --yes echo "_________ iobroker start" sudo ./iobroker start echo "_________ Backup auf Server" echo "backup in cloud sichern" rsync -azve ssh /opt/iobroker/backups/* [email protected]:/opt/backup/ioBroker/$HOSTNAME/
Restore
# restore cd /opt/iobroker/backups/ # letztes Backup wiederherstellen sudo iobroker restore 0 #oder bestimmte Version sudo iobroker restore 2021_02_06-15_01_34_backupiobroker.tar.gz
Hinterlasse einen Kommentar
An der Diskussion beteiligen?Hinterlasse uns deinen Kommentar!