| Sponsored Ads |
|
|||||||
| Improvement Suggestions You have an idea how MediaPortal could be improved? Post it in here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#2 (permalink) |
|
Super Moderator
Join Date: Feb 2005
Location: Melbourne
Posts: 1,833
Thanks: 51
Thanked 21 Times in 21 Posts
Country:
|
OK, I made a batch file that should back up the MP database using an OSQL command line query.
Just set it to run via a sceduled task once a day and it will back up the database and manage the last five days worth of backups. It's pretty quick and dirty and needs some setting up. I'm not home at the moment, so can't test it, but in theory it should work. I'll fly home tomorrow so should be able to test it myself and post the matching restore files too (home is a long way away). Basically just open the attsached file and make sure you change the file location variables to match what you have and create any required sub folders. Then change the file name extension from txt to bat (since the forum wont allow me to upload batch files. I'll be out of contact for the next day or two, then can make any tweaks as needed. I tested it with a different SQL express database that I have here and it works well, so any issues may just be with the database name, password or file structure, since I'm going from memory. Also, I know I should use "IfExist" before copying or deleting files, but like I said, it's quick and dirty ![]() Cheers, Marcus. |
|
|
|
|
|
#4 (permalink) |
|
Super Moderator
Join Date: Feb 2005
Location: Melbourne
Posts: 1,833
Thanks: 51
Thanked 21 Times in 21 Posts
Country:
|
the thing is that SQL express doesn't have any method to automate backups.
if you want a nightly back up or something similar then you need some type of script to run as a sceduled task. |
|
|
|
|
|
#5 (permalink) |
|
MP Donator
![]() |
Hi, you can take the one BAT file and the other SQL file the enable scheduled SQL database backups.
Just change the path, username, password and the pc name on both files. After this you can add backup.bat to the windows scheduler to auomate backups greetz MoPhat |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Backup Mediaportal -> Restore Mediaportal other pc | jin | General Support | 2 | 2008-04-05 15:48 |
| Backup Mediaportal -> Restore Mediaportal other pc | jin | Installation, configuration support | 0 | 2008-04-04 13:12 |
| Creat&Backup&restore audio playlist | boombastic | Listen Music | 1 | 2007-12-24 17:37 |
| configuration: backup/restore TV-Channels | infinityloop | 0.2.0.0 Release Candidate 4 | 16 | 2006-07-01 12:02 |