A better Vault backup script

I posted to the Autodesk Vault Forum a different way to manage your Vault backup folders through your Vault backup script.

The script uses the default folder names that the normal backup method uses which includes the date and time of the backup. What the script does is remove the oldest folder in your parent backup folder and saves the number of backups you specify in the script. You don’t have to rename folders to accomplish this using this script.

{BackupFolder} : Set to your Vault backup location (3 locations in the script)

{Username} : Set to the Vault username

{Password} : Set to the Vault users password

skip=2 : This is set to save 3 backups. The 2 in the folder and the backup that will run with the script. Set this to at least 1.


REM ---- Vault Daily Backup ----

    setlocal enableextensions disabledelayedexpansion

    pushd "{BackupFolder}" && (
        for /f "skip=2 delims=" %%a in (
            'dir /b /ad /tc /o-d'
        ) do rmdir /s /q "%%~fa"

REM -- Backup Vault ---

"C:\Program Files\Autodesk\ADMS Professional 2019\ADMS Console\Connectivity.ADMSConsole.exe" -Obackup -B"{BackUpFolder}" -VU"{Username}" -VP"{Password}" -DBSC -S -L"{BackUpFolder}\Vault_Backup_Log.txt"


VN:F [1.9.22_1171]
Rating: 5.0/5 (3 votes cast)
A better Vault backup script, 5.0 out of 5 based on 3 ratings

Permanent link to this article: https://cadtoolbox.com/2018/11/10/a-better-vault-backup-script/

Leave a Reply

Your email address will not be published.

* Copy This Password *

* Type Or Paste Password Here *