Restore on new windows installation

An evolving, supported alternative to Rovi
Forum rules
★ Download the latest EPG123 here: https://garyan2.github.io/ <> Setup guide here: https://garyan2.github.io/install.html
Space

Posts: 2840
Joined: Sun Jun 02, 2013 9:44 pm
Location:

HTPC Specs: Show details

#41

Post by Space » Thu Aug 12, 2021 12:14 am

The "[backup]" button only takes the existing backups and zips them?

Maybe it should create new backups and then zip them? Most likely someone is going to use this to save the backups after making some changes, and you would want the latest backups. If the "every 5 days" cleanup/backup hasn't run since the changes, then they won't be saving the latest backups which is not very intuitive...

User avatar
garyan2

Posts: 7480
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#42

Post by garyan2 » Thu Aug 12, 2021 12:15 am

It does, I simplified. You hit the backup button, it runs -b, and then when that completes it zips the new files.

Sent from my SM-G965U using Tapatalk

- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

technodevotee

Posts: 963
Joined: Thu Sep 10, 2015 4:10 pm
Location: West Midlands

HTPC Specs: Show details

#43

Post by technodevotee » Thu Aug 12, 2021 6:19 am

garyan2 wrote: Wed Aug 11, 2021 3:08 pm For 1.6.7.2, there will be a log entry during the client run for "Successfully forced a Media Center database configuration backup. Exit code: 0". This is when the WMC backup is done. For the next release, the WMC backup will be wrapped in with the garbage cleanup run and will not be a separate log entry.
Are you saying that the backup won't run if you use the -nogc option like I do?

For some reason, I haven't been able to allow your software to run a garbage collection when RecordingBroker is running and had to create a batch file that stops RecordingBroker, runs the cleanup then starts RecordingBroker. I don't think it is anything to do with EPG123, just the fact that EPG123 automated the process when I used to run it manually when I felt it was needed.

I guess I could add a command to run a backup in there if needed.

User avatar
garyan2

Posts: 7480
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#44

Post by garyan2 » Thu Aug 12, 2021 6:14 pm

Correct. The forced WMC backup will not run if you use -nogc option for the client. For manually controlling the garbage collection and forcing the backup, just change the command to "mcupdate.exe -b -dbgc -updatetrigger"

Code: Select all

-b Backup
-dbgc Garbage collection
-updatetrigger Bypasses trying to download package updates from MS
This should probably be now referred to as the client maintenance.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

Space

Posts: 2840
Joined: Sun Jun 02, 2013 9:44 pm
Location:

HTPC Specs: Show details

#45

Post by Space » Fri Aug 13, 2021 12:44 am

I removed the -updateTrigger from my stand-alone backup and garbage collection due to this thread, should I add it back?

It's my understanding that with the -updateTrigger option it will no longer try to download packages (which no longer exist) but it will also not initiate a reindex.

Isn't a reindex needed after a garbage collection (GC)? I assume the GC will delete some stuff that has been indexed, so reindexing seems appropriate.
Last edited by Space on Fri Aug 13, 2021 1:12 am, edited 1 time in total.

User avatar
garyan2

Posts: 7480
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#46

Post by garyan2 » Fri Aug 13, 2021 12:52 am

You are correct. I had forgotten about that. I'll attribute it to old age.

EDIT: I will note that when the client imports the mxf file, it will kick off the reindex then. I think it is fine to leave it out.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

technodevotee

Posts: 963
Joined: Thu Sep 10, 2015 4:10 pm
Location: West Midlands

HTPC Specs: Show details

#47

Post by technodevotee » Sat Aug 14, 2021 11:41 am

Turns out that my script doesn't work very well even when I enable the Scheduled Task that I created to run it periodically. Image

GC has been running for a couple of days now.....

When it kicked off mcupdate.exe -dbgc, it didn't wait for it to finish completely so Recording Broker was being restarted before the Garbage Collection was finished.

To get round that, I've created a (rather crude) vbs script that monitors the process list and shuts down the Recording Broker service when mcupdate is running, then starts it when it is no longer active.

This should allow me to run the EPG123 update with Garbage Collection enabled.

We'll see how it goes.

Update: GC eventually finished and the database shrank from 1.2GB to 252MB. I reckon it was worth the wait to have hopefully retained my history.

User avatar
garyan2

Posts: 7480
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#48

Post by garyan2 » Sat Aug 14, 2021 3:55 pm

Though you now have a vbs script, in the batch you should use "START /WAIT c:\windows\ehome\mcudpate.exe -dbgc" to block the batch file from proceeding until the dbgc has completed.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

technodevotee

Posts: 963
Joined: Thu Sep 10, 2015 4:10 pm
Location: West Midlands

HTPC Specs: Show details

#49

Post by technodevotee » Sat Aug 14, 2021 9:23 pm

Yeah, I tried that but as I'm sure you aware, mcupdate restarts (with a new PID) quite a few times when the DB is heavily fragmented or contains a lot of outdated records and the batch file continues as soon as that happens.

Post Reply