Autor Thema: Factory reset FHEM  (Gelesen 239 mal)

Offline kennybl

  • New Member
  • *
  • Beiträge: 35
Factory reset FHEM
« am: 11 Oktober 2020, 17:19:29 »
Hello,

How can I factory reset FHEM to start configuring it as new?

Thanks a lot!

Offline Otto123

  • Hero Member
  • *****
  • Beiträge: 16594
  • schon mal restore trainiert?
    • Otto's Technik Blog
Antw:Factory reset FHEM
« Antwort #1 am: 11 Oktober 2020, 17:21:13 »
Hi,

wget https://svn.fhem.de/fhem/trunk/fhem/fhem.cfg
sudo systemctl stop fhem
# make a copy
sudo cp -R /opt/fhem/ ~/Sicherung/
# from here all user data will delete or reset
sudo cp fhem.cfg /opt/fhem/
sudo chown fhem:dialout /opt/fhem/fhem.cfg
sudo rm -R /opt/fhem/log/*
sudo rm -R /opt/fhem/backup/*
sudo rm -R /opt/fhem/restoreDir/*
sudo rm /opt/fhem/FHEM/controls_fhem.txt
sudo rm /opt/fhem/FHEM/99_myUtils.pm
# FHEM start new
sudo systemctl start fhem
Otto
« Letzte Änderung: 11 Oktober 2020, 17:25:02 von Otto123 »
Viele Grüße aus Leipzig
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7490+7412,WRT1900ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266

Offline kennybl

  • New Member
  • *
  • Beiträge: 35
Antw:Factory reset FHEM
« Antwort #2 am: 11 Oktober 2020, 17:24:07 »
Thanks a lot!

 

decade-submarginal