TechShizz | All posts tagged 'Backups'

How to add a backup disks to Windows Server Backup Schedule

1. Connect the disk you want to add to the backup schedule.

2. Next we need to find the GUID of the disk. To do this run:
 
Wbadmin get disks
 
3. Copy the GUID and paste t into this command:
 
Wbadmin enable backup -addtarget:"{GUID}"
 
Make sure you surround the GUID with double quotes "GUID" 

Error: Backup operation failed with following error code '0x800700EA'

My Daily backups were failing and event viewer was showing the following error:

"The backup operation that started at '‎2016‎-‎05‎-‎30T02:00:25.974941500Z' has failed with following error code '0x800700EA' (More data is available.). Please review the event details for a solution, and then rerun the backup operation once the issue is resolved."

Solution

Windows backup is essentially a shadow copy. Each disk attached has a maximum shadow copy storage limit. Normal behaviour should be that the oldest backup is removed when disk space is low but If the backup is large it seems to throw this error.

We need to resize the shadow storage using the following command. Once done, the errors stopped. 

vssadmin resize shadowstorage /for=B: /on=B: /maxsize=499GB

Backup Exec 2014 DELETES Backups when you re-attatch the drive!

We had this problem recently when restoring a company's data after a crypto locker infection. We had the shadow copies which was the immediate fix and the main backup solution was Backup Exec 2014. On first inspection, I could not see the backup in backup exec. Anyway, for various reasons the shadow copies didn't cut it and we needed to do a full backup from backup exec. We found that we connected the backup drives, ran inventory and then started the restore. The restore then failed, and the backup was gone from the backup drive!!

We found this link which was very useful!
http://www.veritas.com/community/ideas/backup-exec-2014-deletes-expired-backup-sets-space-available

It seems backup exec 2014 has a setting that deletes any backup on the attached drive if the retention period has passed which when left unconfigured is 1 day!

In the Job settings, under storage you'll find this Data management option.

This needs to be un-checked and ideally the backup drive should be formatted before the next backup runs, not when the drive is attached!

Shadow Copies: Previous Version Tab is Missing

  1. Go to “Start” > “All Programs > “Accessories“.
  2. Right-click “Command Prompt“, then select “Run As Administrator“.
  3. Type “regsvr32 twext.dll” and press “Enter“. A message should appear that says registration was successful.

Send an E-mail deprecated in Server 2012 R2?

Why do Microsoft do this???

They giveth, and then they taketh away!


If you want task scheduler to send an email on event here is a workaround for the deprecated "Send an Email" option in the task scheduler.

This example will show you how to set up emails to be sent on Windows Server Backup Success and failure.
Backup Failure Email
1. Download sendEmail by clicking here
2. Copy the sendEmail.exe to a folder at C:\backup_script
3. Open Notepad, paste this and save the file as a batch file:

sendEmail -f adminaccount@techshizz.com -t backups@techshizz.com -u "TechShizz - HVExchange Full Backup Failure" -m Failure Event for Windows Server Backup has been logged. -s <serverIP> -xu SMTP_Username -xp SMPT-Userpassword

 
4. Open task scheduler (taskschd.msc) and create a task.
a. Create a custom trigger which will cover all failed backup events - you can use this XML query:
 
<QueryList>
<Query Id="0" Path="Application">
<Select Path="Application">[System[Provider[@Name='Microsoft-Windows-Backup'] and (EventID=5 or EventID=8 or EventID=9 or EventID=17 or EventID=22 or EventID=49 or EventID=50 or EventID=52 or EventID=100 or EventID=517 or EventID=518 or EventID=521 or EventID=527 or EventID=528 or EventID=544 or EventID=545 or EventID=546 or EventID=561 or EventID=564 or EventID=612)]]</Select>
<Select Path="Microsoft-Windows-Backup">[System[Provider[@Name='Microsoft-Windows-Backup'] and (EventID=5 or EventID=8 or EventID=9 or EventID=17 or EventID=22 or EventID=49 or EventID=50 or EventID=52 or EventID=100 or EventID=517 or EventID=518 or EventID=521 or EventID=527 or EventID=528 or EventID=544 or EventID=545 or EventID=546 or EventID=561 or EventID=564 or EventID=612)]]</Select>
</Query>
</QueryList>
 
b. Set the Action to run the batch file you created earlier.
 
5. Test the task by right clicking on it and running it manually.

Backup Success Email
Repete the above steps but use this for the batch file:

sendEmail -f accountadmin@techshizz.com -t accountadmin@techshizz.com -cc rich@techshizz.com -u "TechShizz - HVEXCHANGE2016 Full Backup Success" -m Event ID 4 For Windows Server Backup has been logged:The backup operation has finished successfully. -s <serverIP> -xu SMTP_username -xp userpassword