Skip to content

Run complete Domoticz from a RAM disk because database logging on a RAM disk is not supported anymore. (Domoticz start copies from uSD to RAM disk, stop copies back to uSD)

Notifications You must be signed in to change notification settings

JackV2020/Domoticz-Run-From-RAM-Disk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Raspberry Pi complete Domoticz from a ram drive

Domoticz has a very IO intensive database and in the past it was possible to put the logging of that database on a ram drive.

Nowadays that is not supported anymore so you need to run it from your uSD card and wear out that card.

Or.....you run everything from a ram drive.

Details are described in 'domoticz ramdrive.txt'

The idea behind is that when your Domoticz is NOT running :

  • there is a backup of your domoticz in a seperate backup folder
  • there is a ram drive mounted on your domoticz folder

The /etc/init.d/domoticz when used to start :

  • copies the content from the backup folder to the ram drive
  • starts domoticz

The /etc/init.d/domoticz when used to stop :

  • stops domoticz
  • copies the content from the ram drive to the backup folder

The /etc/init.d/domoticz when used to restart :

  • uses the stop and start so......
  • stops domoticz
  • copies the content from the ram drive to the backup folder
  • copies the content from the backup folder to the ram drive
  • starts domoticz

To save data you may want to create a crontab job to restart your Domoticz every now and then.

About

Run complete Domoticz from a RAM disk because database logging on a RAM disk is not supported anymore. (Domoticz start copies from uSD to RAM disk, stop copies back to uSD)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published