Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7629155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:45:43+00:00 2026-05-31T05:45:43+00:00

I am implementing a backup of Hyper V VMs using diskshadow based on Windows

  • 0

I am implementing a backup of Hyper V VMs using diskshadow based on Windows VSS (Volume Shadow Copy Service).

The implementation is pretty much as described in DiskShadow / Xcopy BACKUP of Hyper-V, where the diskshadow script is like the following:


set context persistent
set metadata C:\backup.cab
set verbose on
begin backup
     add volume C: alias ConfigVolume
     #The GUID of the Hyper-V Writer
     writer verify {66841cd4-6ded-4f4b-8f17-fd23f8ddc3de}
     create
     EXPOSE %ConfigVolume% Y:
EXEC HyperVBackup.cmd
     UNEXPOSE Y:
end backup    

In HyperVBackup.cmd the actual copying of the shadow copies to a backup drive is done using xcopy. This is oviously the most time consuming part of the backup process.

The begin backup and end backup commands send events to vss writers to allow them to prepare for shadow copy creation and to react on the end of the backup.

  • Is it a good idea to call end backup AFTER EXEC HyperVBackup.cmd? Wouldn’t this force vss writers to stay in an intermediate state as long as the long xcopy part takes?
  • Wouldn’t it be appropiate to call end backup BEFORE the line EXEC HyperVBackup.cmd?

Actually I do not know what vss writers typically do when they receive the event sent by end backup.

Thanks,
nang.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:45:44+00:00Added an answer on May 31, 2026 at 5:45 am

    end backup basically signals all the vss writers that a successful backup has occurred. You probably don’t want to do that until after all data has been successfully moved to a safe location. In your case, you will not want to signal a finished backup until the HyperVBackup.cmd script has finished without errors and likewise the xcopy has finished without errors.

    The reason for this is that some writers, such as Exchange or SQL Server will flush transaction logs when they are signaled by end backup. You don’t want the transaction logs flushed until after they have been successfully backuped up and in a safe location.

    The begin backup shouldn’t be holding anything in an intermediate state. It just tells the vss writers “hey if there is any maintenance that needs done close to a backup window, do it now”. I don’t know the specifics of vss writers, but I could also see begin backup being used to set a marker, so when end backup is signaled, it can say “data up to this point is good and you can now run amok with it.” For example, you don’t want to flush logs up to the time of the end backup command, rather the end backup command will flush logs up to the time of the begin backup command.

    The only “intermediate state” that happens is during the file system freeze. The freeze happens during the create command and is automatically thawed at the completion of the create command.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Implementing Equals() for reference types is harder than it seems. My current canonical implementation
Implementing the ScriptControlClass was extremely easy, unfortunately the side effects with the language implementation
implementing publishActivity in PHP using the REST API using this code: $activity = array(
While implementing a design using nested generic collections, I stumbled across those limitations apparently
In implementing the backup script I described in this serverfault question , I ran
implementing service something similar with tinyurl or bit.ly, I'm would like to expose service
When implementing a Facebook Canvas app using an iframe the iframe does a post
When implementing a Matrix construct using arrays, which would be more efficient? Using a
Implementing the basic algorithm using last array as a pivot in Java, is it
When implementing iterator using yield return , is there any difference between returning IEnumerator

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.