Author Topic: Registry Backup Beta  (Read 358891 times)

0 Members and 1 Guest are viewing this topic.

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #25 on: May 20, 2012, 01:03:19 pm »
Ok v0.9.4 is out

v0.9.4
Change the way the program logs the backup and restore. It will now store a log file with each backup.
Logs now record the date and time for each entry.
Better error handling for the file copy progress.

Quote
Edit: I just checked and nothing under D:\Registry Backup\DELL-P370\5.20.2012_1.55.04-PM\C was created, neither under Users or Windows. The folder structure is there but no data.

That is because the program makes the folder structure before it starts copying the files.

The old version didn't give the proper error of why they didn't copy from the snap shot.

The new version should have that fixed, and we should see why they failed :-) Dont forget the backup log files will be in a new place. The vss_log will still be the same.

Shane

Offline Ztruker

  • Jr. Member
  • **
  • Join Date: May 2012
  • Posts: 77
  • Location: Space Coast of Florida
  • Karma: 1
    • View Profile
Re: Registry Backup Beta
« Reply #26 on: May 20, 2012, 06:41:57 pm »
Same failure but the log has useful info in it now:

Log_Backup.txt:
Code: [Select]
[5/20/2012 - 9:38:19 PM] C:\Windows\System32\Config\default
[5/20/2012 - 9:38:19 PM] C:\Windows\System32\Config\sam
[5/20/2012 - 9:38:19 PM] C:\Windows\System32\Config\security
[5/20/2012 - 9:38:19 PM] C:\Windows\System32\Config\software
[5/20/2012 - 9:38:19 PM] C:\Windows\System32\Config\system
[5/20/2012 - 9:38:19 PM] C:\Users\Administrator\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 9:38:19 PM] C:\Users\Administrator\ntuser.dat
[5/20/2012 - 9:38:19 PM] C:\Users\Default\ntuser.dat
[5/20/2012 - 9:38:19 PM] C:\Users\Guest\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 9:38:19 PM] C:\Users\Guest\ntuser.dat
[5/20/2012 - 9:38:19 PM] C:\Users\rrkurtz\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 9:38:19 PM] C:\Users\rrkurtz\ntuser.dat
[5/20/2012 - 9:38:19 PM] C:\Users\UpdatusUser\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 9:38:19 PM] C:\Users\UpdatusUser\ntuser.dat
[5/20/2012 - 9:38:19 PM] C:\Windows\ServiceProfiles\LocalService\ntuser.dat
[5/20/2012 - 9:38:19 PM] C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
[5/20/2012 - 9:38:19 PM] --------------------------------------------------------------------------------
[5/20/2012 - 9:38:19 PM]
[5/20/2012 - 9:38:20 PM] Backing Up Files...:
[5/20/2012 - 9:38:20 PM] --------------------------------------------------------------------------------
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Windows\System32\Config\default
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Windows\System32\Config\sam
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Windows\System32\Config\security
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Windows\System32\Config\software
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Windows\System32\Config\system
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Users\Administrator\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Users\Administrator\ntuser.dat
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Users\Default\ntuser.dat
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Users\Guest\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Users\Guest\ntuser.dat
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Users\rrkurtz\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Users\rrkurtz\ntuser.dat
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Users\UpdatusUser\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Users\UpdatusUser\ntuser.dat
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Windows\ServiceProfiles\LocalService\ntuser.dat
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] Backing Up File: C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
[5/20/2012 - 9:38:20 PM] Result: Failed - Error: 3: The system cannot find the path specified.
                                                                                                                                                           
[5/20/2012 - 9:38:20 PM]
[5/20/2012 - 9:38:20 PM] --------------------------------------------------------------------------------
[5/20/2012 - 9:38:20 PM]

Log_VSS.txt is still in the program directory though:
Code: [Select]
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

E:\sources\Registry Tools\Registry Backup - tweaking.com>
CD /D C:\

C:\>
"C:\Windows\temp\vss_start.bat"

[This script is generated by VSHADOW.EXE for the shadow set {918d3385-d5a3-4faf-846f-051f3f7d3263}]

B:: The operation completed successfully.

Rich
The only thing that is certain is that nothing is certain - Heraclitus.

Offline Ztruker

  • Jr. Member
  • **
  • Join Date: May 2012
  • Posts: 77
  • Location: Space Coast of Florida
  • Karma: 1
    • View Profile
Re: Registry Backup Beta
« Reply #27 on: May 20, 2012, 07:18:27 pm »
Uninstalled, deleted D:\Registry Backup, rebooted, reinstall 0.9.4.

It now works when I run it manually from the GUI so there must have been some left over stuff in the install directory or backup directory that was causing the problem.

Deleted and created a new task to run under my account and it failed. This is the Task Scheduler history:
Code: [Select]
Error 5/20/2012 10:01:21 PM 101 Task Start Failed Launch Failure
Information 5/20/2012 10:01:21 PM 118 Task triggered by computer startup Info 352b665c-53c1-4b3b-95ea-54ea1e1eccc3
Information 5/20/2012 9:59:29 PM 140 Task registration updated Info
Information 5/20/2012 9:58:36 PM 140 Task registration updated Info
Error 5/20/2012 9:50:30 PM 103 Action start failed Run Failure a470fc7c-ccc8-4a91-acd8-f2acdc42deb7
Error 5/20/2012 9:50:30 PM 203 Action failed to start Launch Failure a470fc7c-ccc8-4a91-acd8-f2acdc42deb7
Information 5/20/2012 9:50:30 PM 200 Action started (1) a470fc7c-ccc8-4a91-acd8-f2acdc42deb7
Information 5/20/2012 9:50:30 PM 100 Task Started (1) a470fc7c-ccc8-4a91-acd8-f2acdc42deb7
Information 5/20/2012 9:50:29 PM 319 Task Engine received message to start task (1)
Information 5/20/2012 9:50:29 PM 118 Task triggered by computer startup Info a470fc7c-ccc8-4a91-acd8-f2acdc42deb7

