Script to automate backing up Autodesk Vault 2008
By peter.stilgoe
Here is the script I use to backup our Vault 2008 server, I run this as a scheduled task batch file on our SBS 2003 server.
Note the -S switch to run the backup in silent mode so you dont get irritating ‘OK’ pop up windows etc. -VP is where you enter your password. Obviously just change the paths & username / password to match your Vault setup.
REM: Cycling the SQL server
NET STOP MSSQL$AUTODESKVAULT
NET START MSSQL$AUTODESKVAULT
::+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
:: Delete “B” and Cascade “A” backup subdirectories
::+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
RMDIR /Q /S “C:\Vault Backups\B”
MOVE /Y “C:\Vault Backups\A” “C:\Vault Backups\B”
::+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
:: Start the backup process
::+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
MKDIR “C:\Vault Backups\A\”
“C:\Program Files\Autodesk\Data Management Server 2008\ADMS Console\Connectivity.ADMSConsole.exe” -Obackup -B”C:\Vault Backups\A” -VUadministrator -VP -VAL -S
::+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
:: Defragment the Database
::+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
“C:\Program Files\Autodesk\Data Management Server 2008\ADMS Console\Connectivity.ADMSConsole.exe” -Odefragment -NVault -VUadministrator -VP -S
More From pstilgoe



November 8th, 2007
