For redundancy and to provide a "sandbox" Vault for me to play in I'm planning on weekly copying my backup onto a spare system and restore it to the Vault installed on this system. The scripting of the backup and backup copy is not a problem, but I've run into a roadblock with the restore.
Here's the problem... Vault labeles the backup folder with the date when it creates it. For example VaultBackup_2014_03_16_6_00_09_PM
In my script I want to use the restore switch -Orestore which uses -B to specify the backup location. However if I just specify the folder of the backup (in my case the "v" drive) it fails as it can't find the file specified. How do I configure this to use the backup (or first backup) in this folder?
Thanks
Mike
Solved! Go to Solution.
Solved by mthomas. Go to Solution.
Can you provide your command string?
Make sure you include the backup folder: (ie: -BV:\VaultBackup_2014_03_16_6_00_09_PM)
Jeff,
I ended up logging this with support [09368268] and Hywell explained that what I'm after isn't really possible. I wanted to script a weekly restore from a backup file location that will always be different. I'm going to try some command line script magic and see if I can figure it out.
Thanks for the response
Mike
If you get some script magic that works, will you post your solution here? I may be heading in a similar direction fairly soon.
Chris Benner
Inventor Tube & Pipe, Vault Professional
Cad Tips Tricks & Workarounds | Twitter | LinkedIn
Autodesk University Classes:
Going With The Flow with Inventor Tube and Pipe | Increasing The Volume with Inventor Tube and Pipe | Power of the Autodesk Community | Getting to Know You | Inventor Styles & Standards |Managing Properties with Vault Professional | Vault Configuration | Vault - What is it & Why Do I Need It? | A Little Less Talk - Tube & Pipe Demo | Change Orders & Revisions - Vault, Inventor & AutoCAD | Authoring & Publishing Custom Content
This is what I'm working with so far...
@echo off
setlocal enabledelayedexpansion
set FolderName=V:\
for /d %%D in (%FolderName%VaultBackup*) do (
SET BACKUPFOLDER= %%D
echo !BACKUPFOLDER!
)
The catch here is if you have multiple "VaultBackup" subfolders in the directory it will use the last one. I'm anticipating only having one VaultBackup so this should work for me
Mike