Deleted and recreated the task setting it to run under System and rebooted and it worked correctly.
Reg_Backup.txt:
Code: [Select]
[5/20/2012 - 10:11:42 PM] C:\Windows\System32\Config\default
[5/20/2012 - 10:11:42 PM] C:\Windows\System32\Config\sam
[5/20/2012 - 10:11:42 PM] C:\Windows\System32\Config\security
[5/20/2012 - 10:11:42 PM] C:\Windows\System32\Config\software
[5/20/2012 - 10:11:42 PM] C:\Windows\System32\Config\system
[5/20/2012 - 10:11:42 PM] C:\Users\Administrator\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 10:11:42 PM] C:\Users\Administrator\ntuser.dat
[5/20/2012 - 10:11:42 PM] C:\Users\Default\ntuser.dat
[5/20/2012 - 10:11:42 PM] C:\Users\Guest\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 10:11:42 PM] C:\Users\Guest\ntuser.dat
[5/20/2012 - 10:11:42 PM] C:\Users\rrkurtz\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 10:11:42 PM] C:\Users\rrkurtz\ntuser.dat
[5/20/2012 - 10:11:42 PM] C:\Users\UpdatusUser\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 10:11:42 PM] C:\Users\UpdatusUser\ntuser.dat
[5/20/2012 - 10:11:42 PM] C:\Windows\ServiceProfiles\LocalService\ntuser.dat
[5/20/2012 - 10:11:42 PM] C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
[5/20/2012 - 10:11:42 PM] --------------------------------------------------------------------------------
[5/20/2012 - 10:11:42 PM]
[5/20/2012 - 10:11:42 PM] Backing Up Files...:
[5/20/2012 - 10:11:42 PM] --------------------------------------------------------------------------------
[5/20/2012 - 10:11:42 PM] Backing Up File: C:\Windows\System32\Config\default
[5/20/2012 - 10:11:43 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Windows\System32\Config\default
[5/20/2012 - 10:11:43 PM]
[5/20/2012 - 10:11:43 PM] Backing Up File: C:\Windows\System32\Config\sam
[5/20/2012 - 10:11:43 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Windows\System32\Config\sam
[5/20/2012 - 10:11:43 PM]
[5/20/2012 - 10:11:43 PM] Backing Up File: C:\Windows\System32\Config\security
[5/20/2012 - 10:11:43 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Windows\System32\Config\security
[5/20/2012 - 10:11:43 PM]
[5/20/2012 - 10:11:43 PM] Backing Up File: C:\Windows\System32\Config\software
[5/20/2012 - 10:11:45 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Windows\System32\Config\software
[5/20/2012 - 10:11:45 PM]
[5/20/2012 - 10:11:45 PM] Backing Up File: C:\Windows\System32\Config\system
[5/20/2012 - 10:11:45 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Windows\System32\Config\system
[5/20/2012 - 10:11:45 PM]
[5/20/2012 - 10:11:45 PM] Backing Up File: C:\Users\Administrator\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 10:11:46 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Users\Administrator\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 10:11:46 PM]
[5/20/2012 - 10:11:46 PM] Backing Up File: C:\Users\Administrator\ntuser.dat
[5/20/2012 - 10:11:46 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Users\Administrator\ntuser.dat
[5/20/2012 - 10:11:46 PM]
[5/20/2012 - 10:11:46 PM] Backing Up File: C:\Users\Default\ntuser.dat
[5/20/2012 - 10:11:46 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Users\Default\ntuser.dat
[5/20/2012 - 10:11:46 PM]
[5/20/2012 - 10:11:46 PM] Backing Up File: C:\Users\Guest\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 10:11:46 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Users\Guest\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 10:11:46 PM]
[5/20/2012 - 10:11:46 PM] Backing Up File: C:\Users\Guest\ntuser.dat
[5/20/2012 - 10:11:46 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Users\Guest\ntuser.dat
[5/20/2012 - 10:11:46 PM]
[5/20/2012 - 10:11:46 PM] Backing Up File: C:\Users\rrkurtz\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 10:11:46 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Users\rrkurtz\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 10:11:46 PM]
[5/20/2012 - 10:11:46 PM] Backing Up File: C:\Users\rrkurtz\ntuser.dat
[5/20/2012 - 10:11:47 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Users\rrkurtz\ntuser.dat
[5/20/2012 - 10:11:47 PM]
[5/20/2012 - 10:11:47 PM] Backing Up File: C:\Users\UpdatusUser\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 10:11:47 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Users\UpdatusUser\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/20/2012 - 10:11:47 PM]
[5/20/2012 - 10:11:47 PM] Backing Up File: C:\Users\UpdatusUser\ntuser.dat
[5/20/2012 - 10:11:47 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Users\UpdatusUser\ntuser.dat
[5/20/2012 - 10:11:47 PM]
[5/20/2012 - 10:11:47 PM] Backing Up File: C:\Windows\ServiceProfiles\LocalService\ntuser.dat
[5/20/2012 - 10:11:47 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Windows\ServiceProfiles\LocalService\ntuser.dat
[5/20/2012 - 10:11:47 PM]
[5/20/2012 - 10:11:47 PM] Backing Up File: C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
[5/20/2012 - 10:11:47 PM] Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_10.10.52-PM\C\Windows\ServiceProfiles\NetworkService\ntuser.dat
[5/20/2012 - 10:11:47 PM]
[5/20/2012 - 10:11:47 PM] --------------------------------------------------------------------------------
[5/20/2012 - 10:11:47 PM]

If there is any more info I can provide please let me know.

Rich
The only thing that is certain is that nothing is certain - Heraclitus.

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #28 on: May 20, 2012, 08:00:03 pm »
Very odd.

When you do a backup leave the program open. If vss_pause.exe is still running you can access the snap shot.

I have the program map it to B:\ so if you put in B:\Windows in the start menu it will open.

So now the question if which, source or destination was the copyfile api complaining about. I will add a file exist check to the backup for the B: drive before it tries to copy the files. This way the error log will show if it can't find the mapped B: drive.

I am also going to tweak the restore process. So I will have 0.9.5 out soon :-)

Shane

Offline Tomas_Sweden

  • Sr. Member
  • ****
  • Join Date: Oct 2011
  • Posts: 260
  • Location: Falköping
  • Karma: 7
    • View Profile
Re: Registry Backup Beta
« Reply #29 on: May 20, 2012, 09:24:42 pm »
I do not think I explain so you understood me last, but then I am using "Run under current user account" under scheduling options and try it in task scheduler the main program "Registry Backup" start and then the backup is finished it closes down. It doesn't do so when I I use "run under system account" then it's invisible.

Quote
That is just for creating a new schedule is all. It isn't reporting which you choose.
But it isn't a big deal to have it remember :-)
I will add it
Thats working  :wink:

Tomas
Dell Laptop XPS L501X Intel i5-560M(2.66GHz), Win 7 Home Prem(SP1) 64 Bit, 4 GB RAM. Samsung SSD 850 PRO 256 GB.

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #30 on: May 20, 2012, 09:27:27 pm »
Quote
I do not think I explain so you understood me last, but then I am using "Run under current user account" under scheduling options and try it in task scheduler the main program "Registry Backup" start and then the backup is finished it closes down. It doesn't do so when I I use "run under system account" then it's invisible.

Yes :-) When it is ran under system it is being ran under the system account so the window doesnt show for you, it is actually showing for the system. When you run it as you you will see the window, see it work then close :wink:

Shane

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #31 on: May 20, 2012, 09:30:22 pm »
Ztruker,

v0.9.5 is out

v0.9.5
Added extra checks during the backup process.
Spelling changes to a few sections in the program to make them better understandable.
Multiple code improvements.

I made a lot of fine tuning and tweaks to the code. And improved the logging even more.

This might sound strange, but I am glad you have had these hiccups :-D

It has helped me make better logging to find the problem and tweak the code to handle more things. So thanks for working with me :-)

Same for you as well Tomas_Sweden

Thanks to both of you the program is getting better and better with each build  :artist:

Shane

Offline Tomas_Sweden

  • Sr. Member
  • ****
  • Join Date: Oct 2011
  • Posts: 260
  • Location: Falköping
  • Karma: 7
    • View Profile
Re: Registry Backup Beta
« Reply #32 on: May 20, 2012, 10:16:47 pm »
One benefit with seeing the program for the current user account is that I know the backup are being made!

Yes!! now are my previous snapshot still there! lol   :cheesy:

I have noticed that "auto deleting old backups" are working as well!

Tomas
Dell Laptop XPS L501X Intel i5-560M(2.66GHz), Win 7 Home Prem(SP1) 64 Bit, 4 GB RAM. Samsung SSD 850 PRO 256 GB.

Offline Tomas_Sweden

  • Sr. Member
  • ****
  • Join Date: Oct 2011
  • Posts: 260
  • Location: Falköping
  • Karma: 7
    • View Profile
Re: Registry Backup Beta
« Reply #33 on: May 21, 2012, 07:39:05 am »
If I fiddle with the registry so that I can't get into windows or safe mode (F8), can I still restore the registry with your program? :thinking:

After I rebooted my computer I noticed that the Registry backup didn't start in Task scheduler if I have it under my "Current User Account" and have choosen the radio button that says "Run only when user is logged on".
I got this error: The operation being requested was not performed because the user has not logged on to the network.The specified service does not exist(0x800704DD)
But if I choose the radio button that says "Run whether the user is logged on or not" it works when I log into windows.
But if I try it manually in Task scheduler and run "Run only when user is logged on" that works!

What am I doing wrong or what have I not understood?

Tomas
Dell Laptop XPS L501X Intel i5-560M(2.66GHz), Win 7 Home Prem(SP1) 64 Bit, 4 GB RAM. Samsung SSD 850 PRO 256 GB.

Offline Ztruker

  • Jr. Member
  • **
  • Join Date: May 2012
  • Posts: 77
  • Location: Space Coast of Florida
  • Karma: 1
    • View Profile
Re: Registry Backup Beta
« Reply #34 on: May 21, 2012, 07:51:15 am »
I'll try installing 0.9.5 over 0.9.4 and see what happens.

At the end of Log_VSS.txt, I see this.

C:\>
[10:33:39 AM] Closed. No longer reading pipes.
[10:33:39 AM] Error: 402 - Not processing a command to cancel.
[10:33:39 AM] Error: 402 - Not processing a command to cancel.


Don't know if the 402 error is a problem or not.

I would like to see the Log.VSS.txt file also written to the backup directory instead of the program directory.
Rich
The only thing that is certain is that nothing is certain - Heraclitus.

Offline Ztruker

  • Jr. Member
  • **
  • Join Date: May 2012
  • Posts: 77
  • Location: Space Coast of Florida
  • Karma: 1
    • View Profile
Re: Registry Backup Beta
« Reply #35 on: May 21, 2012, 07:57:10 am »
One other suggestion. Change the name of the download files to include the version, like

tweaking.com_registry_backup_setup.exe ==> tweaking.com_registry_backup_setup_0.9.5.exe

Makes it easier to keep track of what I have.

I'd also like to follow-up on the question Tomas_Sweden raised (though I can't find it now, odd). How do I restore the registry if I can't boot in normal or Safe mode? With ERUNT, I can boot the Recovery Console and run the ERDNT.EXE I want from there. This doesn't seem possible with Registry Backup.
Rich
The only thing that is certain is that nothing is certain - Heraclitus.

Offline Ztruker

  • Jr. Member
  • **
  • Join Date: May 2012
  • Posts: 77
  • Location: Space Coast of Florida
  • Karma: 1
    • View Profile
Re: Registry Backup Beta
« Reply #36 on: May 21, 2012, 08:16:52 am »
Installed 0.9.5. It failed same as before when I tried to run it under my account. It also then failed under System.

I looked at TaskManager and it looks like you are not closing the VSS tasks when an error occurs so subsequent runs won't work until you exit the program then start it again. Not sure if this is intentional or not.



I tried looking at B:\Windows as you mentioned since vss_pause.exe was running, but it doesn't exist.

Just tried using System from a fresh start of the program but it fails the same as before. This is hte error in Log_Backup.txt:

[5/21/2012 - 11:15:08 AM] Backing Up Files...:
[5/21/2012 - 11:15:08 AM] --------------------------------------------------------------------------------
[5/21/2012 - 11:15:08 AM] Backing Up File: C:\Windows\System32\Config\default
[5/21/2012 - 11:15:08 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.


Rich
The only thing that is certain is that nothing is certain - Heraclitus.

Offline Ztruker

  • Jr. Member
  • **
  • Join Date: May 2012
  • Posts: 77
  • Location: Space Coast of Florida
  • Karma: 1
    • View Profile
Re: Registry Backup Beta
« Reply #37 on: May 21, 2012, 08:30:59 am »
Rebooted and the scheduled backup under System worked okay. Tried to run it manually and it fails every time. When it fails it is not closing

vss_7_64.exe, vss_pause.exe and vss_start.exe

Here are the logs from the last failed run:

Log_VSS:
Code: [Select]
[5/21/2012 - 11:22:27 AM] Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

[5/21/2012 - 11:22:27 AM]
C:\Program Files (x86)\Tweaking.com\Registry Backup>CD /D C:\

C:\>
[5/21/2012 - 11:22:27 AM] "C:\Windows\temp\vss_start.bat"

C:\>set path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\Tweaking.com\Registry Backup\files\files

C:\>"C:\Program Files (x86)\Tweaking.com\Registry Backup\files\vss_7_64.exe" -script="C:\Windows\temp\vss-setvar.cmd" -exec="C:\Windows\temp\vss.bat" C:

[5/21/2012 - 11:23:17 AM]
C:\>set path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\Tweaking.com\Registry Backup\files\files

C:\>call "C:\Windows\temp\vss-setvar.cmd"

[This script is generated by VSHADOW.EXE for the shadow set {719da51b-c324-4f91-a3f3-821449617018}]

C:\>SET SHADOW_SET_ID={719da51b-c324-4f91-a3f3-821449617018}
C:\>SET SHADOW_ID_1={c538846b-31f6-4e96-8f3a-a78c3400bd67}
C:\>SET SHADOW_DEVICE_1=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1

C:\>"C:\Program Files (x86)\Tweaking.com\Registry Backup\files\dosdev.exe" B: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1

[5/21/2012 - 11:23:18 AM] B:: The operation completed successfully.

C:\>start "" /wait "C:\Program Files (x86)\Tweaking.com\Registry Backup\files\vss_pause.exe"

[5/21/2012 - 11:23:28 AM]
C:\>"C:\Program Files (x86)\Tweaking.com\Registry Backup\files\dosdev.exe" -r -d B:

[5/21/2012 - 11:23:28 AM] B:: The operation completed successfully.

[5/21/2012 - 11:23:30 AM]
VSHADOW.EXE 3.0 - Volume Shadow Copy sample client.
Copyright (C) 2005 Microsoft Corporation. All rights reserved.

(Option: Generate SETVAR script 'C:\Windows\temp\vss-setvar.cmd')
(Option: Execute binary/script after shadow creation 'C:\Windows\temp\vss.bat')
(Option: Create shadow copy set)
(Gathering writer metadata...)
(Waiting for the asynchronous operation to finish...)
Initialize writer metadata ...
Discover directly excluded components ...
- Excluding writer 'BITS Writer' since it has no selected components for restore.
- Excluding writer 'MSSearch Service Writer' since it has no selected components for restore.
- Excluding writer 'Shadow Copy Optimization Writer' since it has no selected components for restore.
Discover components that reside outside the shadow set ...
- Component '\BCD\BCD' from writer 'ASR Writer' is excluded from backup (it requires  in the shadow set)
Discover all excluded components ...
Discover excluded writers ...
- The writer 'ASR Writer' is now entirely excluded from the backup:
  (the top-level non-selectable component '\BCD\BCD' is an excluded component)
Discover explicitly included components ...
Verifying explicitly specified writers/components ...
Select explicitly included components ...
 * Writer 'Task Scheduler Writer':
   - Add component \TasksStore
 * Writer 'VSS Metadata Store Writer':
   - Add component \WriterMetadataStore
 * Writer 'Performance Counters Writer':
   - Add component \PerformanceCounters
 * Writer 'System Writer':
   - Add component \System Files
 * Writer 'WMI Writer':
   - Add component \WMI
 * Writer 'COM+ REGDB Writer':
   - Add component \COM+ REGDB
 * Writer 'Registry Writer':
   - Add component \Registry
Creating shadow set {a80db78c-3807-4599-aff8-7658a13803b0} ...
- Adding volume \\?\Volume{bcbe9ee2-e6d1-11de-8e59-806e6f6e6963}\ [C:\] to the shadow set...
Preparing for backup ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)
Creating the shadow (DoSnapshotSet) ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)
Shadow copy set succesfully created.

List of created shadow copies:

Querying all shadow copies with the SnapshotSetID {a80db78c-3807-4599-aff8-7658a13803b0} ...

* SNAPSHOT ID = {0e373e66-576c-45c8-9084-e777afee5e56} ...
   - Shadow copy Set: {a80db78c-3807-4599-aff8-7658a13803b0}
   - Original count of shadow copies = 1
   - Original Volume name: \\?\Volume{bcbe9ee2-e6d1-11de-8e59-806e6f6e6963}\ [C:\]
   - Creation Time: 5/21/2012 11:23:12 AM
   - Shadow copy device name: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy2
   - Originating machine: Dell-P370
   - Service machine: Dell-P370
   - Not Exposed
   - Provider id: {b5946137-7b9f-4925-af80-51abd60b20d5}
   - Attributes:  Auto_Release Differential

Generating the SETVAR script (C:\Windows\temp\vss-setvar.cmd) ...
- Executing command 'C:\Windows\temp\vss.bat' ...
-----------------------------------------------------
-----------------------------------------------------
- Mark all writers as succesfully backed up...
Completing the backup (BackupComplete) ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)

Snapshot creation done.

[5/21/2012 - 11:23:30 AM]
C:\>
[5/21/2012 - 11:23:33 AM] Closed. No longer reading pipes.
[5/21/2012 - 11:23:33 AM] Error: 402 - Not processing a command to cancel.
[5/21/2012 - 11:23:33 AM] Error: 402 - Not processing a command to cancel.

Log_Backup:
Code: [Select]
[5/21/2012 - 11:22:26 AM] Waiting for Volume Shadow Copy snapshot...

[5/21/2012 - 11:23:18 AM] Auto Delete Old Backups Enabled, Working...
[5/21/2012 - 11:23:18 AM] --------------------------------------------------------------------------------
[5/21/2012 - 11:23:18 AM] --------------------------------------------------------------------------------

[5/21/2012 - 11:23:18 AM] Starting Backup...

[5/21/2012 - 11:23:18 AM] Backup Location: D:\Registry Backup\

[5/21/2012 - 11:23:18 AM] Files To Backup:
[5/21/2012 - 11:23:18 AM] --------------------------------------------------------------------------------
[5/21/2012 - 11:23:18 AM] C:\Windows\System32\Config\default
[5/21/2012 - 11:23:18 AM] C:\Windows\System32\Config\sam
[5/21/2012 - 11:23:18 AM] C:\Windows\System32\Config\security
[5/21/2012 - 11:23:18 AM] C:\Windows\System32\Config\software
[5/21/2012 - 11:23:18 AM] C:\Windows\System32\Config\system
[5/21/2012 - 11:23:18 AM] C:\Users\Administrator\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/21/2012 - 11:23:18 AM] C:\Users\Administrator\ntuser.dat
[5/21/2012 - 11:23:18 AM] C:\Users\Default\ntuser.dat
[5/21/2012 - 11:23:18 AM] C:\Users\Guest\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/21/2012 - 11:23:18 AM] C:\Users\Guest\ntuser.dat
[5/21/2012 - 11:23:18 AM] C:\Users\rrkurtz\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/21/2012 - 11:23:18 AM] C:\Users\rrkurtz\ntuser.dat
[5/21/2012 - 11:23:18 AM] C:\Users\UpdatusUser\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/21/2012 - 11:23:18 AM] C:\Users\UpdatusUser\ntuser.dat
[5/21/2012 - 11:23:18 AM] C:\Windows\ServiceProfiles\LocalService\ntuser.dat
[5/21/2012 - 11:23:18 AM] C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
[5/21/2012 - 11:23:18 AM] --------------------------------------------------------------------------------

[5/21/2012 - 11:23:19 AM] Backing Up Files...:
[5/21/2012 - 11:23:19 AM] --------------------------------------------------------------------------------
[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Windows\System32\Config\default
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Windows\System32\Config\sam
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Windows\System32\Config\security
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Windows\System32\Config\software
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Windows\System32\Config\system
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Users\Administrator\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Users\Administrator\ntuser.dat
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Users\Default\ntuser.dat
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Users\Guest\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Users\Guest\ntuser.dat
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Users\rrkurtz\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Users\rrkurtz\ntuser.dat
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Users\UpdatusUser\AppData\Local\Microsoft\Windows\UsrClass.dat
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Users\UpdatusUser\ntuser.dat
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Windows\ServiceProfiles\LocalService\ntuser.dat
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] Backing Up File: C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
[5/21/2012 - 11:23:19 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

[5/21/2012 - 11:23:19 AM] --------------------------------------------------------------------------------

Is theere anything else I can provide?
Rich
The only thing that is certain is that nothing is certain - Heraclitus.

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #38 on: May 21, 2012, 10:57:40 am »
Quote
I got this error: The operation being requested was not performed because the user has not logged on to the network.The specified service does not exist(0x800704DD)
But if I choose the radio button that says "Run whether the user is logged on or not" it works when I log into windows.
But if I try it manually in Task scheduler and run "Run only when user is logged on" that works!

Not sure, that has something to do with the task scheduler. Need to dig in to find out what the error means :-)

