add Domoticz version number to textfile name
Posted: Thursday 07 April 2016 10:02
Hi, Love Domoticz and I am working on a big system for a campsite. Gone controll >50 rooms and lots of other things.
But I want everything to be backedup if for example a thunderstorm wipes out my rpi/sdcard.
I have domoticz doing database backups, and then I have a tar script making a backup of my entire /home/pi folder for smooth restoration. The rpi also uploads the backups to dropbox for safe keeping.
But I have one problem. I would like to add the domoticz version number into the filename of the backupfile. To easy be able to identify and download the correct version if restoration is needed.
I found that in the History.txt in domoticz folder the first line states the current version like this.
Version 3.4834 (March 2nd 2016)
So I have been trying to take this and add it into the filename but without sucess. So I was thinking maby someone have a solution?
But I want everything to be backedup if for example a thunderstorm wipes out my rpi/sdcard.
I have domoticz doing database backups, and then I have a tar script making a backup of my entire /home/pi folder for smooth restoration. The rpi also uploads the backups to dropbox for safe keeping.
But I have one problem. I would like to add the domoticz version number into the filename of the backupfile. To easy be able to identify and download the correct version if restoration is needed.
I found that in the History.txt in domoticz folder the first line states the current version like this.
Version 3.4834 (March 2nd 2016)
So I have been trying to take this and add it into the filename but without sucess. So I was thinking maby someone have a solution?