2019-12-27, 10:15 PM
I have been working at automating a backup of the database and config files. Here's what I think I know, hopefully someone will be able to tell me how accurate this is:
It works well, but I would like to be able to determine if a recording is in progress, or about to start in the next few minutes from within the script. If so, I'd just bug out of the script and let it run the next day. It's scheduled for the wee hours, so while it's possible something might be recording, it would be rare, and I'm OK with not backing it up every day.
This must be possible, since the System plug-in can do it. Can anyone point me in the right direction?
Thanks,
Mike
.
- The Nrecord.exe service must be stopped to copy the database file.
- User must be an admin to stop/start the service.
- NextPvr runs as a user that is not an admin. I base this on trying and failing to stop the service from PostUpdateEpg.bat
It works well, but I would like to be able to determine if a recording is in progress, or about to start in the next few minutes from within the script. If so, I'd just bug out of the script and let it run the next day. It's scheduled for the wee hours, so while it's possible something might be recording, it would be rare, and I'm OK with not backing it up every day.
This must be possible, since the System plug-in can do it. Can anyone point me in the right direction?
Thanks,
Mike
.