Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just want to know what could you recommend a script to backup Windows server?

I tried to use the normal Amazon API command line stated below and it’s working fine. However, when I restore the snapshot file, it didn’t work correctly.

/opt/aws/bin/ec2-create-snapshot vol-xxxxxxxx -d "System Drive"

I would appreciate any recommendation for backing up Windows instance.


share|improve this question
How are you "restoring the snapshot file" ? – Matt Houser Oct 8 '12 at 17:34
@MattHouser, Restoration will be done by creating a new volume based on that snapshot file and register a new AMI for that volume. – James W. Oct 9 '12 at 1:08

Windows AMIs cannot be created from EBS snapshots. Only Linux AMIs can be created this way.

For Windows instances, you should create the AMI directly from the EC2 instance using


If you want to restore an instance from an EBS volume:

  1. Create a new volume from your snapshot
  2. Launch a new Windows instance from an AMI that matches your original instance as much as possible
  3. Stop your new instance and replace the root volume with your restored volume
share|improve this answer
when using ec2-create-image does it create EBS snapshot file and AMI? If yes, could you recommend any script that will do a clean up of EBS snapshot and de-register AMI? Thanks – James W. Oct 9 '12 at 2:08
By the way, for daily cleaning up of EBS snapshot, I am using ec2-prune-snapshots script which is really effective but for de-registering AMI I am looking how to do that. – James W. Oct 9 '12 at 2:11
Creating an AMI creates both an AMI and snapshots (one for each volume). The snapshots cannot be deleted as long as the AMI exists. – Matt Houser Oct 9 '12 at 13:41
I tried to test to de-register an AMI and the snapshot is still exist. In this case I have to manually remove the snapshot. – James W. Oct 10 '12 at 1:15
De-registering an AMI image does not delete the snapshots. You must delete them after de-registering your AMI image. – Matt Houser Oct 11 '12 at 15:45

Your Answer


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.