Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows Backup

05 Aug 2011   #1

Windows 8.1 Pro x64
 
 
Windows Backup

Hi,

Does anyone know how to get the built in Windows Backup to produce a log file somewhere?

I currently have a daily backup setup and then i have also put some other scripts around it to send me an email when the backup starts and when it has finished however i would like the finished backup email to include a log file to tell me if it was successful or failed.

In order to do this i just need to be able create a simple text log file each time it is run?

Regards,
JDobbsy1987

My System SpecsSystem Spec
.

05 Aug 2011   #2

Windows 7 Pro-x64
 
 

Have you checked the Backup Log File? Double clicking the file will envoke the event viewer snapin.

C:\Windows\System32\winevt\Logs\Microsoft-Windows-Backup.evtx
My System SpecsSystem Spec
06 Aug 2011   #3

Windows 8.1 Pro x64
 
 

Thanks for your reply...

I have checked this however it shows as being successful even though i know the backup actually failed LOL.

On another note, i would need the report to be in a .txt format so i can use the text file as the body of the email that i am planning on sending.

Regards,
JDobbsy1987
My System SpecsSystem Spec
.


06 Aug 2011   #4

Windows 7 Pro-x64
 
 

Quote   Quote: Originally Posted by JDobbsy1987 View Post
I have checked this however it shows as being successful even though i know the backup actually failed LOL.
What did you base this on? There's several codes used under the 100 and 101 Event IDs. These are just start and stop events, not "completion". You'll need to decode "hc_stateid" to determine why the Event ID was generated. Good luck with that--I've only been able to see that "0" is a success. I haven't delved into the other codes such as 2, 7, 10, 11, 17 but I'm sure these specify whether the Event is a backup, restore, image or image restore. This code is not documented anywhere in Microsoft's public data.

Quote:
On another note, i would need the report to be in a .txt format so i can use the text file as the body of the email that i am planning on sending.
I haven't tried but there's an Email option in the Action Center under "Attach Task To This Event". Other than being able to Copy the events to a text file, the log data is written in XML. You'd have to convert that.

There's no other options available, that I know of, for tracking Backups.
My System SpecsSystem Spec
07 Aug 2011   #5
mjf

Windows 7x64 Home Premium SP1
 
 

Have you looked down the trail
Event viewer>Application & service logs>Windowslogs>Microsoft>Windows>....
Backup or Windows backup.
My System SpecsSystem Spec
07 Aug 2011   #6

Windows 7 Pro-x64
 
 

The Event Viewer (Backup Log) is what we were talking about MJF.
My System SpecsSystem Spec
07 Aug 2011   #7
mjf

Windows 7x64 Home Premium SP1
 
 

Quote   Quote: Originally Posted by carwiz View Post
The Event Viewer (Backup Log) is what we were talking about MJF.
yes indeed - my mistake.

Under event viewer there are "Applications and services logs" (where I was pointing) and "Saved logs" where the evtx file seems to open up to.
My System SpecsSystem Spec
25 Aug 2011   #8

Windows 8.1 Pro x64
 
 

Quote   Quote: Originally Posted by mjf View Post
Have you looked down the trail
Event viewer>Application & service logs>Windowslogs>Microsoft>Windows>....
Backup or Windows backup.
I am very sorry to have not replied for 2 weeks.

This location is perfect for the event, now i just need to be able create a script to export that to a text file if that is even possible?

If someone knows please help but otherwise if i figure it out i will post back with the solution.

Regards,
JDobbsy1987
My System SpecsSystem Spec
Reply

 Windows Backup




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:16 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33