Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Is there anyway to have a batch file set up to run on a Windows 7 box and have it check to see if Windows Backup is still running and if not then move the backup?

share|improve this question
    
Does Windows Backup have the option to run a command when the backup completes? If so, would this not be a better solution? –  voretaq7 Jul 28 '11 at 18:31
    
That's what I was hoping for, but couldn't anywhere to set that up. I thought about the Task Scheduler, but am not sure where or how to have that run the Backup and then run my script after it completes. –  Chris Whisenhunt Jul 28 '11 at 18:34

1 Answer 1

Why not create a batch file that runs your backup and when it completes move the backup e.g.

windowsbackupcommand

move windowsbackup.file \\somewhere\else\windowsbackup.file

Then run that in task scheduler.

share|improve this answer
    
I thought about that as well, but don't know how to run Windows Backup from a batch file. Sorry for being so novice. :P –  Chris Whisenhunt Jul 28 '11 at 18:50
1  
@Chris - I believe wbadmin is the command you want - Everything you ever wanted to do with Windows Backup from the command line: technet.microsoft.com/en-us/library/cc754015(WS.10).aspx –  voretaq7 Jul 28 '11 at 18:54
    
Thanks guys, I will look into this! –  Chris Whisenhunt Jul 28 '11 at 19:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.