Hi Domoticans
To monitor Domoticz, I use Monit. This works fine. Now I want to use RaspiBackup to backup the entire SD-Card of my Raspberry. During this backup I have to stop Domoticz and start it again when the backup is finished. However, Monit starts Domoticz again before the backup is finished.
I want to stop monitoring Domoticz, stop Domoticz
Start monitoring the backup process by Monit.
When the backup is finished successful stop monitoring raspibackup
Start Domoticz again and start the monitoring of domoticz.
Who can help how to set this up.
Monitor Backup process
Moderators: leecollings, remb0
- McMelloW
- Posts: 434
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
Monitor Backup process
Greetings McMelloW
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Monitor Backup process
Assuming you domoticz process is named domoticz in monit and your backup process is named backupMcMelloW wrote: ↑Friday 12 February 2021 14:12 To monitor Domoticz, I use Monit. This works fine. Now I want to use RaspiBackup to backup the entire SD-Card of my Raspberry. During this backup I have to stop Domoticz and start it again when the backup is finished. However, Monit starts Domoticz again before the backup is finished.
Code: Select all
sudo monit unmonitor domoticz
sudo monit stop domoticz
sudo monit start backup
sudo monit monitor backup
sudo monit unmonitor backup
sudo monit stop backup # maybe not needed as it finished ?
sudo monit start domoticz
sudo monit monitor domoticz
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
- McMelloW
- Posts: 434
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
Re: Monitor Backup process
Thanks for your fast reply. Is it that easy? I must have overlooked it in the documentation.waaren wrote: ↑Friday 12 February 2021 16:18Assuming you domoticz process is named domoticz in monit and your backup process is named backupMcMelloW wrote: ↑Friday 12 February 2021 14:12 To monitor Domoticz, I use Monit. This works fine. Now I want to use RaspiBackup to backup the entire SD-Card of my Raspberry. During this backup I have to stop Domoticz and start it again when the backup is finished. However, Monit starts Domoticz again before the backup is finished.
Code: Select all
sudo monit unmonitor domoticz sudo monit stop domoticz sudo monit start backup sudo monit monitor backup sudo monit unmonitor backup sudo monit stop backup # maybe not needed as it finished ? sudo monit start domoticz sudo monit monitor domoticz
Greetings McMelloW
- HansieNL
- Posts: 964
- Joined: Monday 28 September 2015 15:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Monitor Backup process
You can select Domoticz and Monit services to stop during backup and enable them after backup. You can do that in the RaspiBackup menu.McMelloW wrote: ↑Friday 12 February 2021 14:12 Hi Domoticans
To monitor Domoticz, I use Monit. This works fine. Now I want to use RaspiBackup to backup the entire SD-Card of my Raspberry. During this backup I have to stop Domoticz and start it again when the backup is finished. However, Monit starts Domoticz again before the backup is finished.
I want to stop monitoring Domoticz, stop Domoticz
Start monitoring the backup process by Monit.
When the backup is finished successful stop monitoring raspibackup
Start Domoticz again and start the monitoring of domoticz.
Who can help how to set this up.
Blah blah blah
- McMelloW
- Posts: 434
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
Re: Monitor Backup process
Yes, that is what I did so far.
I want to do a regular unattended backup at 03:00. I want to monitor the raspiBackup.sh and be sure it all went OK.
Greetings McMelloW
-
- Posts: 49
- Joined: Tuesday 17 January 2017 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Contact:
Re: Monitor Backup process
Is it crucial to stop Domoticz during live backup?
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Monitor Backup process
It depends on the tool / commands used. If you use the sqlite3 .backup 'backup filename' command or the domoticz internal backup, you don't have to stop domoticz.
When using tools like cp, rsync or similar you should.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Who is online
Users browsing this forum: Google [Bot] and 1 guest