INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: [Feature Request] Backup MC Library on a User Set Schedule  (Read 2176 times)

tzr916

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1318
[Feature Request] Backup MC Library on a User Set Schedule
« on: March 17, 2018, 02:42:21 pm »

Please give the end user the ability to setup the Library Auto Backups on a regular schedule, like every X hours + keep X number of backups. This would be a nice feature, especially for your customers using MC for daily Tv Recording  :)


LONG Story:
I have media spread across 6 SATA drives on my Server PC. Needed to do some maintenance on a possible bad M.2 disk, this required me to install a PCIe card with the M.2 disk attached. I performed the maintenance, pulled it back out. Some time during that work, the drive letters changed in Windows and it appears that MC did it's Auto Import thing in the background. Well it didn't take long for me to realize that a whole bunch of library tags and cover art got screwed up. After ensuring the drive letters were back to original, I did a MC Library Restore but... the most recent backup that didn't have the "bad" tags/cover art was 5 days old  ::) I got back everything except ALL Tv recording that occurred in those 5 days had absolutely no valid tags/guide info. I had to manually fill in Series, Channel, Episode, etc for about 15 recorded shows. Major pain.


SOLUTION (since MC Library backups don't happen often enough for me):
I am now backing up the MC Library every 12 hours using Windows Task Scheduler, auto deleting those older than 15 days, then using a third party program to back up the "C:\Users\Me\Documents\JRiver\Media Center 23\Library Backups" and "C:\Users\Me\AppData\Roaming\J River\Media Center 23\Cover Art" folders to a non-OS disk every 24hrs (keeping 6 most recent copies). Overkill  ::) Damn right!
Logged
JRiverMC v32 •Windows 10 Pro 64bit •Defender Exclusions •ṈŘ 3rd party AV
•ASUS TUF gaming WiFi z590 •Thermaltake Toughpower GX2 600W
•i7-11700k @ 3.6GHz~5GHz •32GB PC4-25600 DDR4
•OS on Crucial P5 Plus M.2 PCIe Gen4 •Tv Recordings on SATA 6TB WD Red Pro
•4 OTA & 6 CableCard SiliconDust Tuners
•nVidia RTX2060 •XBR65Z9D •AVRX3700H •Fluance 7.2.2 [FH]
•SMP1000DSPѫeD A3-300[RSS315HE-22] •SPA300DѫYSTSW215[15-PRX8S4]

Vocalpoint

  • Citizen of the Universe
  • *****
  • Posts: 2005
Re: [Feature Request] Backup MC Library on a User Set Schedule
« Reply #1 on: March 19, 2018, 01:28:06 pm »

+1. This should have been in the app from the very start.

VP
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7395
  • The color of Spring...
Re: [Feature Request] Backup MC Library on a User Set Schedule
« Reply #2 on: March 19, 2018, 01:29:06 pm »

Personally, I just do manually library backups every day and/or every time I make changes to my library.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 24.04 LTS Noble Numbat 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | iFi ZEN DAC 3 | Edifier R2000DB Bookshelf Speakers | Audio-Technica ATH-M50x Headphones

tzr916

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1318
Re: [Feature Request] Backup MC Library on a User Set Schedule
« Reply #3 on: March 20, 2018, 08:39:21 am »

If MC is being used as a TV DVR, the Library is changed every time a recording is done and every time new guide data is imported. I've setup task scheduler to back up once at 4pm - after tonight's "to be recorded" is finalized, and once at 4am - after all the shows have finished recording and the new guide data is imported.
Logged
JRiverMC v32 •Windows 10 Pro 64bit •Defender Exclusions •ṈŘ 3rd party AV
•ASUS TUF gaming WiFi z590 •Thermaltake Toughpower GX2 600W
•i7-11700k @ 3.6GHz~5GHz •32GB PC4-25600 DDR4
•OS on Crucial P5 Plus M.2 PCIe Gen4 •Tv Recordings on SATA 6TB WD Red Pro
•4 OTA & 6 CableCard SiliconDust Tuners
•nVidia RTX2060 •XBR65Z9D •AVRX3700H •Fluance 7.2.2 [FH]
•SMP1000DSPѫeD A3-300[RSS315HE-22] •SPA300DѫYSTSW215[15-PRX8S4]

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: [Feature Request] Backup MC Library on a User Set Schedule
« Reply #4 on: March 20, 2018, 08:59:47 am »

You can do this now. This command will initiate a standard, silent Library Backup:
mc23.exe /mcc 20011,1

That uses the regular backup rotation, though if you want to alter it, you could easily script copying the files elsewhere.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

tzr916

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1318
Re: [Feature Request] Backup MC Library on a User Set Schedule
« Reply #5 on: March 20, 2018, 09:13:00 am »

