Making a .bat file to run by weekly for a backups
Posted on 2006-05-25
I would like to create an automatic batch file that run every 2 weeks it's a "BlackBerryDbBackup.exe" application for backing up a Blackberry server database and then transfer the ".bak" to an network shared folder and then "Veritas" would back it up again on tape.
Can I also have in the .bat file a “delete previous file” when running?...
The problem is that the backup file created doses not have the same name once the utility that does the backup run’s.
If the two weeks automatic back up can not be integrated in the .bat file, i can use the schedule task to run every two weeks as well.
C:\Program Files\Research In Motion\BlackBerry Enterprise Server\Utility> BlackBerryDbBackup -d BESMgmt -f C:\DB_backup_folder –E <-- this currently works fine in .dos (CMD)... How ever it's manual and back's it up on the "C:\" locally.. i want it to copy it to a share drive on an other server ex: \\server\shared and if possible override or delete the previous .bak on the same token.
I hope this was well detailed any help would be great.