Quote
If I fiddle with the registry so that I can't get into windows or safe mode (F8), can I still restore the registry with your program?
and
Quote
I'd also like to follow-up on the question Tomas_Sweden raised (though I can't find it now, odd). How do I restore the registry if I can't boot in normal or Safe mode? With ERUNT, I can boot the Recovery Console and run the ERDNT.EXE I want from there. This doesn't seem possible with Registry Backup.

I will have a walk through made for this when the program is out of beta.

You will notice that I save the reg files with the full folder path on the system. This way recovery is as easy as a copy and paste.

First thing to do is to boot up into anything that gives you access to the drive and a copy and paste feature. A Ubuntu live cd will be one way. You can run Ubuntu right off the cd. Then once up and you can access the drive you just go to the backup folder. Under the backup folder you go to the "c" folder (In this case it is "C" because in this example that's the drive windows is on).

In that folder you will see the Windows folder and the profiles folder. All you have to do is copy both those folders.

Go to the root of your drive and paste and hit yes to overwriting. Done :-)

I will also look up the commands to do it from the recovery console. Copy tree command I think.

Quote
C:\>
[10:33:39 AM] Closed. No longer reading pipes.
[10:33:39 AM] Error: 402 - Not processing a command to cancel.
[10:33:39 AM] Error: 402 - Not processing a command to cancel.