That's exactly what I am doing using windows task scheduler every 12 hours. But why not build it into MC ? Right now the automatic backups are done way too infrequently.
Logged
JRiverMC v32 •Windows 10 Pro 64bit •Defender Exclusions •ṈŘ 3rd party AV
•ASUS TUF gaming WiFi z590 •Thermaltake Toughpower GX2 600W
•i7-11700k @ 3.6GHz~5GHz •32GB PC4-25600 DDR4
•OS on Crucial P5 Plus M.2 PCIe Gen4 •Tv Recordings on SATA 6TB WD Red Pro
•4 OTA & 6 CableCard SiliconDust Tuners
•nVidia RTX2060 •XBR65Z9D •AVRX3700H •Fluance 7.2.2 [FH]
•SMP1000DSPѫeD A3-300[RSS315HE-22] •SPA300DѫYSTSW215[15-PRX8S4]

Vocalpoint

  • Citizen of the Universe
  • *****
  • Posts: 2005
Re: [Feature Request] Backup MC Library on a User Set Schedule
« Reply #6 on: March 20, 2018, 10:04:59 am »

That's exactly what I am doing using windows task scheduler every 12 hours. But why not build it into MC ? Right now the automatic backups are done way too infrequently.

If you have this working in Task Scheduler - why not just up it to run every hour if you feel the backups are too infrequent?

VP
Logged

tzr916

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1318
Re: [Feature Request] Backup MC Library on a User Set Schedule
« Reply #7 on: March 20, 2018, 10:24:39 am »

Ha, that's waaay too frequent for my tastes. I am saying that the backups that MC does in the background are too infrequent and unpredictable - there seems to be no rhyme or reason to them, let alone any regulated schedule.
Logged
JRiverMC v32 •Windows 10 Pro 64bit •Defender Exclusions •ṈŘ 3rd party AV
•ASUS TUF gaming WiFi z590 •Thermaltake Toughpower GX2 600W
•i7-11700k @ 3.6GHz~5GHz •32GB PC4-25600 DDR4
•OS on Crucial P5 Plus M.2 PCIe Gen4 •Tv Recordings on SATA 6TB WD Red Pro
•4 OTA & 6 CableCard SiliconDust Tuners
•nVidia RTX2060 •XBR65Z9D •AVRX3700H •Fluance 7.2.2 [FH]
•SMP1000DSPѫeD A3-300[RSS315HE-22] •SPA300DѫYSTSW215[15-PRX8S4]

RD James

  • Citizen of the Universe
  • *****
  • Posts: 1871
Re: [Feature Request] Backup MC Library on a User Set Schedule
« Reply #8 on: March 20, 2018, 11:08:49 am »

I don't know if customization is required, but the random 2-3 day schedule is too infrequent. Most of the time I've had to restore a backup, it's been days old.
Logged

Vocalpoint

  • Citizen of the Universe
  • *****
  • Posts: 2005
Re: [Feature Request] Backup MC Library on a User Set Schedule
« Reply #9 on: March 20, 2018, 03:32:03 pm »

I don't know if customization is required, but the random 2-3 day schedule is too infrequent. Most of the time I've had to restore a backup, it's been days old.

I totally agree. Same deal with Auto import. There is no logic to it whatsoever. Can never tell when it ran, is going to run or if it's running (or not).

Both of these processes need some TLC. They could even be a part of the same scheduling dialog hint...hint..

VP
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10721
Re: [Feature Request] Backup MC Library on a User Set Schedule
« Reply #10 on: March 20, 2018, 03:48:37 pm »

Auto-Import is not scheduled, it listens to filesystem events and runs on demand when something changes.
Backups are currently created every 2 days I believe, at least thats what my backup folder looks like (unless you restart MC all the time, that can throw off the schedule)
Logged
~ nevcairiel
~ Author of LAV Filters

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3966
Re: [Feature Request] Backup MC Library on a User Set Schedule
« Reply #11 on: March 20, 2018, 03:52:33 pm »

Can never tell when it ran, is going to run or if it's running (or not).
IMV It would be helpful if the existing reporter functionality (which says some of what is going on right now) were replaced/augmented by a user facing log file that just listed the events as they happen and surfaced this in the UI. The existing log is not this as that is a debug log from a user point of view.
Logged

Vocalpoint

  • Citizen of the Universe
  • *****
  • Posts: 2005
Re: [Feature Request] Backup MC Library on a User Set Schedule
« Reply #12 on: March 20, 2018, 04:11:21 pm »

Auto-Import is not scheduled, it listens to filesystem events and runs on demand when something changes.

That may be - but the shortcoming here is the "something changes" part.

I have witnessed countless scenarios where I copy 5 albums to my music share and watch my server copy of MC take anywhere from 2 minutes to 20 minutes to actually pick up these changes.

It would be a lot more useful if I had a option to tell MC that I want Auto Import run everytime something changes instead of taking it's sweet time to do it. I usually have to resort to running Auto Import manually to get the library current.

And of course - this is the same story with backups. 2 days is useless for an active installation with a lot of changes. Again - I resort to doing it manually to make sure I am backed up.

Both of these processes can be improved upon.

VP

Logged
Pages: [1]   Go Up