Community
Vault Forum
Welcome to Autodesk’s Vault Forums. Share your knowledge, ask questions, and explore popular Vault topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Vault Restore - Scripted - Select Backup Location?

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
mthomas
507 Views, 4 Replies

Vault Restore - Scripted - Select Backup Location?

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

Mike Thomas

4 REPLIES 4
Message 2 of 5
JeffPaquette6500
in reply to: mthomas

Can you provide your command string?

Make sure you include the backup folder: (ie: -BV:\VaultBackup_2014_03_16_6_00_09_PM)

Command Line Server Console

Jeff Paquette
Data Management Support Specialist
Autodesk, Inc.
Message 3 of 5
mthomas
in reply to: mthomas

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

Mike Thomas

Message 4 of 5
cbenner
in reply to: mthomas
Message 5 of 5
mthomas
in reply to: cbenner

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

Mike Thomas

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report