|
Re: Scheduled Tasks
There is, depending on the OS. With most it will be in the control panel, scheduled tasks. Once in there, just create the event you need and have it run. I would ensure that your .bat file runs without error prior to scheduling it.
I did something similar using rsync for windows, and it replicated several shared directories from one server to a backup server. The client didn't want to go the route of a clustered server with shared storage so I came up with this way. There was also a log file created that allowed me to see what files were and weren't copied. I think it worked better than xcopy because xcopy will do a full copy all the time, whereas rsync will sync all the first time and then only changed thereafter. That effectively reduces the time for the backup. Heck, I even had the .bat file shutdown their mssql service running for their Act! program, had it backup the database directories, and restart the service. Has run flawless for more than a year.
__________________
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
The inherent vice of capitalism is the uneven division of blessings, while the inherent virtue of socialism is the equal division of misery.
Last edited by djaburg; 01-09-2009 at 07:38 PM.
|