Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wbadmin start backup... difference between Powsershell and cmd

552 views
Skip to first unread message

rickplayamx

unread,
Jun 5, 2012, 5:57:53 PM6/5/12
to
I am running "wbadmin start backup -include:C:E: -backupTarget:G:" in
both Powershell ISE 2 and from the command line in SBS 2008.

From the command line it runs fine, from powershell I get the error:
"wbadmin 1.0 - Backup command-line tool (C) Copyright 2004 Microsoft
Corp. Retrieving volume information... ERROR - One of the source
volumes specified cannot be included: C: E:. Please specify source as
a volume drive letter or access path (if volume is mounted in a
folder). Only volumes on locally attached disks can be backed up."

C and E are both physical drives located inside the server. G is an
external USB drive.

Why does it not work in Powershell?

Rick

Joe Morris

unread,
Jun 6, 2012, 6:29:58 AM6/6/12
to
"rickplayamx" <ri...@mapcentrix.com> wrote:

>I am running "wbadmin start backup -include:C:E: -backupTarget:G:" in
> both Powershell ISE 2 and from the command line in SBS 2008.
[error message]

I don't use wb but the Win2008 admin pocket guide shows that the -include
switch expects a comma-delimited list if more than one source is specified.

* -include Sets a comma-delimited list of
volume drive letters, volume mount points,
and GUID volume names to back up.


In your case this should be:

-include:C:,E:

See the example on page 481.

Joe Morris


rickplayamx

unread,
Jun 6, 2012, 8:09:29 AM6/6/12
to
Thanks Joe,

The missing comma was a typo. I did have it in the code that gave the
error.

The problem was solved by putting the -include into a variable -
apparently ps was confused by the inline assignment.

$include = "C:,E:"
wbadmin start backup -include:$include ...

Rick

0 new messages