Link to home
Start Free TrialLog in
Avatar of John Bolton
John BoltonFlag for United States of America

asked on

Automate multiple drive backup job using Backup and Restore (Windows 7) in Windows 10

I am setting up a backup routine in Windows 10 using several ext. hdds.  I am using the Backup and Restore (Windows 7) app.  In order to change out the drives I have to go into "Change settings" in the Schedule section and point the Backup job to the newly attached ext. hdd.  I'm trying to automate this process so I don't have to babysit the backups on a daily basis.  I have two questions.  First, is there a way to run Backup and Restore (Windows 7) from the command prompt? I'm hoping to find more switches/parameters to customize the backup job.  As well as, setup a task in Task Scheduler.  And second, is there a way to automate the swapping of the ext. hdds, where you go into the "Change settings" and point the backup job to the newly attached ext. hdd.  Thank you for any help with either or both of these questions.  I'm open to suggestions.
Avatar of yo_bee
yo_bee
Flag of United States of America image

You could place a marker (=for example a directory called "mymarker") on the backup HDDs and simply go through all HDDs looking for that marker as in
for /f %a in ('wmic logicaldisk get caption') do dir /b %a | findstr mymarker && wbadmin start backup -backupTarget:%a -include:c:

Open in new window

Avatar of John Bolton

ASKER

I did run a wbadmin backup job last weekend successfully.  The only problem is I was not able to use Backup and Restore (Windows 7) to restore any of the backup data.  The program did not recognize the backup files from the external HDD.  I don't know if wbadmin is going to work.  I'm would like to use the Backup and Restore (Windows 7) program as a base program or foundation program.  It looks like wbadmin does not work with it.
That can't be right. The restore has to work. Wbadmin is the correct process. How did you proceed to restore, did you tell restore where to look for the backup?
ASKER CERTIFIED SOLUTION
Avatar of John Bolton
John Bolton
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial