Jump to content

Recommended Posts

Posted

Hopefully someone already has this or doesn't mind creating me a script, as scripts are just not my thing.

 

Need the script to run as a scheduled task and take a backup of my Solus3 database. Would be handy if it could keep the last 3 versions in the folder and delete older backups, but if needed it can just save a single copy over itself and I can worry about the versions later.

 

Thanks in advance :-)

Posted

In Powershell we have the following as part of our backup task, but you can do similar via batch file

 

$BackupPath = "F:\Backups"

$SAPassword = "Blah"

$DBServer = "server\instance"

$DBAttach = "d:\program files\microsoft sql server\mssql12.sims2014\mssql\binn\DbAttach.exe"

 

&$DBAttach /BACKUP /AUTO /SERVER=$DBServer /DATABASE=Solus3_deployment_server /USER=sa /PASSWORD=$SAPassword /PATH=$BackupPath\SOLUS.BAK

  • Thanks 1
Posted (edited)

Have you checked the one that comes with SIMs? There's a default batch file that's normally setup already that does a 5 day backup cycle including automatic zipping etc of the files (it does the SIMs database too as well as FMS/Solus etc but could always make another copy if you wanted a seperate one) it should be called SIMSDailyBackup.bat on the server (or at least it's normally setup with the original installs etc)

 

Steve

Edited by Steve21
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...