Don't know if the 402 error is a problem or not.

No not a problem :-) The vss_start.exe makes a pipe to cmd.exe. Its just saying that its no longer piped to cmd.exe.

Quote
I would like to see the Log.VSS.txt file also written to the backup directory instead of the program directory.

The vss_log.txt is made by the vss_start.exe. I need to find a way to let know where to save the log file. I will see what I can do :-)

Quote
[5/21/2012 - 11:15:08 AM] Backing Up Files...:
[5/21/2012 - 11:15:08 AM] --------------------------------------------------------------------------------
[5/21/2012 - 11:15:08 AM] Backing Up File: C:\Windows\System32\Config\default
[5/21/2012 - 11:15:08 AM] Result: Failed - Error: Couldn't find the file on the volume snapshot.

Thats what I thought was happening. For some reason the map to the snap shot is happening.

Yet the log shows it got mapped

Quote
C:\>"C:\Program Files (x86)\Tweaking.com\Registry Backup\files\dosdev.exe" B: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1

[5/21/2012 - 11:23:18 AM] B:: The operation completed successfully.

I use dosdev.exe to map to the B: drive. And when you said you tried it that B:\ didn't work. So the problem is dosdev.exe failed. But why?

hhhmmm, I wonder. When it fails do you have other snap snaps and when it works you dont?

try the vssadmin command in cmd.exe and see :-)

Quote
vss_7_64.exe, vss_pause.exe and vss_start.exe

These stay running till the main program is closed.

« Last Edit: May 21, 2012, 11:00:21 am by Shane »

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #39 on: May 21, 2012, 12:04:25 pm »
OK I have the log_vs.txt being stored with the backup.

Quote
Tried to run it manually and it fails every time. When it fails it is not closing

The program needs to have the /silent command to know to close when it is done. Is it possible when you run it under the system account it isnt using the /silent?

I think ti tell I will have it add to the logs if it gets the command :-)

Shane

Offline Tomas_Sweden

  • Sr. Member
  • ****
  • Join Date: Oct 2011
  • Posts: 260
  • Location: Falköping
  • Karma: 7
    • View Profile
Re: Registry Backup Beta
« Reply #40 on: May 21, 2012, 12:15:57 pm »
Quote
You will notice that I save the reg files with the full folder path on the system. This way recovery is as easy as a copy and paste.

First thing to do is to boot up into anything that gives you access to the drive and a copy and paste feature. A Ubuntu live cd will be one way. You can run Ubuntu right off the cd. Then once up and you can access the drive you just go to the backup folder. Under the backup folder you go to the "c" folder (In this case it is "C" because in this example that's the drive windows is on).

In that folder you will see the Windows folder and the profiles folder. All you have to do is copy both those folders.

Go to the root of your drive and paste and hit yes to overwriting. Done :-)

Ok I see! I have been using "Parted Magic" on a usb flash drive, so I just have to use the file manager to copy and paste "user" and "windows" folders. Never thought it was so easy.  :smiley:

Tomas
Dell Laptop XPS L501X Intel i5-560M(2.66GHz), Win 7 Home Prem(SP1) 64 Bit, 4 GB RAM. Samsung SSD 850 PRO 256 GB.

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #41 on: May 21, 2012, 12:17:29 pm »
Yeah that's why I made it save the folder path. I had this in mind :-)

I just have to make a video and help guide on how to do it for normal users.

I have a lot of small things that I have done in the program with my fellow techs in mind. I will make sure to cover all of those :-)

Shane

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #42 on: May 21, 2012, 12:35:00 pm »
Ok Ztruker.

Lets see if the new version will shine more light on why the B: isn't being mapped at times.

v0.9.6
Log_Vss.txt now gets stored with the backup like the other log files.
Improved Vss logs to find out why a snap shot doesn't get created or mapped.
More code tweaks to the main program.

I made multiple changes to the code and put even in more logging :-)

Shane

Offline Ztruker

  • Jr. Member
  • **
  • Join Date: May 2012
  • Posts: 77
  • Location: Space Coast of Florida
  • Karma: 1
    • View Profile
Re: Registry Backup Beta
« Reply #43 on: May 21, 2012, 07:03:56 pm »
Same failure with 0.9.,67. Log_Backup.txt same. Here is the new Log_VSS.txt:
Code: [Select]
[5/21/2012 - 9:58:25 PM]
--------------------------------------------------------------------------------
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

E:\sources\Registry Tools\Registry Backup - tweaking.com>
--------------------------------------------------------------------------------
[5/21/2012 - 9:58:25 PM]
--------------------------------------------------------------------------------
CD /D C:\

C:\>
--------------------------------------------------------------------------------
[5/21/2012 - 9:58:25 PM]
--------------------------------------------------------------------------------
"C:\Windows\temp\vss_start.bat"

C:\>set path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\Tweaking.com\Registry Backup\files\files

C:\>"C:\Program Files (x86)\Tweaking.com\Registry Backup\files\vss_7_64.exe" -script="C:\Windows\temp\vss-setvar.cmd" -exec="C:\Windows\temp\vss.bat" C:

--------------------------------------------------------------------------------
[5/21/2012 - 9:59:21 PM]
--------------------------------------------------------------------------------

C:\>set path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\Tweaking.com\Registry Backup\files\files

C:\>call "C:\Windows\temp\vss-setvar.cmd"

[This script is generated by VSHADOW.EXE for the shadow set {719da51b-c324-4f91-a3f3-821449617018}]


C:\>SET SHADOW_SET_ID={719da51b-c324-4f91-a3f3-821449617018}

C:\>SET SHADOW_ID_1={c538846b-31f6-4e96-8f3a-a78c3400bd67}

C:\>SET SHADOW_DEVICE_1=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1

C:\>"C:\Program Files (x86)\Tweaking.com\Registry Backup\files\dosdev.exe" B: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1

--------------------------------------------------------------------------------
[5/21/2012 - 9:59:21 PM]
--------------------------------------------------------------------------------
Current definition: B: = \??\GLOBALROOT\Device\HarddiskVolumeShadowCopy1

C:\>start "" /wait "C:\Program Files (x86)\Tweaking.com\Registry Backup\files\vss_pause.exe"

--------------------------------------------------------------------------------
[5/21/2012 - 9:59:33 PM]
--------------------------------------------------------------------------------

C:\>"C:\Program Files (x86)\Tweaking.com\Registry Backup\files\dosdev.exe" -r -d B:

--------------------------------------------------------------------------------
[5/21/2012 - 9:59:33 PM]
--------------------------------------------------------------------------------
Current definition: B: = \??\GLOBALROOT\Device\HarddiskVolumeShadowCopy1
B: deleted.

--------------------------------------------------------------------------------
[5/21/2012 - 9:59:35 PM]
--------------------------------------------------------------------------------

VSHADOW.EXE 3.0 - Volume Shadow Copy sample client.
Copyright (C) 2005 Microsoft Corporation. All rights reserved.


(Option: Generate SETVAR script 'C:\Windows\temp\vss-setvar.cmd')
(Option: Execute binary/script after shadow creation 'C:\Windows\temp\vss.bat')
(Option: Create shadow copy set)
(Gathering writer metadata...)
(Waiting for the asynchronous operation to finish...)
Initialize writer metadata ...
Discover directly excluded components ...
- Excluding writer 'Shadow Copy Optimization Writer' since it has no selected components for restore.
- Excluding writer 'MSSearch Service Writer' since it has no selected components for restore.
- Excluding writer 'BITS Writer' since it has no selected components for restore.
Discover components that reside outside the shadow set ...
- Component '\BCD\BCD' from writer 'ASR Writer' is excluded from backup (it requires  in the shadow set)
Discover all excluded components ...
Discover excluded writers ...
- The writer 'ASR Writer' is now entirely excluded from the backup:
  (the top-level non-selectable component '\BCD\BCD' is an excluded component)
Discover explicitly included components ...
Verifying explicitly specified writers/components ...
Select explicitly included components ...
 * Writer 'Task Scheduler Writer':
   - Add component \TasksStore
 * Writer 'VSS Metadata Store Writer':
   - Add component \WriterMetadataStore
 * Writer 'Performance Counters Writer':
   - Add component \PerformanceCounters
 * Writer 'System Writer':
   - Add component \System Files
 * Writer 'COM+ REGDB Writer':
   - Add component \COM+ REGDB
 * Writer 'Registry Writer':
   - Add component \Registry
 * Writer 'WMI Writer':
   - Add component \WMI
Creating shadow set {a097f8c6-00a8-421e-9cee-b8124b49c776} ...
- Adding volume \\?\Volume{bcbe9ee2-e6d1-11de-8e59-806e6f6e6963}\ [C:\] to the shadow set...
Preparing for backup ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)
Creating the shadow (DoSnapshotSet) ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)
Shadow copy set succesfully created.

List of created shadow copies:


Querying all shadow copies with the SnapshotSetID {a097f8c6-00a8-421e-9cee-b8124b49c776} ...

* SNAPSHOT ID = {7c264225-468c-440f-8e35-b1f090205238} ...
   - Shadow copy Set: {a097f8c6-00a8-421e-9cee-b8124b49c776}
   - Original count of shadow copies = 1
   - Original Volume name: \\?\Volume{bcbe9ee2-e6d1-11de-8e59-806e6f6e6963}\ [C:\]
   - Creation Time: 5/21/2012 9:59:15 PM
   - Shadow copy device name: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy6
   - Originating machine: Dell-P370
   - Service machine: Dell-P370
   - Not Exposed
   - Provider id: {b5946137-7b9f-4925-af80-51abd60b20d5}
   - Attributes:  Auto_Release Differential

Generating the SETVAR script (C:\Windows\temp\vss-setvar.cmd) ...
- Executing command 'C:\Windows\temp\vss.bat' ...
-----------------------------------------------------
-----------------------------------------------------
- Mark all writers as succesfully backed up...
Completing the backup (BackupComplete) ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)

Snapshot creation done.

--------------------------------------------------------------------------------
[5/21/2012 - 9:59:35 PM]
--------------------------------------------------------------------------------

C:\>
--------------------------------------------------------------------------------
[5/21/2012 - 9:59:38 PM]
--------------------------------------------------------------------------------
Closed. No longer reading pipes.
--------------------------------------------------------------------------------
Rich
The only thing that is certain is that nothing is certain - Heraclitus.

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #44 on: May 21, 2012, 07:26:09 pm »
Wait, something isnt right.

I see you have the new vss_start.exe because I can see the new log format.

But the bat commands it makes haven't changed! they still have the old code. The program is suppose to be overwriting them.

They are in C:\Windows\Temp

I have updated the vss_start.exe to delete the bat files before writing to them since for some odd reason it isnt over writing them.

Take this new vss_start.exe and overwrite the one in the files folder with the program and give it another go :-)

Shane

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #45 on: May 22, 2012, 10:22:26 am »
Ztruker,

I was able to reproduce why it isn't working for you. It had to do with the bat files in the windows\temp folder not getting over written. I locked them on my machine and tried and got the same problem you did.

I have updated the program to handle this and I have my fingers crossed that this will get you fixed. :cheesy:

Still the same version for now, just download the setup again and install over the one installed now.

Try it and let me know how it goes :wink:

http://www.tweaking.com/content/page/registry_backup.html

Shane

Offline Ztruker

  • Jr. Member
  • **
  • Join Date: May 2012
  • Posts: 77
  • Location: Space Coast of Florida
  • Karma: 1
    • View Profile
Re: Registry Backup Beta
« Reply #46 on: May 23, 2012, 04:55:30 pm »
Same failure. It did create new bat files this time though but still got the same failure. Trying to attach a zip file with the two log files in it.

Event Viewer has two errors:

Code: [Select]
Log Name:      Application
Source:        Application Error
Date:          23/05/2012 7:54:02 PM
Event ID:      1005
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      Dell-P370
Description:
Windows cannot access the file  for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program SeaMonkey because of this error.

Program: SeaMonkey
File:

The error value is listed in the Additional Data section.
User Action
1. Open the file again. This situation might be a temporary problem that corrects itself when the program runs again.
2. If the file still cannot be accessed and
- It is on the network, your network administrator should verify that there is not a problem with the network and that the server can be contacted.
- It is on a removable disk, for example, a floppy disk or CD-ROM, verify that the disk is fully inserted into the computer.
3. Check and repair the file system by running CHKDSK. To run CHKDSK, click Start, click Run, type CMD, and then click OK. At the command prompt, type CHKDSK /F, and then press ENTER.
4. If the problem persists, restore the file from a backup copy.
5. Determine whether other files on the same disk can be opened. If not, the disk might be damaged. If it is a hard disk, contact your administrator or computer hardware vendor for further assistance.

Additional Data
Error value: 00000000
Disk type: 0
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="49152">1005</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2012-05-23T23:54:02.000000000Z" />
    <EventRecordID>69770</EventRecordID>
    <Channel>Application</Channel>
    <Computer>Dell-P370</Computer>
    <Security />
  </System>
  <EventData>
    <Data>
    </Data>
    <Data>SeaMonkey</Data>
    <Data>00000000</Data>
    <Data>0</Data>
  </EventData>
</Event>/code]

[code]Log Name:      Application
Source:        Application Error
Date:          23/05/2012 7:54:02 PM
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      Dell-P370
Description:
Faulting application name: seamonkey.exe, version: 12.0.0.4502, time stamp: 0x4f9d0caa
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc000001d
Fault offset: 0x1d16f814
Faulting process id: 0x2f8
Faulting application start time: 0x01cd393a76fea7e6
Faulting application path: C:\Program Files (x86)\SeaMonkey\seamonkey.exe
Faulting module path: unknown
Report Id: 91e5f965-a532-11e1-909c-080027009859
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2012-05-23T23:54:02.000000000Z" />
    <EventRecordID>69769</EventRecordID>
    <Channel>Application</Channel>
    <Computer>Dell-P370</Computer>
    <Security />
  </System>
  <EventData>
    <Data>seamonkey.exe</Data>
    <Data>12.0.0.4502</Data>
    <Data>4f9d0caa</Data>
    <Data>unknown</Data>
    <Data>0.0.0.0</Data>
    <Data>00000000</Data>
    <Data>c000001d</Data>
    <Data>1d16f814</Data>
    <Data>2f8</Data>
    <Data>01cd393a76fea7e6</Data>
    <Data>C:\Program Files (x86)\SeaMonkey\seamonkey.exe</Data>
    <Data>unknown</Data>
    <Data>91e5f965-a532-11e1-909c-080027009859</Data>
  </EventData>
</Event>


« Last Edit: May 23, 2012, 05:02:16 pm by Ztruker »
Rich
The only thing that is certain is that nothing is certain - Heraclitus.

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #47 on: May 23, 2012, 05:42:51 pm »
I wonder if it has anything to do with the fact that you have other snap shots at the same time.

This was in your log.
SET SHADOW_DEVICE_1=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy8

When I had it deleting old snap shots it worked for you. Ever since I took it out it has stopped.

Lets test that. :wink:

Open a cmd.exe window

use vssadmin to view and then delete any snap shots. Once they are cleared try the backup again. Does it still fail?

Shane

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #48 on: May 23, 2012, 05:49:23 pm »
Come to think of it I bet that is the problem.

Looking further down your vss log I found this

Quote
* SNAPSHOT ID = {eb6a5058-61fe-41cb-b660-61017f9cef7c} ...
   - Shadow copy Set: {f7a0dfc1-87cc-4a97-a8cd-d3fc7bdef6be}
   - Original count of shadow copies = 1
   - Original Volume name: \\?\Volume{bcbe9ee2-e6d1-11de-8e59-806e6f6e6963}\ [C:\]
   - Creation Time: 5/23/2012 7:48:19 PM
   - Shadow copy device name: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy9
   - Originating machine: Dell-P370
   - Service machine: Dell-P370
   - Not Exposed
   - Provider id: {b5946137-7b9f-4925-af80-51abd60b20d5}
   - Attributes:  Auto_Release Differential

Generating the SETVAR script (C:\Windows\temp\vss-setvar.cmd) ...

It made \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy9

But told the vss.bat that it was \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy8

Which would explain why it is failing.

I am not sure why it is passing the wrong one though.

Try removing the other snap shots and test. If it does work then I found the problem and will work on a fix :-)

Shane

Offline Ztruker

  • Jr. Member
  • **
  • Join Date: May 2012
  • Posts: 77
  • Location: Space Coast of Florida
  • Karma: 1
    • View Profile
Re: Registry Backup Beta
« Reply #49 on: May 23, 2012, 05:52:56 pm »
What will deleting shadows do to me? I have other software that uses Shadow Copy, especially Acronis True Image and I don't want to mess with it. (Can you tell I'm not up to speed on Shadow Copy  :tongue:)

Also, I use Shadow Explore to browse Shadow Copies to sometimes recover files that Windows has backed up. What kind of an effect does it have on that?

I just did a vssadmin list shadows and this is the response:
Code: [Select]
C:\Users\rrkurtz>vssadmin list shadows
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2005 Microsoft Corp.

Contents of shadow copy set ID: {7b188938-d370-4feb-9a9e-8b9c62084dfa}
   Contained 3 shadow copies at creation time: 5/21/2012 4:29:00 PM
      Shadow Copy ID: {aa946877-595a-4179-8992-2b7f5b3df833}
         Original Volume: (D:)\\?\Volume{bcbe9ede-e6d1-11de-8e59-806e6f6e6963}\
         Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1
         Originating Machine: Dell-P370
         Service Machine: Dell-P370
         Provider: 'Microsoft Software Shadow Copy provider 1.0'
         Type: ClientAccessibleWriters
         Attributes: Persistent, Client-accessible, No auto release, Differential, Auto recovered

      Shadow Copy ID: {086270b9-c5e0-4b78-bf00-27171d8911c4}
         Original Volume: (E:)\\?\Volume{bcbe9edf-e6d1-11de-8e59-806e6f6e6963}\
         Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy3
         Originating Machine: Dell-P370
         Service Machine: Dell-P370
         Provider: 'Microsoft Software Shadow Copy provider 1.0'
         Type: ClientAccessibleWriters
         Attributes: Persistent, Client-accessible, No auto release, Differential, Auto recovered

      Shadow Copy ID: {9d7b82a4-de52-4b41-b823-52245a2754bc}
         Original Volume: (C:)\\?\Volume{bcbe9ee2-e6d1-11de-8e59-806e6f6e6963}\
         Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy5
         Originating Machine: Dell-P370
         Service Machine: Dell-P370
         Provider: 'Microsoft Software Shadow Copy provider 1.0'
         Type: ClientAccessibleWriters
         Attributes: Persistent, Client-accessible, No auto release, Differential, Auto recovered

Contents of shadow copy set ID: {6d0d06be-076f-4d75-a04d-fc0a0fe0c3ad}
   Contained 3 shadow copies at creation time: 5/22/2012 3:06:09 PM
      Shadow Copy ID: {d43b6a93-6928-49d4-b488-ffa072df21fa}
         Original Volume: (D:)\\?\Volume{bcbe9ede-e6d1-11de-8e59-806e6f6e6963}\
         Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy2
         Originating Machine: Dell-P370
         Service Machine: Dell-P370
         Provider: 'Microsoft Software Shadow Copy provider 1.0'
         Type: ClientAccessibleWriters
         Attributes: Persistent, Client-accessible, No auto release, Differential, Auto recovered

      Shadow Copy ID: {1a114272-e9f0-40a6-a3ca-31f985b5c373}
         Original Volume: (E:)\\?\Volume{bcbe9edf-e6d1-11de-8e59-806e6f6e6963}\
         Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy4
         Originating Machine: Dell-P370
         Service Machine: Dell-P370
         Provider: 'Microsoft Software Shadow Copy provider 1.0'
         Type: ClientAccessibleWriters
         Attributes: Persistent, Client-accessible, No auto release, Differential, Auto recovered

      Shadow Copy ID: {02b7b622-cf97-48f8-9ecf-f554dd4e4abf}
         Original Volume: (C:)\\?\Volume{bcbe9ee2-e6d1-11de-8e59-806e6f6e6963}\
         Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy7
         Originating Machine: Dell-P370
         Service Machine: Dell-P370
         Provider: 'Microsoft Software Shadow Copy provider 1.0'
         Type: ClientAccessibleWriters
         Attributes: Persistent, Client-accessible, No auto release, Differential, Auto recovered
Rich
The only thing that is certain is that nothing is certain - Heraclitus.