- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am writing some scripts to lighten the load of my weekly backup testing.
My weekly full backup is developed through the ADMS console and then scheduled through Task Scheduler.
That being said the folder name ends up being VaultBackup_Date_Time.
So since the Date_Time part changes every week, I am thinking that the restore script -Bfolder command would have to be altered every week to match which would negate the advantage of scripting the task.
If you look at the script file running the backup it is just stating the upper level folder I have pointed it to but it then makes a sub folder for the backup with the name VaultBackup_Date_Time.
So when writing a script for the restore you would use -Bfolder command to point at the folder that contains a backup. So if I pointed this to the upper level folder would it just restore the first VaultBackup_Date_Time folder that it ran into?
I try to make sure I move out the previous weeks sub folder but there have been times (on vacation) that I have not so ended up with two VaultBackup_Date_Time folders. So not sure what would happen in that situation.
I could answer a lot of these questions by just trial and error since I have a test environment but am hoping to cut my time short if someone here is also scripting out some of these tasks.
Solved! Go to Solution.