Backing up vault data is essential. Autodesk recommends that you back up your Vault using the following methods.
Back Up Your Vault
Use the supplied backup-restore utility to back up your Vault data.
Use the server console to back up all data necessary to restore a server if a failure occurs. When you back up the server, all users are blocked from accessing the system. In addition, server console backs up or restores all vaults on the server. There is no way to select individual vaults to back up or restore.
Develop a Backup Schedule
The next step is to automate the process. Two common methods are:
- Use the Windows Task Scheduler. This process uses the backup tools included with the server console as part of a standard Windows batch file.
- Include the backup as part of a tape backup set. This process uses a tape back up system to back up the vault directly or to use a method like the Windows Task Scheduler.
With the server console command line options, you can create a script to automate the backup process. The following script is intended for a default Autodesk Vault server installation. Edit the backup paths and installation paths as needed.
The preferred and most reliable method for backing up a vault is to integrate the server console backup tools into your tape backup plan.
Note: The following script is for performing full backups ONLY. For more command line options or to create a script for performing incremental backups, see the data management server console Help.
Automate Backup Using Microsoft Windows Task Scheduler
- Create a text file called Backup.txt.
- Insert the following text:
@ECHO OFFREM DELETE B AND CASCADE A BACKUP SUBDIRECTORIESRMDIR /Q /S "C:\Backup\Vault\B"REN "C:\Backup\Vault\A" "B"REM CREATE A NEW DIRECTORY FOR THE BACKUPMKDIR "C:\Backup\Vault\A\"REM START THE BACKUP PROCESS (THIS IS ONE LINE OF TEXT)"C:\Program Files\Autodesk\Vault Server 20xx\ADMS Console\Connectivity.ADMSConsole.exe" -Obackup -B"C:\Backup\Vault\A" -VUadministrator -VP[YourPassword] -S
- Change the name of the text file to
Backup.bat to convert it to a batch file.
Note: When backing up a multi-site environment, back up locally on the primary server.
Create Tape Backups
There are different ways to use a tape backup system to back up a vault. We recommend integrating the Server Console backup tools into your tape backup plan. Many systems allow you to run a script before and after the tape job executes. To back up a vault using a tape backup system, use the following scripts before and after the job runs.
Note: We do not recommend using backup software to back up the SQL database and file store directly. This method increases the difficulty of migrating to a new release of Autodesk Vault server or restoring a vault on a new machine. In addition, never back up the SQL Server using the "live" backup plug-ins that are available for major tape backup systems. Ensure the file store and SQL data are perfectly in sync with each other. Failure to do so can render your data unusable.
- Run the following script before your tape backup job starts: @ECHO OFF
- REM THIS WILL STOP THE WEB SERVER AND "CYCLE" THE SQL SERVER REM PROVIDING THE BEST RESULTS FOR BACKING UP THE VAULTIISRESET /STOPNET STOP MSSQL$AUTODESKVAULTNET START MSSQL$AUTODESKVAULTREM START THE BACKUP PROCESS (THIS IS ONE LINE OF TEXT)"C:\Program Files\Autodesk\Data Management Server 2009\ADMS Console\Connectivity.ADMSConsole.exe" -o backup -B"C:\Backup\Vault\A" -VUadministrator -VP -S
- Run the following script after your tape backup job completes: @ECHO OFFREM DELETE THE BACKUP SET AFTER THE TAPE SET COMPLETESRMDIR /Q/S C:\Backup\Vault\A"REM START THE WEB SERVERIISRESET /START
- Validate the Tape Backup To ensure that your backup set restores properly, test both the backup and the backup procedures. We recommend that you install the Autodesk Vault server on a separate computer. Test a full restore of the data using the Restore command in Autodesk Vault server console.