home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
Improvement Suggestions
Database Backup & Restore
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Marcusb" data-source="post: 261492" data-attributes="member: 11550"><p>OK, I made a batch file that should back up the MP database using an OSQL command line query.</p><p>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.</p><p></p><p>It's pretty quick and dirty and needs some setting up.</p><p>I'm not home at the moment, so can't test it, but in theory it should work.</p><p>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).</p><p></p><p>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.</p><p>Then change the file name extension from txt to bat (since the forum wont allow me to upload batch files.</p><p></p><p>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.</p><p></p><p>Also, I know I should use "IfExist" before copying or deleting files, but like I said, it's quick and dirty <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Cheers,</p><p>Marcus.</p></blockquote><p></p>
[QUOTE="Marcusb, post: 261492, member: 11550"] 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. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Database Backup & Restore
Contact us
RSS
Top
Bottom