Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
wbadmin start backup... difference between Powsershell and cmd
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rickplayamx  
View profile  
 More options Jun 5 2012, 5:57 pm
Newsgroups: microsoft.public.windows.powershell
From: rickplayamx <r...@mapcentrix.com>
Date: Tue, 5 Jun 2012 14:57:53 -0700 (PDT)
Local: Tues, Jun 5 2012 5:57 pm
Subject: wbadmin start backup... difference between Powsershell and cmd
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Morris  
View profile  
 More options Jun 6 2012, 6:29 am
Newsgroups: microsoft.public.windows.powershell
From: "Joe Morris" <j.c.mor...@verizon.net>
Date: Wed, 6 Jun 2012 06:29:58 -0400
Local: Wed, Jun 6 2012 6:29 am
Subject: Re: wbadmin start backup... difference between Powsershell and cmd

"rickplayamx" <r...@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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rickplayamx  
View profile  
 More options Jun 6 2012, 8:09 am
Newsgroups: microsoft.public.windows.powershell
From: rickplayamx <r...@mapcentrix.com>
Date: Wed, 6 Jun 2012 05:09:29 -0700 (PDT)
Local: Wed, Jun 6 2012 8:09 am
Subject: Re: wbadmin start backup... difference between Powsershell and cmd
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »