kweller Wrote: > Having just had an 'accident' I've restored my SlimServer program > directory but am having to re-scan my music tracks to rebuild the > database. The reason for that is that Slimserver runs 24/7 and > SecondCopy (a Windows back-up program) says it can't back-up the > database file as it in use. > > Are there command lines I can use to tell SlimServer to shut down and > restart that I can set up in Windows Scheduler? If I can do that I can > > schedule the back-up as well. > > SecondCopy does actually have an option to try to ignore whether a file > > is in use but when I set that SlimServer stops whenever the back-up > kicks in and doesn't restart. I would simply make a copy of the database file (assuming you're using SQLite), then backup the copy. Use a batch file and schedule this copy operation to occur a few minutes before the backup is scheduled to happen. If you schedule your backups in the middle of the night when Slim Server isn't being used, there's little chance that the copy will be in such a state that it can't be used for a restore. If you're using MySQL, you'll need to do a database dump and then backup the dump.
> (Be nice if Slimserver contained an option to backup the database to a > specified directory at a specified time) I agree. But since program settings aren't kept in the database (yet) you can just run a rescan and you're back to where you began. You shouldn't be having catastrophic database losses so often that having to do a rescan should be a major inconvenience. If/when server and player (and user) settings are kept in the database, backups will be much more important. A nice user interface for backups and restores, and scheduled backups will be critical for the casual user who can't be expected to be doing MySQL (SS v6.5) administration. -- JJZolx Jim ------------------------------------------------------------------------ JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10 View this thread: http://forums.slimdevices.com/showthread.php?t=19857 _______________________________________________ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss