Tweaking.com Support Forums

Main Forum => Tweaking.com Support & Help => Topic started by: Ztruker on May 18, 2012, 05:04:02 pm

Title: Registry Backup Beta
Post by: Ztruker on May 18, 2012, 05:04:02 pm
Found a couple problems with Registry Back Beta v0.9.0.

1. The portable versions does not work, has problem with Volume Shadow Copy. Says to check the Help but I can't find any help.
2. The installed version works but does not respect the location I chose to save the backup in. I set it to  D:\Registry Backup\ but it saved the backup in C:\Reg_Backup\.

I setup the scheduler to run at boot so I'll try that next and see what happens.
Title: Re: Registry Backup Beta
Post by: Shane on May 18, 2012, 05:29:25 pm
Thanks for letting me know :-)

Quote
The portable versions does not work, has problem with Volume Shadow Copy. Says to check the Help but I can't find any help.

Where were you running it from? A network drive or just on the system? When you click backup the program will start the vss_start.exe in the files folder. That will then launch the volume shadow copy service. So I am wondering if for some reason the vss_start.exe didnt get started?

I haven't made the help file yet, waiting till out of beta (Maybe, perhaps I can start building it while in beta) :-) I am gathering feedback and any problems reported to help make the help and f.a.q

Quote
2. The installed version works but does not respect the location I chose to save the backup in. I set it to  D:\Registry Backup\ but it saved the backup in C:\Reg_Backup\.

I just tested and it works for me, can you send me or copy or paste the contents of the settings.ini file in the program folder?

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 18, 2012, 05:54:26 pm
Do me a favor and re download the program and install over the one you have.

It is still the same version. I had a miss spelling that was keeping the schedule task from running properly.

I had the silent command as /silent in the program but in the schedule task I had it \silent

So I made a quick change to the exe and the program now supports "/silent" and "\silent" and "-silent"

I didn't want to make a new version number for such a small change. :wink:

Also the scheduled task runs under the system account. So you wont see it run and it is being ran with the highest privileged. Which means running this way it will have access to all user profiles who have their files protected. So this way it can back up those registry profiles as well :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 18, 2012, 08:54:52 pm
I take back the version number lol

v0.9.1 is out :-)

v0.9.1
Fix bug where when running from the task scheduler it wouldn't grab the user profile locations. This is because the program use to pull the current user profile to get the profile directory. When running from the task scheduler it is ran as the system account which is stored in a different location. This is now fixed.

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on May 18, 2012, 10:58:58 pm
I have tried Registry Backup and there a few things that I noticed!
I also write things that have been fixed, but didn't work in the first beta release, maybe someone who reads this have had the same problem, so they see what fixed it.

This work now in 0.9.1!!!
The first time I open "Registry backup" there is only 3 "user registry files", then if I Close and open the program again there is 7 "User registry files".

It took about 70 sec to backup for me then I backup manually! Thats just an observation, nothing wrong with that time!

I have tried to do a backup and then restore it and it worked!  :cheesy:

These three things are rather unimportant but:
Under "Backup Location" if I have checked "Change backup location" and clicked on the button "Choose folder to store backups" I would like it to start at the latest folder that I have choosen.

Under "Backup Location" again if I have checked "Change backup location" and I have clicked on the text and the text cursor are blinking I also would like to write the backup location and be able to create a folder from there not having to go thru the "Explorer".

In "Check for updates" under settings it says, "Check for program updates at startup", you mean at startup of this program (Registry Backup) not Windows startup (so that you add something to run in the registry)?



If I create a schedule in "scheduling options" and close the option, then I open the "Task scheduler" and change "configure for" from: "Windows server 2003, Windows Xp or Windows 2000" to "Windows 7, Windows Server 2008 R2", then in Scheduling options under settings in registry backup I tried to click on edit it says: Couldn't find Schedule.  Maybe I shouldn't change "configure for" to windows 7?

This work now in 0.9.1!
Backup by using "Task scheduler" doesn't work for me. Then I look in "Process explorer" under taskeng.exe the TweakingRegistryBackup.exe start but it doesn't do anything. I have tried to change options in Task scheduler but nothing helps. I can do a backup manually and "Volume Shadow Copy" works.

This works then I restart the computer!!!
I have noticed when Task schedueler are finished with the backup so I see in Process explorer that the cpu on " TweakingRegistryBackup.exe" are at 25% and vss_start.exe at 0.1% and it doesn't stop.  


In "Log_VSS" I see that then I do a backup it deletes all shadow copies:
(Option: Delete all shadow copies)
This will delete all shadow copies in the system. Are you sure? [Y/N]
- Setting the VSS context to: 0xffffffff
- Deleting shadow copy {b312b803-f794-4726-980f-2ddbc21f47a2} on \\?\Volume{ac49bd0f-c993-11e0-a094-806e6f6e6963}\ from provider {b5946137-7b9f-4925-af80-51abd60b20d5} [0x0042000d]...


I have used erunt a few weeks ago when things got wrong in the registry and it worked fine. This program seems to be even better and it looks good and are easy to use.   :smiley: :cheesy:

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on May 19, 2012, 09:35:15 am
Quote
This work now in 0.9.1!!!
The first time I open "Registry backup" there is only 3 "user registry files", then if I Close and open the program again there is 7 "User registry files"

This was an odd bug. While it got better in 0.9.1 I think I have it fully fixed in 0.9.2.
The program loads an API to get a folder list. For some odd reason at random times the API gets stuck and keeps returning the same folder name. I made my own code to handle it if it does it again. So far so good :-)

Quote
It took about 70 sec to backup for me then I backup manually! Thats just an observation, nothing wrong with that time!

Backup times will vary per machine because it is waiting for the volume shadow copy service to make a snapshot.

Quote
These three things are rather unimportant but:
Under "Backup Location" if I have checked "Change backup location" and clicked on the button "Choose folder to store backups" I would like it to start at the latest folder that I have choosen.

Under "Backup Location" again if I have checked "Change backup location" and I have clicked on the text and the text cursor are blinking I also would like to write the backup location and be able to create a folder from there not having to go thru the "Explorer".

In "Check for updates" under settings it says, "Check for program updates at startup", you mean at startup of this program (Registry Backup) not Windows startup (so that you add something to run in the registry)?

All fixed for you in v0.9.2 :wink:

Quote
If I create a schedule in "scheduling options" and close the option, then I open the "Task scheduler" and change "configure for" from: "Windows server 2003, Windows Xp or Windows 2000" to "Windows 7, Windows Server 2008 R2", then in Scheduling options under settings in registry backup I tried to click on edit it says: Couldn't find Schedule.  Maybe I shouldn't change "configure for" to windows 7?

Just leave it the default and it will still work fine.

Quote
This work now in 0.9.1!
Backup by using "Task scheduler" doesn't work for me. Then I look in "Process explorer" under taskeng.exe the TweakingRegistryBackup.exe start but it doesn't do anything. I have tried to change options in Task scheduler but nothing helps. I can do a backup manually and "Volume Shadow Copy" works.

That was a spelling mistake that I have fixed. I had the program set to use "/silent" and in the schedule I had it "\silent"
I changed the program to support "/silent", "\silent" and "-silent"

Quote
This works then I restart the computer!!!
I have noticed when Task schedueler are finished with the backup so I see in Process explorer that the cpu on " TweakingRegistryBackup.exe" are at 25% and vss_start.exe at 0.1% and it doesn't stop.

The program taking up that much is one of 2 things. 1. its doing the file copy, which wont take long. 2. it could have been the bug that is hopefully fixed where it would get stuck in a loop trying to search for folders.

Quote
In "Log_VSS" I see that then I do a backup it deletes all shadow copies:
(Option: Delete all shadow copies)
This will delete all shadow copies in the system. Are you sure? [Y/N]
- Setting the VSS context to: 0xffffffff
- Deleting shadow copy {b312b803-f794-4726-980f-2ddbc21f47a2} on \\?\Volume{ac49bd0f-c993-11e0-a094-806e6f6e6963}\ from provider {b5946137-7b9f-4925-af80-51abd60b20d5} [0x0042000d]...

I have it do this by default for 2 reasons.

1. If a backup failed we want to get rid of the old snapshot.
2. We dont want to use any old snap shots or we may get older files.

0.9.2 is out :cheesy:

v0.9.2
Small bug fix where the program would sometimes get stuck in a loop when loading the treeview.
The backup location setting can now be typed in instead of just using the browse button.
The backup location browse button will now default to what ever backup location is currently set.
Spelling changes.

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on May 19, 2012, 10:47:50 am
Ok I have tried 0.9.2 now!

Is there any possibility of choosing whether I want to keep the old files in the shadow copies, because I've been saved by it several times when I have deleted files by mistake.

Quote
"The backup location setting can now be typed in instead of just using the browse button."
It doesn't create any folder then I type there.

Quote
"The backup location browse button will now default to what ever backup location is currently set."
This works!

Quote
"Small bug fix where the program would sometimes get stuck in a loop when loading the treeview."
This seems to work (all the time I have tested)

I have deleted the old schedule and created a new, and then I go to Task Scheduler and run Registry Backup( I haven't rebooted yet) if Registry Backup program is open the vss_start.exe, cmd.exe, vss_7_64.exe, cmd.exe and vss_pause.exe don't use so much cpu, around 0.25%, it makes o backup, but it doesn't stop. And the vss_start.exe isn't under taskeng.exe. If I close Registry Backup vss_start.exe disappears.

If I go to Task Scheduler after closing Registry backup and run Registry Backup the TweakingRegistryBackup.exe starts under taskeng.exe with vss_start.exe, cmd.exe and vss_7_64.exe and vss_7_64.exe uses around 25% cpu but all of them disapperars then they are finished.

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on May 19, 2012, 11:02:53 am
Quote
It doesn't create any folder then I type there.

It will create it when you do a backup :wink:

Quote
I have deleted the old schedule and created a new, and then I go to Task Scheduler and run Registry Backup( I haven't rebooted yet) if Registry Backup program is open the vss_start.exe, cmd.exe, vss_7_64.exe, cmd.exe and vss_pause.exe don't use so much cpu, around 0.25%, it makes o backup, but it doesn't stop. And the vss_start.exe isn't under taskeng.exe. If I close Registry Backup vss_start.exe disappears.

If I go to Task Scheduler after closing Registry backup and run Registry Backup the TweakingRegistryBackup.exe starts under taskeng.exe with vss_start.exe, cmd.exe and vss_7_64.exe and vss_7_64.exe uses around 25% cpu but all of them disapperars then they are finished.

When you start the program and click backup the program will run vss_start.exe. This then runs the vss exe for the system. When the snapshot is made the vss_pause.exe runs. This keeps the snap shot.

The vss_start.exe looks if the Registry backup program is running. If it isnt it closes the vss_pause. Which then allows the snap shot to close and be done. At which point you see the rest of the exe's close and vss_start closes itself.

The vss exe that is making the snap shot will uses some cpu as it is building the snap shot.

Once the snap shot is made the program starts copying the files from the snap shot, so you will see the program use as much cpu as it can as it copies the files as fast as it can.

Once everything is done you see everything go back to normal. The vss_start stays running until the backup program is closed. So if you clicked backup again without restarting it the backup would be very fast as the snapshot is still made. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on May 19, 2012, 11:26:03 am
Quote
Quote
It doesn't create any folder then I type there.
Quote
It will create it when you do a backup

It didn't work. I tried to do a backup after I changed the pathway, but it did a backup in the previous one(C:\Reg_Backup\) not in C:\Reg_Backup2\ that I tried.
The next time I open the Registry Backup program it didn't remeber that I wrote in "change backup location".

Quote
When you start the program and click backup the program will run vss_start.exe. This then runs the vss exe for the system. When the snapshot is made the vss_pause.exe runs. This keeps the snap shot.

The vss_start.exe looks if the Registry backup program is running. If it isnt it closes the vss_pause. Which then allows the snap shot to close and be done. At which point you see the rest of the exe's close and vss_start closes itself.

The vss exe that is making the snap shot will uses some cpu as it is building the snap shot.

Once the snap shot is made the program starts copying the files from the snap shot, so you will see the program use as much cpu as it can as it copies the files as fast as it can.

Once everything is done you see everything go back to normal. The vss_start stays running until the backup program is closed. So if you clicked backup again without restarting it the backup would be very fast as the snapshot is still made.

Ok I see that now!  :smiley:

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on May 19, 2012, 12:35:57 pm
Quote
It didn't work. I tried to do a backup after I changed the pathway, but it did a backup in the previous one(C:\Reg_Backup\) not in C:\Reg_Backup2\ that I tried.
The next time I open the Registry Backup program it didn't remeber that I wrote in "change backup location".

That is because I am a dork lol

Thats what I get for programming before coffee. As soon as I woke up and read your post I started making the changes.

I forgot to put any code behind the text box being typed into. I updated the exe, just redownload it. Still the same version.

I also found the bug Ztruker said he had. The browse button didnt have the flag to set the backup path variable in the program. But when you restarted the program it worked fine.

I fixed that as well. Just had to add this to the browse button, and of course it is also added to the textbox when typing :-)

    If Trim$(TextBackupPath.Text) = "" Then
        sBackupPath = App.Path & "\Backups\"
    Else
        sBackupPath = TextBackupPath.Text
    End If

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 19, 2012, 01:39:21 pm
Hi Shane, thanks for the quick response.

I installed 0.9.2 over 0.9.0 and the selected backup location is now working.

Scheduled task never seems to complete. I deleted the scheduled task, created a new one and will try it again.

This is under Windows 7 Pro X64 on a Dell Precision 370 P4 3.4Ghz (dual threaded), 4GB RAM
Title: Re: Registry Backup Beta
Post by: Shane on May 19, 2012, 02:20:13 pm
Let me know how the schedule task goes :-)

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 19, 2012, 07:56:13 pm
It looks like the scheduled backup completed but the task itself never terminated and was stopped when it reached it's max run time which I set to 30 minutes.


(http://i16.photobucket.com/albums/b5/ztruker/RegBackSchedTaskInfo.png)

I just ran it again by starting it from the Task Scheduler and it ran and completed quickly.


Code: [Select]
Information 5/19/2012 10:42:58 PM 102 Task completed (2) 5d386e9c-22c0-4527-99fa-d684951c8592
Information 5/19/2012 10:42:58 PM 201 Action completed (2) 5d386e9c-22c0-4527-99fa-d684951c8592
Information 5/19/2012 10:42:29 PM 129 Created Task Process Info
Information 5/19/2012 10:42:29 PM 200 Action started (1) 5d386e9c-22c0-4527-99fa-d684951c8592
Information 5/19/2012 10:42:29 PM 100 Task Started (1) 5d386e9c-22c0-4527-99fa-d684951c8592
Information 5/19/2012 10:42:29 PM 319 Task Engine received message to start task (1)
Information 5/19/2012 10:42:29 PM 110 Task triggered by user Info 5d386e9c-22c0-4527-99fa-d684951c8592
Information 5/19/2012 10:42:13 PM 129 Created Task Process Info
Information 5/19/2012 10:42:13 PM 200 Action started (1) 4bceecc6-3749-4aa3-9856-a9a4dc36c762
Information 5/19/2012 10:42:13 PM 100 Task Started (1) 4bceecc6-3749-4aa3-9856-a9a4dc36c762
Information 5/19/2012 10:42:13 PM 319 Task Engine received message to start task (1)
Information 5/19/2012 10:42:13 PM 110 Task triggered by user Info 4bceecc6-3749-4aa3-9856-a9a4dc36c762

I'll try it again from a boot and see what happens.
Title: Re: Registry Backup Beta
Post by: Ztruker on May 19, 2012, 08:15:18 pm
Scheduled backup not working correctly or at least not ending. I rebooted at 10:58, here is the Task log:

Code: [Select]
Information 5/19/2012 10:58:52 PM 129 Created Task Process Info
Information 5/19/2012 10:58:51 PM 200 Action started (1) 79f591a5-e685-4d27-ad3a-14aa4716c9ba
Information 5/19/2012 10:58:51 PM 100 Task Started (1) 79f591a5-e685-4d27-ad3a-14aa4716c9ba
Information 5/19/2012 10:58:51 PM 319 Task Engine received message to start task (1)
Information 5/19/2012 10:58:51 PM 118 Task triggered by computer startup Info 79f591a5-e685-4d27-ad3a-14aa4716c9ba

It has not completed as far as I can tell and it's not 11:15PM.. No new backup in D:\Registry Backups and nothing in Log_Backup.txt to show it';s even started.

Works correctly if I start it from the Task Scheduler under my own account but doesn't seem to run right when run under SYSTEM.
Title: Re: Registry Backup Beta
Post by: Shane on May 19, 2012, 10:15:09 pm
I know what is happening. In silent mode if the vss service fails to run the program doesn't close. It is set to close after the backup. But if vss fails it doesn't do the backup.

In the next version I will have it to where it will close if it fails as well. :wink:

Run it again from startup and if it doesnt close check the vss_log.txt and let me know what it says if anything.

The logs are deleted and recreated for each backup. So see if the date modified on the file is correct.

The schedule is working on my windows 7 64 bit under system, but I have UAC turned off. Is your UAC on?

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on May 19, 2012, 10:33:55 pm
Quote
The backup location setting can now be typed in instead of just using the browse button.
This work now! :wink:

Is there any possibility to just delete "old snap shots" instead of "delete all shadow copies"?

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on May 19, 2012, 10:36:36 pm
I haven't tested it otherwise. I should :-)

I am making a v0.9.3 right now. I want to find out why Ztruker is having trouble with the schedule.

So I have added a new option to the schedule settings. You can now choose to create the schedule and have it run either under the current user account or the system account.

This way he can have it run under the current user account and he will be able to see the program and find out why it isnt closing :-)

Should have it ready soon. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 19, 2012, 10:49:09 pm
Ok done

v0.9.3
Added new options to the schedule settings. You can now choose to have the schedule run under the current user account or the system account.
Small code changes.

So now Ztruker have it run under the current user account and hopefully we can see why it isn't closing :-)

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on May 19, 2012, 11:40:05 pm
I have tried 0.9.3

I have tried run scheduling options "Run under current user account" and I noticed that Registry Backup program start and closes then it are finished.

When I tried to run scheduling options "Run under System Account" it works like before - invisible (silent).

I also tried 0.9.3 Portable
Works like above

But when I start both versions they don't remeber which "Scheduling Options" I choose last time. I have choosen "System account", but the options that is selected is "Current user account"

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on May 20, 2012, 09:52:13 am
Quote
But when I start both versions they don't remeber which "Scheduling Options" I choose last time. I have choosen "System account", but the options that is selected is "Current user account"

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.

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 20, 2012, 10:49:43 am
Yes, I also have UAC turned off.

This is going to be a large post sorry, but I will include the Log_VSS.txt and Log_Backup.txt files. The Log_VSS.txt concerns me. I hope it is not doing what it says it's doing and actually deleting all shadow copies in the system. ShadowExplorer shows my shadow copy data is still there so this must mean only the Registry Backup data, right?????

Here are the log files. Note that 11:44PM is when I shut down last night so that's when everything magically appeared. All the files must have still been open so were not visible. Might want to explicitly close them when the backup is done.


Log_VSS.txt

Code: [Select]
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Program Files (x86)\Tweaking.com\Registry Backup>
CD /D C:\

C:\>
"C:\Program Files (x86)\Tweaking.com\Registry Backup\files\vss_7_64.exe" -da

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

(Option: Delete all shadow copies)
This will delete all shadow copies in the system. Are you sure? [Y/N]

- Setting the VSS context to: 0xffffffff

There are no shadow copies on the system

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.

B:: The operation completed successfully.

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 '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 'Registry Writer':
   - Add component \Registry
 * Writer 'WMI Writer':
   - Add component \WMI
 * Writer 'COM+ REGDB Writer':
   - Add component \COM+ REGDB
Creating shadow set {918d3385-d5a3-4faf-846f-051f3f7d3263} ...
- 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 {918d3385-d5a3-4faf-846f-051f3f7d3263} ...

* SNAPSHOT ID = {959ce2f7-e162-4aad-8cbb-6380faa808bd} ...
   - Shadow copy Set: {918d3385-d5a3-4faf-846f-051f3f7d3263}
   - Original count of shadow copies = 1
   - Original Volume name: \\?\Volume{bcbe9ee2-e6d1-11de-8e59-806e6f6e6963}\ [C:\]
   - Creation Time: 5/20/2012 11:44:26 AM
   - Shadow copy device name: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1
   - 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.

C:\>
[11:44:55 AM] Closed. No longer reading pipes.
[11:44:55 AM] Error: 402 - Not processing a command to cancel.
[11:44:55 AM] Error: 402 - Not processing a command to cancel.

Log_Backup.txt:
Code: [Select]
Waiting for Volume Shadow Copy...

Auto Delete Old Backups Enabled, Working...
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Starting Backup...
Backup Location: D:\Registry Backup\

Files To Backup:
--------------------------------------------------------------------------------
C:\Windows\System32\Config\default
C:\Windows\System32\Config\sam
C:\Windows\System32\Config\security
C:\Windows\System32\Config\software
C:\Windows\System32\Config\system
C:\Users\Administrator\AppData\Local\Microsoft\Windows\UsrClass.dat
C:\Users\Administrator\ntuser.dat
C:\Users\Default\ntuser.dat
C:\Users\Guest\AppData\Local\Microsoft\Windows\UsrClass.dat
C:\Users\Guest\ntuser.dat
C:\Users\rrkurtz\AppData\Local\Microsoft\Windows\UsrClass.dat
C:\Users\rrkurtz\ntuser.dat
C:\Users\UpdatusUser\AppData\Local\Microsoft\Windows\UsrClass.dat
C:\Users\UpdatusUser\ntuser.dat
C:\Windows\ServiceProfiles\LocalService\ntuser.dat
C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
--------------------------------------------------------------------------------

Backing Up Files...:
--------------------------------------------------------------------------------
Backing Up File: C:\Windows\System32\Config\default
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Windows\System32\Config\default

Backing Up File: C:\Windows\System32\Config\sam
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Windows\System32\Config\sam

Backing Up File: C:\Windows\System32\Config\security
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Windows\System32\Config\security

Backing Up File: C:\Windows\System32\Config\software
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Windows\System32\Config\software

Backing Up File: C:\Windows\System32\Config\system
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Windows\System32\Config\system

Backing Up File: C:\Users\Administrator\AppData\Local\Microsoft\Windows\UsrClass.dat
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Users\Administrator\AppData\Local\Microsoft\Windows\UsrClass.dat

Backing Up File: C:\Users\Administrator\ntuser.dat
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Users\Administrator\ntuser.dat

Backing Up File: C:\Users\Default\ntuser.dat
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Users\Default\ntuser.dat

Backing Up File: C:\Users\Guest\AppData\Local\Microsoft\Windows\UsrClass.dat
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Users\Guest\AppData\Local\Microsoft\Windows\UsrClass.dat

Backing Up File: C:\Users\Guest\ntuser.dat
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Users\Guest\ntuser.dat

Backing Up File: C:\Users\rrkurtz\AppData\Local\Microsoft\Windows\UsrClass.dat
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Users\rrkurtz\AppData\Local\Microsoft\Windows\UsrClass.dat

Backing Up File: C:\Users\rrkurtz\ntuser.dat
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Users\rrkurtz\ntuser.dat

Backing Up File: C:\Users\UpdatusUser\AppData\Local\Microsoft\Windows\UsrClass.dat
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Users\UpdatusUser\AppData\Local\Microsoft\Windows\UsrClass.dat

Backing Up File: C:\Users\UpdatusUser\ntuser.dat
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Users\UpdatusUser\ntuser.dat

Backing Up File: C:\Windows\ServiceProfiles\LocalService\ntuser.dat
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Windows\ServiceProfiles\LocalService\ntuser.dat

Backing Up File: C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
Result: Successful - D:\Registry Backup\DELL-P370\5.20.2012_11.44.42-AM\C\Windows\ServiceProfiles\NetworkService\ntuser.dat
--------------------------------------------------------------------------------

One change I would strongly suggest is to time stamp each log entry so you know how long it's taking to do things.

I'll try 0.9.3 and run under my account, see what happens.
Title: Re: Registry Backup Beta
Post by: Ztruker on May 20, 2012, 11:03:01 am
Installed 0.9.3 and it says it failed.

(http://i16.photobucket.com/albums/b5/ztruker/RegBackSchedTaskInfo-1.jpg)

Here are the log files:

Log_Backup.txt:

Code: [Select]
Waiting for Volume Shadow Copy...

Auto Delete Old Backups Enabled, Working...
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Starting Backup...
Backup Location: D:\Registry Backup\
Files To Backup:
--------------------------------------------------------------------------------
C:\Windows\System32\Config\default
C:\Windows\System32\Config\sam
C:\Windows\System32\Config\security
C:\Windows\System32\Config\software
C:\Windows\System32\Config\system
C:\Users\Administrator\AppData\Local\Microsoft\Windows\UsrClass.dat
C:\Users\Administrator\ntuser.dat
C:\Users\Default\ntuser.dat
C:\Users\Guest\AppData\Local\Microsoft\Windows\UsrClass.dat
C:\Users\Guest\ntuser.dat
C:\Users\rrkurtz\AppData\Local\Microsoft\Windows\UsrClass.dat
C:\Users\rrkurtz\ntuser.dat
C:\Users\UpdatusUser\AppData\Local\Microsoft\Windows\UsrClass.dat
C:\Users\UpdatusUser\ntuser.dat
C:\Windows\ServiceProfiles\LocalService\ntuser.dat
C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
--------------------------------------------------------------------------------

Backing Up Files...:
--------------------------------------------------------------------------------
Backing Up File: C:\Windows\System32\Config\default
Result: Failed - Error: 0: The operation completed successfully.
                                                                                                                                                                 
Backing Up File: C:\Windows\System32\Config\sam
Result: Failed - Error: 0: The operation completed successfully.
                                                                                                                                                                 
Backing Up File: C:\Windows\System32\Config\security
Result: Failed - Error: 0: The operation completed successfully.
                                                                                                                                                                 
Backing Up File: C:\Windows\System32\Config\software
Result: Failed - Error: 0: The operation completed successfully.
                                                                                                                                                                 
Backing Up File: C:\Windows\System32\Config\system
Result: Failed - Error: 0: The operation completed successfully.                                                                                                                                                         

Backing Up File: C:\Users\Administrator\AppData\Local\Microsoft\Windows\UsrClass.dat
Result: Failed - Error: 0: The operation completed successfully.                                                                                                                                                               

Backing Up File: C:\Users\Administrator\ntuser.dat
Result: Failed - Error: 0: The operation completed successfully.                                                                                                                                                               

Backing Up File: C:\Users\Default\ntuser.dat
Result: Failed - Error: 0: The operation completed successfully.                                                                                                                                                         

Backing Up File: C:\Users\Guest\AppData\Local\Microsoft\Windows\UsrClass.dat
Result: Failed - Error: 0: The operation completed successfully.                                                                                                                                                               

Backing Up File: C:\Users\Guest\ntuser.dat
Result: Failed - Error: 0: The operation completed successfully.

Backing Up File: C:\Users\rrkurtz\AppData\Local\Microsoft\Windows\UsrClass.dat
Result: Failed - Error: 0: The operation completed successfully.

Backing Up File: C:\Users\rrkurtz\ntuser.dat
Result: Failed - Error: 0: The operation completed successfully.
 
Backing Up File: C:\Users\UpdatusUser\AppData\Local\Microsoft\Windows\UsrClass.dat
Result: Failed - Error: 0: The operation completed successfully.

Backing Up File: C:\Users\UpdatusUser\ntuser.dat
Result: Failed - Error: 0: The operation completed successfully.

Backing Up File: C:\Windows\ServiceProfiles\LocalService\ntuser.dat
Result: Failed - Error: 0: The operation completed successfully.
 
Backing Up File: C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
Result: Failed - Error: 0: The operation completed successfully.
--------------------------------------------------------------------------------

Log_VSS.txt:
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:\Program Files (x86)\Tweaking.com\Registry Backup\files\vss_7_64.exe" -da

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

(Option: Delete all shadow copies)
This will delete all shadow copies in the system. Are you sure? [Y/N]

- Setting the VSS context to: 0xffffffff
- Deleting shadow copy {7308fad1-040b-4fd1-b045-516c71c8f33d} on \\?\Volume{bcbe9ede-e6d1-11de-8e59-806e6f6e6963}\ from provider {b5946137-7b9f-4925-af80-51abd60b20d5} [0x0042000d]...
- Deleting shadow copy {f2dd77a7-2e20-4c01-a028-4ec6f8190164} on \\?\Volume{bcbe9edf-e6d1-11de-8e59-806e6f6e6963}\ from provider {b5946137-7b9f-4925-af80-51abd60b20d5} [0x0042000d]...
- Deleting shadow copy {03e34211-4705-40df-81f1-9328873b9e70} on \\?\Volume{bcbe9ee2-e6d1-11de-8e59-806e6f6e6963}\ from provider {b5946137-7b9f-4925-af80-51abd60b20d5} [0x0042000d]...

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.

B:: The operation completed successfully.


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 'COM+ REGDB Writer':
   - Add component \COM+ REGDB
 * Writer 'WMI Writer':
   - Add component \WMI
 * Writer 'Registry Writer':
   - Add component \Registry
Creating shadow set {eeb3c839-bd43-4f54-8d2a-dd8300af379e} ...
- 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 {eeb3c839-bd43-4f54-8d2a-dd8300af379e} ...

* SNAPSHOT ID = {e00067a4-dc2d-45dd-a8b3-d6d714edaeca} ...
   - Shadow copy Set: {eeb3c839-bd43-4f54-8d2a-dd8300af379e}
   - Original count of shadow copies = 1
   - Original Volume name: \\?\Volume{bcbe9ee2-e6d1-11de-8e59-806e6f6e6963}\ [C:\]
   - Creation Time: 5/20/2012 1:54:57 PM
   - Shadow copy device name: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy5
   - 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.

C:\>
[1:57:47 PM] Closed. No longer reading pipes.
[1:57:47 PM] Error: 402 - Not processing a command to cancel.
[1:57:47 PM] Error: 402 - Not processing a command to cancel.
Title: Re: Registry Backup Beta
Post by: Shane on May 20, 2012, 11:06:45 am
That shows that every worked like it should :-)

But as both of you have mentioned the program deletes old snap shots before it runs. I did this to remove any snap shots it might have made but didn't close. But I just realized this isnt a good idea.

What if another program is running at the same time that is using a snap shot of its own? Like another backup program?

I cant have it removing the snap shot now can I?  :wink:

So I removed it from deleting old snap shots.

So same version, just re download it and install over your current one. You will see the vss_start.exe has a date modified of today.

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 20, 2012, 11:09:48 am
Ztruker,

The new quick update will no longer delete old snap shots so grab it.

I will work on adding times to the log files. Also right now I have the log files get over written. I am wondering if I should have the log files save with the backups, this way a log of each backup can be kept, what do you think?

Also the errors you showed. The log shows that the snap shot got created but the copy failed for some reason and it isnt showing the error why.

I will see if I can improve the error reporting so we can see why it didnt copy the files over.

When both of these are done I will put v0.9.4 out :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 20, 2012, 11:19:42 am
Thanks Shane. I like the idea of keeping the log files with the snapshot.

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.

Edit #2: I ran the above under my account. Just tried it under System and get the same failure.
Title: Re: Registry Backup Beta
Post by: Shane 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
Title: Re: Registry Backup Beta
Post by: Ztruker 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.

Title: Re: Registry Backup Beta
Post by: Ztruker 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.

Title: Re: Registry Backup Beta
Post by: Shane 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
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden 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
Title: Re: Registry Backup Beta
Post by: Shane 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
Title: Re: Registry Backup Beta
Post by: Shane 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
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden 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
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden 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
Title: Re: Registry Backup Beta
Post by: Ztruker 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.
Title: Re: Registry Backup Beta
Post by: Ztruker 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.
Title: Re: Registry Backup Beta
Post by: Ztruker 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.

(http://i16.photobucket.com/albums/b5/ztruker/RegBackSchedTaskMgr.jpg)

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.


Title: Re: Registry Backup Beta
Post by: Ztruker 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?
Title: Re: Registry Backup Beta
Post by: Shane 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.

Title: Re: Registry Backup Beta
Post by: Shane 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
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden 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
Title: Re: Registry Backup Beta
Post by: Shane 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
Title: Re: Registry Backup Beta
Post by: Shane 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
Title: Re: Registry Backup Beta
Post by: Ztruker 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.
--------------------------------------------------------------------------------
Title: Re: Registry Backup Beta
Post by: Shane 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
Title: Re: Registry Backup Beta
Post by: Shane 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
Title: Re: Registry Backup Beta
Post by: Ztruker 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>


Title: Re: Registry Backup Beta
Post by: Shane 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
Title: Re: Registry Backup Beta
Post by: Shane 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
Title: Re: Registry Backup Beta
Post by: Ztruker 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
Title: Re: Registry Backup Beta
Post by: Shane on May 23, 2012, 05:54:58 pm
It wont hurt anything. They will just make new snap shots when they need them. They do it already.

Otherwise the data in the snap shot becomes old :wink:

As you remember my program was deleting them before and caused no problems.

Try it out and let me know if clearing those works.

If it does I have to find out why it is passing the wrong info in the script. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 23, 2012, 05:57:18 pm
And to help see what is showing on B: at the time I will add
"dir b:" to the logs. This will list the files on the root of B:.

This way if it is pointing to the wrong snap shot we will then see what it is pointing to :-)

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 23, 2012, 06:02:47 pm
Same problem after deleting shadows on all volumes, C: D: and E:.

[5/23/2012 - 9:01:51 PM] Backing Up Files...:
[5/23/2012 - 9:01:51 PM] --------------------------------------------------------------------------------
[5/23/2012 - 9:01:51 PM] Backing Up File: C:\Windows\System32\Config\default
[5/23/2012 - 9:01:51 PM] Result: Failed - Error: Couldn't find the file on the volume snapshot.
Title: Re: Registry Backup Beta
Post by: Shane on May 23, 2012, 06:04:14 pm
Post the vss log for me. I need to see if it is still pointing to the wrong snap shot.

You can also do this, which the program will on the next update.

When you do a backup do not close the program yet, leave it open so the snap shot stays open.

Open a cmd window and put in

dir B:

That will list the files on B:

What does it pull up?

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 23, 2012, 06:12:50 pm
Code: [Select]
>dir b:
The system cannot find the path specified.

>dir b:\
The system cannot find the path specified.

Code: [Select]
C:\Users\rrkurtz>vssadmin list shadows
vssadmin 1.1 - Volume Shadow Copy Servi
(C) Copyright 2001-2005 Microsoft Corp.

No items found that satisfy the query.

Code: [Select]
[5/23/2012 - 9:09:46 PM]
--------------------------------------------------------------------------------
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Program Files (x86)\Tweaking.com\Registry Backup>
--------------------------------------------------------------------------------
[5/23/2012 - 9:09:46 PM]
--------------------------------------------------------------------------------
CD /D C:\

C:\>
--------------------------------------------------------------------------------
[5/23/2012 - 9:09:46 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

--------------------------------------------------------------------------------
[5/23/2012 - 9:09:46 PM]
--------------------------------------------------------------------------------

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/23/2012 - 9:10:31 PM]
--------------------------------------------------------------------------------

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

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

[This script is generated by VSHADOW.EXE for the shadow set {4badf327-19f7-4d78-9ed1-fe60194e7642}]

--------------------------------------------------------------------------------
[5/23/2012 - 9:10:31 PM]
--------------------------------------------------------------------------------

C:\>SET SHADOW_SET_ID={4badf327-19f7-4d78-9ed1-fe60194e7642}

C:\>SET SHADOW_ID_1={624b581a-5d69-4377-a6f8-0fca2ec61188}

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

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

--------------------------------------------------------------------------------
[5/23/2012 - 9:10:31 PM]
--------------------------------------------------------------------------------
Current definition: B: = \??\GLOBALROOT\Device\HarddiskVolumeShadowCopy8

C:\>"C:\Program Files (x86)\Tweaking.com\Registry Backup\files\dosdev.exe"
--------------------------------------------------------------------------------
[5/23/2012 - 9:10:31 PM]
--------------------------------------------------------------------------------
B: = \??\GLOBALROOT\Device\HarddiskVolumeShadowCopy8 [NoRootDir] *** LOGICAL DRIVE BIT NOT SET ***
C: = \Device\HarddiskVolume5 [Fixed]
D: = \Device\HarddiskVolume1 [Fixed]
E: = \Device\HarddiskVolume2 [Fixed]
F: = \Device\HarddiskVolume3 [Fixed]
G: = \Device\HarddiskVolume6 [Fixed]
H: = \Device\HarddiskVolume7 [Fixed]
I: = \Device\HarddiskVolume8 [Fixed]
O: = \Device\CdRom0 [CDRom]

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

--------------------------------------------------------------------------------
[5/23/2012 - 9:10:52 PM]
--------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------
[5/23/2012 - 9:10:52 PM]
--------------------------------------------------------------------------------
Current definition: B: = \??\GLOBALROOT\Device\HarddiskVolumeShadowCopy8
B: deleted.

--------------------------------------------------------------------------------
[5/23/2012 - 9:10:54 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 '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.
- 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 'Registry Writer':
   - Add component \Registry
 * Writer 'COM+ REGDB Writer':
   - Add component \COM+ REGDB
 * Writer 'WMI Writer':
   - Add component \WMI
Creating shadow set {208494ff-45c7-4082-86a3-750db3c29517} ...
- 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 {208494ff-45c7-4082-86a3-750db3c29517} ...

* SNAPSHOT ID = {429519cb-419b-4788-8df0-f2b4b4e683ce} ...
   - Shadow copy Set: {208494ff-45c7-4082-86a3-750db3c29517}
   - Original count of shadow copies = 1
   - Original Volume name: \\?\Volume{bcbe9ee2-e6d1-11de-8e59-806e6f6e6963}\ [C:\]
   - Creation Time: 5/23/2012 9:10:27 PM
   - Shadow copy device name: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy13
   - 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/23/2012 - 9:10:54 PM]
--------------------------------------------------------------------------------

C:\>
--------------------------------------------------------------------------------
[5/23/2012 - 9:10:57 PM]
--------------------------------------------------------------------------------
Closed. No longer reading pipes.
--------------------------------------------------------------------------------

The weird part is this works fine when it's run automatically at boot time.
Title: Re: Registry Backup Beta
Post by: Shane on May 23, 2012, 06:18:06 pm
How odd, why is it doing that?

The volume shadow copy reported back to my program with this

Quote

C:\>SET SHADOW_SET_ID={4badf327-19f7-4d78-9ed1-fe60194e7642}

C:\>SET SHADOW_ID_1={624b581a-5d69-4377-a6f8-0fca2ec61188}

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

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

Notice the HarddiskVolumeShadowCopy8

Yet down when it reports what it did you can see it is different

Quote
* SNAPSHOT ID = {429519cb-419b-4788-8df0-f2b4b4e683ce} ...
   - Shadow copy Set: {208494ff-45c7-4082-86a3-750db3c29517}
   - Original count of shadow copies = 1
   - Original Volume name: \\?\Volume{bcbe9ee2-e6d1-11de-8e59-806e6f6e6963}\ [C:\]
   - Creation Time: 5/23/2012 9:10:27 PM
   - Shadow copy device name: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy13
   - Originating machine: Dell-P370
   - Service machine: Dell-P370
   - Not Exposed
   - Provider id: {b5946137-7b9f-4925-af80-51abd60b20d5}
   - Attributes:  Auto_Release Differential

And you see it should have been HarddiskVolumeShadowCopy13.



WAIT.... I just noticed something. The ID should be different each time. I just noticed that the ID in this batch SET SHADOW_SET_ID={4badf327-19f7-4d78-9ed1-fe60194e7642}

is the same as the old log you sent me.

The vss-setvar.cmd file in the windows dir isnt being over written.

Do me a fav and go to Windows\Temp and delete any vss bat file in there and try it again.

Shane

Title: Re: Registry Backup Beta
Post by: Shane on May 24, 2012, 08:36:27 am
Felt I should pass this on as well, the bootable restore was simply one option. The program has a built in restore and I will also have other ways for users to do it.

I havent even written the help file yet lol

http://www.tweaking.com/forums/index.php?topic=275.msg1830#msg1830

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on May 24, 2012, 12:18:49 pm
I have compared your "Registry Backup" and "Mz Registry Backup" all the files that are saved are the same but one, do you know why?

In "Tweaking.com - Registry Backup"
"C:\Users\Default\NTUSER.DAT"
and in "Mz Registry Backkup"
"C:\Boot\BCD"
Tomas
Title: Re: Registry Backup Beta
Post by: Shane on May 24, 2012, 12:25:46 pm
Those are not the same reg files :-)

That program and Erunt both look in the Registry under the hivelist key. This list all loaded reg files but only the loaded ones.

I dont do that, I have the program look at the profiles location for ntuser.dat So it grabs all profiles not just the ones loaded :-)

And the one it is showing is the boot manager reg file. Which I don't have my program worry about as it sits on the unmapped system drive by Windows. But on yours you have it moved to the C:\ drive.

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 24, 2012, 12:27:43 pm
Oh and I am changing the program to make a dos_restore.bat to be stored with each backup.

If the person goes into the recovery console they just have to run that bat file. Nice and easy :-)

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 24, 2012, 03:12:01 pm
The next version will have a restore batch file just like erunt does to run from the recovery console :-)

This will be 1 of the 3 ways I will show people how they can restore the reg in different situations.

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 24, 2012, 04:46:30 pm
Ok new version is just about done.

Some key points that make it better than erunt :-)

When you have to restore from the recovery console erunt makes a batch file that you run that has some simple copy commands. My reg backup now does this as well so you can restore just like erunt.

But on that I made an improvement. When restoring from the recovery console erunt only restores the system registry and none of the profiles. Mine replaces everything. :-)

2nd improvement. In the Vista and Windows 7 repair options it maps the Windows drive as D: instead of C:. Because of this the restore from erunt will fail. I have made the batch file for these version detect what drive letter Windows is on and restore it properly. So my version support the repair options of the new versions of Windows.

Of course the program still has the restore option built into the program that you would run normally and even in safe mode. Again this can both backup and restore all profiles not just the loaded ones like erunt.

Lastly is the way the backups are stored. If needed if a recovery console or repair options are not available you will be able to do a extremely easy copy and paste from any other environment. Such as loading the drive in another system or loading another OS such as the ones that run off cds.

So my new program has the same 3 made restore options as erunt, but Improved them to be easier and work better with the new versions of windows.

And when it is out of beta I will have both guides and video showing how to do each one.

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 24, 2012, 05:47:17 pm
These are the logs from a good scheduled run at boot time. The vss* files in C:\Windows\temp were all dated today when the computer was booted.

Title: Re: Registry Backup Beta
Post by: Shane on May 24, 2012, 05:48:48 pm
Great! it is working.

Now lets see if it stays that way LOL

0.9.7 is out

And thanks again for working with me :artist:

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 24, 2012, 05:54:18 pm
BINGO!!!!! I deleted the vss* files in C:\Windows\temp and the manual backup worked correctly, so it looks like you are right and they are not being over written for some reason and are probably the ones created when by the scheduled backup at boot time.

Hmmm, just ran it again 3 minutes later and it ran okay again. Seems to only not work after the scheduled backup has occurred, which I think it setup to run under SYSTEM, not my login account.

I'll reboot in a little while then try the manual backup without deleting the vss* files in C:\Windows and see what happens.
Title: Re: Registry Backup Beta
Post by: Ztruker on May 24, 2012, 06:28:25 pm
Rebooted with 0.9.7 and there is a problem with the dos_restore.cmd file.

IF EXIST K:\WINDOWS\System32\Config\sam set WindowsDrive=K:
IF EXIST J:\WINDOWS\System32\Config\sam set WindowsDrive=J:
IF EXIST I:\WINDOWS\System32\Config\sam set WindowsDrive=I:
IF EXIST H:\WINDOWS\System32\Config\sam set WindowsDrive=H:
IF EXIST G:\WINDOWS\System32\Config\sam set WindowsDrive=G:
IF EXIST F:\WINDOWS\System32\Config\sam set WindowsDrive=F:
IF EXIST E:\WINDOWS\System32\Config\sam set WindowsDrive=E:
IF EXIST D:\WINDOWS\System32\Config\sam set WindowsDrive=D:
IF EXIST C:\WINDOWS\System32\Config\sam set WindowsDrive=C:

I have Win 7 on C: and Win 8 Customer Preview on I. I guess this will work as it will see the one on C: last and set the WindowsDrive variable correctly, but I think a better method would be for you to look at the HOMEDRIVE environment variable then set WindowsDrive to that value when building the batch file. Should always work.

Ran a manual backup and it worked. Checked C:\Windows\temp and not I have two sets of vss files:
Quote
C:\Windows\Temp>dir vss*
 Volume in drive C is D370_C
 Volume Serial Number is C89E-70E8

 Directory of C:\Windows\Temp

05/24/2012  08:51 PM               308 vss-setvar.cmd
05/24/2012  09:24 PM               308 vss-setvar553.bat
05/24/2012  08:50 PM               518 vss.bat
05/24/2012  09:23 PM               529 vss553.bat
05/24/2012  08:50 PM               290 vss_start.bat
05/24/2012  09:23 PM               296 vss_start553.bat

That works but will end up leaving more and more vss* files there over time. You need to figure out why you were not replacing the vss files before then go back to just the single instance of each.

Were you deleting them before writing new ones previously or just trying to write over them?
Title: Re: Registry Backup Beta
Post by: Shane on May 24, 2012, 06:48:39 pm
Does the HOMEDRIVE environment work in the windows vista and 7 repair environment?

And on the vss bat files. Here is the thing, I have the vss_start.exe set to when it closes it is deleting the files. So it shouldn't be building up. For some reason something is different in yours.

Can you do a check and post a screen shot of the security on the bat files? There has to be a reason for them not getting removed.

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 24, 2012, 06:58:11 pm
I don't know, but what I meant was when you create the dos_restore.cmd file, use the HOMEDRIVE variable then, or is the cmd file already built and not being generated on the computer when backup is run?

Next time I get a chance I'll start the Recovery Console and see what environment variables are set.
Title: Re: Registry Backup Beta
Post by: Shane on May 24, 2012, 07:02:27 pm
Yeah it is built after the backup runs.

Xp was a nightmare to do. VERY limited, I added some reg keys to allow the "set" command in the xp recovery console. I will have a how to on that when out of beta. So you can do
set allowallpaths = true

Without it you cant get to any other folders.

None of the normal commands work in the xp recovery. So it builds a VERY basic copy file just like erunt.

But when I got into vista and 7 they finally have all the commands and I was able to build a much better restore file. :-)

I just built all that code today, so a good run through for any tweaks is always welcome.

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 24, 2012, 07:11:33 pm
Another possibility would be to add a line to backup_info.txt:

WindowsDrive=C:   (or whatever the boot drive actually is)

then you could read that from the dos_restore.cmd file but that's a lot more work. Easiest just to use the HOMEDRIVE variable when creating the cmd file.
Title: Re: Registry Backup Beta
Post by: Shane on May 24, 2012, 07:16:06 pm
Another possibility would be to add a line to backup_info.txt:

WindowsDrive=C:   (or whatever the boot drive actually is)

then you could read that from the dos_restore.cmd file but that's a lot more work. Easiest just to use the HOMEDRIVE variable when creating the cmd file.

See that's not the problem.

The problem is what drive letter did the repair environment give the windows drive?

In my test I found that it was giving the system reserved partition drive C: and the Windows partition drive D:

So the trick is to look for a file on each partition so it knows what drive letter to use.

That is also why I did it from higher to lower with C: being at the bottom. Better chance of it finding the right one on multiple installed systems. :wink:

I only had it go up to J: as just a base line, as I don't know how many are going to show up on someones system if they are multi boot.

I wonder what drive letter your Windows 8 will get when you go into the windows 7 recovery.

Let me know what each drive letter they get is :-)

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 25, 2012, 10:14:01 am
I booted the Recovery Console. My Win 7 boot drive was still C: even though I have a 100MB System Reserved partition. I know you can't depend on that though.

I guess a marker file on the partition is the best way to go unless each partition has a unique UUID or something that you can query in both environments.

The problem with a marker file is if there is more than one bootable Windows partition and Backup is used on each, then how do you tell which one to use?

Interesting problem. Could you key off the partition name? Each one has to be unique I think. For instance, mine are D370_C through D370_I.
Title: Re: Registry Backup Beta
Post by: Shane on May 25, 2012, 10:18:07 am
Marker file could work. And it would be added to the list to check just in case the system got the marker file deleted.

Could have it create either a random marker file that the restore cmd looks for or a marker file based on computer name perhaps?

Have the marker file stored in the windows dir. If I did it with just a computer name, which is easier to keep track of, what are the odds that the dual boot systems will have the same name for each OS?

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 25, 2012, 12:05:46 pm
I think you can use the vol command:

>vol /?
Displays the disk volume label and s

VOL [drive:]

>vol c:
 Volume in drive C is D370_C
 Volume Serial Number is C89E-70E8
>vol d:
 Volume in drive D is D370_D
 Volume Serial Number is 9402-7174

It returns a unique VSN (Volume Serial Number) for each drive or partition. Now to figure out how to parse that info in the dos_restore.cmd file and I think it would be fail safe.
Title: Re: Registry Backup Beta
Post by: Shane on May 25, 2012, 12:08:18 pm
It wouldnt need to look for it in the recovery.

I would have the main program make a file in the windows folder. And when it is done witht he backup it writes the restore cmd which at that point I can tell it what file it needs to look for.

So all I need to do is come up with what to name the file. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 25, 2012, 01:07:21 pm
Ok try this  :cheesy:

Grab the attached file, extract it and replace the exe you have with it.

I have it to where it makes a file int he windows folder and updates the log and restore.cmd file

Try it out and see what you think :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 25, 2012, 01:18:23 pm
Just to finish the thing with vol, this works:

Code: [Select]
@echo off
set l=c:
vol %l% | find "C89E-70E8"
echo %l% errorlevel %errorlevel%
if %errorlevel% EQU 0 goto found

set l=d:
vol %l% | find "C89E-70E8"
echo %l% errorlevel %errorlevel%
if %errorlevel% EQU 0 goto found

set l=e:
vol %l% | find "C89E-70E8"
echo %l% errorlevel %errorlevel%
if %errorlevel% EQU 0 goto found

set l=f:
vol %l% | find "C89E-70E8"
echo %l% errorlevel %errorlevel%
if %errorlevel% EQU 0 goto found

set l=g:
vol %l% | find "C89E-70E8"
echo %l% errorlevel %errorlevel%
if %errorlevel% EQU 0 goto found

set l=h:
vol %l% | find "C89E-70E8"
echo %l% errorlevel %errorlevel%
if %errorlevel% EQU 0 goto found

"C89E-70E8" drive not found
goto done

:found
echo "C89E-70E8" is drive %l%

:done

On my computer, C89E-70E8 is the VSN for my C: drive where Win 7 is installed and where I ran the reg backup. Doing it this way would not require you to write or look for a specific file. Just a suggestion.

There may be a way to put the above in a for loop but I couldn't figure out how to do it.
Title: Re: Registry Backup Beta
Post by: Shane on May 25, 2012, 01:25:28 pm
Thats not a bad idea.

No file has to be made. Just have the program write the serial number of the drive in the restore.

I could use this api in the program to get it
http://msdn.microsoft.com/en-us/library/windows/desktop/aa364993%28v=vs.85%29.aspx

Quote
lpVolumeSerialNumber [out, optional]

    A pointer to a variable that receives the volume serial number.

    This parameter can be NULL if the serial number is not required.

    This function returns the volume serial number that the operating system assigns when a hard disk is formatted.

But there is a drawback.

Some times windows gives the same ID!!!
http://www.sevenforums.com/hardware-devices/178466-two-drives-same-volume-serial-number.html

Perhaps making the file is a good idea.

Try the new exe for that and let me know. i attached it to a earlier post.

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 25, 2012, 01:36:03 pm
See what you mean about VSN. If disk imaging is used to clone two drives or partitions then the VSN will be the same. Bummer. I don't know how to find the Disk Signature that same thread mentioned.

Tried the new exe. It still has both tests, so need to drop the first set.

Code: [Select]
IF EXIST "K:\Windows\System32\Config\sam" set WindowsDrive=K:
IF EXIST "J:\Windows\System32\Config\sam" set WindowsDrive=J:
IF EXIST "I:\Windows\System32\Config\sam" set WindowsDrive=I:
IF EXIST "H:\Windows\System32\Config\sam" set WindowsDrive=H:
IF EXIST "G:\Windows\System32\Config\sam" set WindowsDrive=G:
IF EXIST "F:\Windows\System32\Config\sam" set WindowsDrive=F:
IF EXIST "E:\Windows\System32\Config\sam" set WindowsDrive=E:
IF EXIST "D:\Windows\System32\Config\sam" set WindowsDrive=D:
IF EXIST "C:\Windows\System32\Config\sam" set WindowsDrive=C:

IF EXIST "K:\Windows\tweaking.com-regbackup-DELL-P370.dat" set WindowsDrive=K:
IF EXIST "J:\Windows\tweaking.com-regbackup-DELL-P370.dat" set WindowsDrive=J:
IF EXIST "I:\Windows\tweaking.com-regbackup-DELL-P370.dat" set WindowsDrive=I:
IF EXIST "H:\Windows\tweaking.com-regbackup-DELL-P370.dat" set WindowsDrive=H:
IF EXIST "G:\Windows\tweaking.com-regbackup-DELL-P370.dat" set WindowsDrive=G:
IF EXIST "F:\Windows\tweaking.com-regbackup-DELL-P370.dat" set WindowsDrive=F:
IF EXIST "E:\Windows\tweaking.com-regbackup-DELL-P370.dat" set WindowsDrive=E:
IF EXIST "D:\Windows\tweaking.com-regbackup-DELL-P370.dat" set WindowsDrive=D:
IF EXIST "C:\Windows\tweaking.com-regbackup-DELL-P370.dat" set WindowsDrive=C:

The problem still exists where I can have a multi-boot system and ran the backup from I: one time and from C: another.  Your test would always find the one on C: and copy the files saved from I: to C:.

As I mentioned before, I have Win 7, called DELL-P370 on I: and Win 8 Consumer Preview, also called DELL-P370 on I: I do it this way so the computer name is always the same on my network irregardless of which version I boot. Makes sharing much easier.
Title: Re: Registry Backup Beta
Post by: Ztruker on May 25, 2012, 01:43:59 pm
Just had a new thought.

Take a page from ERUNT and create a folder under \Windows that holds the backups, removing the ability to specify where the backups are written. Then it's real simple to refer to directories using \.

attrib -h -s "\Windows\System32\Config\default"
attrib -h -s "Windows\System32\Config\default.old"
del "\Windows\System32\Config\default.old"
copy "\Windows\System32\Config\default" "\Windows\System32\Config\default.old"
del "\Windows\System32\Config\default"
copy "C\Windows\System32\Config\default" "\Windows\System32\Config\default"
Title: Re: Registry Backup Beta
Post by: Shane on May 25, 2012, 01:56:23 pm
Quote
Tried the new exe. It still has both tests, so need to drop the first set.

I left those on purpose. In case a user deletes the file int he windows dir :-)

Quote
As I mentioned before, I have Win 7, called DELL-P370 on I: and Win 8 Consumer Preview, also called DELL-P370 on I: I do it this way so the computer name is always the same on my network irregardless of which version I boot. Makes sharing much easier.

What if I added the windows version to the file name as well?

Quote
Take a page from ERUNT and create a folder under \Windows that holds the backups, removing the ability to specify where the backups are written. Then it's real simple to refer to directories using \.

attrib -h -s "\Windows\System32\Config\default"
attrib -h -s "Windows\System32\Config\default.old"
del "\Windows\System32\Config\default.old"
copy "\Windows\System32\Config\default" "\Windows\System32\Config\default.old"
del "\Windows\System32\Config\default"
copy "C\Windows\System32\Config\default" "\Windows\System32\Config\default"

This would kill the purpose of letting a user decided where to keep the backups though. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: chris635 on May 25, 2012, 04:27:58 pm
Hey Bud

   Great Program man. Hey is there anyway the program can let me know if the backup was good for a scheduled back up? Say for instance if I set it for 1:00 am, when I wake up, could there be some sort of good or failed back up notification?


Chris
Title: Re: Registry Backup Beta
Post by: Ztruker on May 25, 2012, 04:31:56 pm
Some people have multiple installs of the same version so that could still be problematic, better though.

How important is it to allow people to decide where they want to save the backups? Mine run 137MB which is peanuts with the size of today's hard drives. Even 30 days worth of backups is only 4GB.

It's beginning to sound like a unique file name stored in the \Windows directory  is the only sure way to handle this, bummer. If there was an API to find the Disk Signature then that would also solve the problem.

Hmmmm, what about generating a timestamp as the file name?

tweakBack_yyyymmdd-hhmmss  (or something similar)

No way that can occur on two partitions unless some dummy manages to set the clock back exactly right and if they do then they deserve what they get  :evil:
Title: Re: Registry Backup Beta
Post by: Shane on May 25, 2012, 06:51:14 pm
Quote
Hey Bud

   Great Program man. Hey is there anyway the program can let me know if the backup was good for a scheduled back up? Say for instance if I set it for 1:00 am, when I wake up, could there be some sort of good or failed back up notification?

Chris

Thats a good idea. Did you have any certain way in mind?

Quote
Some people have multiple installs of the same version so that could still be problematic, better though.

How important is it to allow people to decide where they want to save the backups? Mine run 137MB which is peanuts with the size of today's hard drives. Even 30 days worth of backups is only 4GB.

It's beginning to sound like a unique file name stored in the \Windows directory  is the only sure way to handle this, bummer. If there was an API to find the Disk Signature then that would also solve the problem.

Hmmmm, what about generating a timestamp as the file name?

tweakBack_yyyymmdd-hhmmss  (or something similar)

No way that can occur on two partitions unless some dummy manages to set the clock back exactly right and if they do then they deserve what they get  :evil:

The goal is to only make one file. So right now I do computer name. I need something unique from the system to name the file with. But something the program can always pull.

I built it with techs running it from a thumb drive in mind.

Right now the computer name and os version seems like a good middle ground. I cant think that to many people would have the same OS installed more than once (if some do it can't be to many). Normally dual boots are different OS's. Myself I keep each other OS in vmware :-)

Shane
Title: Re: Registry Backup Beta
Post by: peterr on May 26, 2012, 03:06:45 pm


I just knew Shane and Ztruker would work well together -this is great!
I wish I could contribute; David has joined from across the pond as I noticed in the other thread.
I am happy he received my link.
He will also be of great assisstance.
Peter
Title: Re: Registry Backup Beta
Post by: chris635 on May 26, 2012, 03:27:18 pm
Hey Shane
   What I have grown accustomed to in a program I use to image my hard drive and certain files every night, is it will email me the results (successful or failed back up). I don't know how involved you want this to be, if emailing is out of the question then maybe some kind of notification in the system tray. I'm not quite sure what would be best for the masses.


Chris
Title: Re: Registry Backup Beta
Post by: Shane on May 26, 2012, 04:24:02 pm
Hey Shane
   What I have grown accustomed to in a program I use to image my hard drive and certain files every night, is it will email me the results (successful or failed back up). I don't know how involved you want this to be, if emailing is out of the question then maybe some kind of notification in the system tray. I'm not quite sure what would be best for the masses.


Chris

Email would be big to add. SSL, smtp protocol. I never wrote one from scratch which means I would need a 3rd party DLL, which I would have to pay for.

As for the pop ups I thought of that as well. Except one problem.

When running the program under the system account from the task scheduler you dont see the program, because it is being ran as the System account and not the account logged in. So a pop up wouldn't work their either since it wont show.

Only thing I can think of would be to have it right a file to locaiont like the desktop for all users. But that too is kind of pointless.

Shane
Title: Re: Registry Backup Beta
Post by: chris635 on May 26, 2012, 04:38:25 pm
Yeeeaaaaahhhhh lets just scratch that idea lol. Sounds to involved to keep the program free.


Chris
Title: Re: Registry Backup Beta
Post by: Shane on May 26, 2012, 04:47:45 pm
 :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 26, 2012, 04:57:50 pm
You could add another line to backupinfo.txt which is the full path name to the file, something like:

Marker: \windows\tweakBack_yyyymmdd-hhmmss

where tweakBack_yyyymmdd-hhmmss (or any unique name) is generated by your backup program during the backup process. Then dos_restore.cmd could read that info from the backupinfo.txt file to know what to look for with this backup.
Title: Re: Registry Backup Beta
Post by: Shane on May 27, 2012, 02:41:23 pm
You could add another line to backupinfo.txt which is the full path name to the file, something like:

Marker: \windows\tweakBack_yyyymmdd-hhmmss

where tweakBack_yyyymmdd-hhmmss (or any unique name) is generated by your backup program during the backup process. Then dos_restore.cmd could read that info from the backupinfo.txt file to know what to look for with this backup.

For now, and in the next update I will have it do the file name like this for now

C:\Windows\tweaking.com-regbackup-SMC-Microsoft-Windows-7-Ultimate-(64-bit).dat

That should be unique enough for systems that have dual booting :-)

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 27, 2012, 08:04:31 pm
Quick question.

Do any of you use Erunt's optimize registry?

Here is what it does. It calls the regsavekey api which reads the output file. It reads what is in there, same way it does its backups but small and slower.

The registry is a database. And just like all databases becomes bloated with old info that never gets wiped out, overhead I believe is the correct term.

So lets say I have used a database and done a lot of adding and removing. The database becomes bloated and has overhead. You optimize it and it reduces it size getting rid of the over head. You get a smaller faster database.

No different for the registry. I have the code to do this. Should this be something I should add or make another program for, or not worry about it at all?

Just a thought. I figured since I got the code to do it why not ask :-)

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 28, 2012, 07:04:53 am
I would say no. Registry optimization is a waste of time as are Registry cleaners. Both are basically "feel good" operations. By that I mean they make you feel good but have no measurable impact on performance.

If you want to do it, a separate program would be better.

Just my $.02 worth.
Title: Re: Registry Backup Beta
Post by: chris635 on May 28, 2012, 07:36:46 am
Hi Shane
    I agree with ztruker. Now if your one of those guys who is crazy about an oderly kept machine even if there is no gain in speed, then a program like that would most likely get used. I have used the erunt optimizer, but not a whole lot. The times I have used it, it only optimized my registry by about 3% to 7%. Not that big of a difference. I say 6 of 1, half a dozen of the other.


Chris
Title: Re: Registry Backup Beta
Post by: Shane on May 28, 2012, 10:37:16 am
Yeah I will just skip it then.

It doesn't change anything in the reg. It just reads out the registry to a new file. Same as compacting a database file.

I one of my machines that hadn't been reinstalled in over a year, I had so many registry keys added and removed the the software section was 158 MB in size. Did erunt on it and got back down to 67 MB.

But I really didn't notice any speed increase. Really the only speed benefit you will get with the registry as with any file, is file fragmentation. But you cant defrag files in use.

Oh well. Lets just focus on the backup :-)

The program has come a long way in a short time and is looking really good. I am itching to get the help files and videos done. But I dont want to do them till the program is done in case there is more interface changes.

So the question is, how much longer till I take it out of beta?

Shane
Title: Re: Registry Backup Beta
Post by: peterr on May 28, 2012, 10:56:27 am
Shane
This is a response to your program that I found in WTT;because I do not understand it, but because it sounded like there was an issue, I though I would bring it to your attention so you can address it if you wish to.
"Has to be restored from the recovery console? Bad luck If you haven't got one installed or an OS install disk handy.

I'll stick with the simple and faithful ERUNT until the reg. restore on that app. is just a click away ... like with ERUNT.

I do like the idea of the portable version though as that would be very handy, if the restore could be simplified and included in the program. Backup and restore both portable."
Peter
Title: Re: Registry Backup Beta
Post by: Shane on May 28, 2012, 11:08:54 am
When I make the help and videos I will show where people can download free tools to boot up their system with in case they don't have the recovery console.

As long as you have an internet connection you will be able to get it working one way or another :-)

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 28, 2012, 11:17:52 am
I have a list of things to do for the help file and videos.

Here is my list as I have it. Anything you can think of that I should add to the list to do?

Quote
Registry backup help and video ideas:

Videos showing how to use the program, restoring, recovery console, unbuntu and barts pe. Use vmware in the videos to show how.

Help files should have details of everything in the program and the reason why things where done they way they were.

Make sure to show how the program can be used from a thumb drive and on multiple systems for techs.

Make sure to put the respect I have for Erunt. Also list the improvements over it and refer Erunt as a fallback option for machines that are pre-XP or the volume shadow copy service isn't working.

Make sure to have help guides for every volume shadow copy repair I can find, including my own repair tool for it.

Shane
Title: Re: Registry Backup Beta
Post by: chris635 on May 28, 2012, 05:22:51 pm
Looks like you pretty much cover it  :wink:


Chris
Title: Re: Registry Backup Beta
Post by: Ztruker on May 29, 2012, 02:34:20 pm
One more update with the new marker file to test:

C:\Windows\tweaking.com-regbackup-SMC-Microsoft-Windows-7-Ultimate-(64-bit).dat

then I think it's ready for prime time.
Title: Re: Registry Backup Beta
Post by: Shane on May 29, 2012, 02:43:42 pm
One more update with the new marker file to test:

C:\Windows\tweaking.com-regbackup-SMC-Microsoft-Windows-7-Ultimate-(64-bit).dat

then I think it's ready for prime time.

Ok I updated the setup and portable version with the new build. I kept the same version for now, so just install over what you have :wink:
http://www.tweaking.com/content/page/registry_backup.html

Also I was updating my advanced system tweaker with a option to show how many items are in each treeview list. I did the same thing with the reg backup. See what you think and tell me yay or nay :-)

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 29, 2012, 04:24:56 pm
I am adding another tab to the program. "Help & Support"

This tab will point people to the help, how-to and videos for the program.

I haven't done this yet because I don't have anywhere to point them to yet lol

But since the program is nearly out of beta I have got it started.

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 29, 2012, 05:30:54 pm
Ok I went ahead and made v0.9.8

If all goes well I am hoping this will be the last beta. But this will be based on all your feedback :-)

I added the help section, see what you think. of course once final they will point to the proper pages instead of just the product page.

Let me know what you all think  :wink:

Shane
Title: Re: Registry Backup Beta
Post by: chris635 on May 29, 2012, 05:43:41 pm
Hey Shane

     I like the new tab. Just have to get the video's now lol :tongue:

Chris
Title: Re: Registry Backup Beta
Post by: Ztruker on May 29, 2012, 06:49:00 pm
0.9.8 look s real good, worked perfectly. The new tracking file in \Windows is there as it should be.

A few more comments on dos_restore.cmd.

I think the first set of tests should be removed and you should only be looking for the marker file. Also, why check only from K: to C:? Windows can be installed on any drive letter from C: through Z:.

If you do not find it I think the restore should be aborted to prevent restoring the registry backup to the wrong drive. Either that or prompt the user for the drive letter to restore to with some kind of explanation why this is necessary.

I may be overly cautious but I know I would be very upset if using dos_restore.cmd destroyed a drive that should not have been touched. It would make that drive unbootable.
Title: Re: Registry Backup Beta
Post by: Shane on May 29, 2012, 07:12:45 pm
I have that in there in case a user deleted the file. Could happen. I do have it default to C: then it looks for the file.

I had it only go to K as just a starting point. I know Windows 7 repair option uses drive X: and it has a windows folder as well.

But with the custom file this wouldn't be a problem any more. Could also have it to where if a user did delete the custom file and it didnt find it then they would need to use the live cd option then.

If you think it will be better I will leave it as a default C: and remove the first set of checks. :wink:

Or should I remove the default C: as well?

Shane
Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 29, 2012, 07:26:42 pm
I would say remove the C: default as well. If the file isn't found abort the restore or as I suggested, prompt for the drive to restore to.

Just a suggestion. It's a good program that I think will be well received. I haven't tried it on XP yet but will do so soon.
Title: Re: Registry Backup Beta
Post by: Shane on May 29, 2012, 08:46:11 pm
How does this look to you? I still need to test that I did the command code right

Code: [Select]
@echo on
echo This file is only meant to be ran from the Windows Recovery Console. Do not run from with in Windows or it will just fail.

set BackupLocation=%CD%

IF EXIST "Z:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=Z:
IF EXIST "Y:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=Y:
IF EXIST "X:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=X:
IF EXIST "W:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=W:
IF EXIST "V:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=V:
IF EXIST "U:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=U:
IF EXIST "T:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=T:
IF EXIST "S:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=S:
IF EXIST "R:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=R:
IF EXIST "Q:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=Q:
IF EXIST "P:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=P:
IF EXIST "O:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=O:
IF EXIST "N:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=N:
IF EXIST "M:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=M:
IF EXIST "L:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=L:
IF EXIST "K:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=K:
IF EXIST "J:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=J:
IF EXIST "I:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=I:
IF EXIST "H:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=H:
IF EXIST "G:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=G:
IF EXIST "F:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=F:
IF EXIST "E:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=E:
IF EXIST "D:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=D:
IF EXIST "C:\Windows\tweaking.com-regbackup-SMC2-Microsoft-Windows-7-Ultimate-(64-bit).dat" set WindowsDrive=C:

IF DEFINED WindowsDrive GOTO start_process
IF NOT DEFINED WindowsDrive GOTO error_out

:start_process

attrib -h -s "%WindowsDrive%\Windows\System32\Config\default"
attrib -h -s "%WindowsDrive%\Windows\System32\Config\default.old"
del "%WindowsDrive%\Windows\System32\Config\default.old"
copy "%WindowsDrive%\Windows\System32\Config\default" "%WindowsDrive%\Windows\System32\Config\default.old"
del "%WindowsDrive%\Windows\System32\Config\default"
copy "%BackupLocation%\C\Windows\System32\Config\default" "%WindowsDrive%\Windows\System32\Config\default"

attrib -h -s "%WindowsDrive%\Windows\System32\Config\sam"
attrib -h -s "%WindowsDrive%\Windows\System32\Config\sam.old"
del "%WindowsDrive%\Windows\System32\Config\sam.old"
copy "%WindowsDrive%\Windows\System32\Config\sam" "%WindowsDrive%\Windows\System32\Config\sam.old"
del "%WindowsDrive%\Windows\System32\Config\sam"
copy "%BackupLocation%\C\Windows\System32\Config\sam" "%WindowsDrive%\Windows\System32\Config\sam"

attrib -h -s "%WindowsDrive%\Windows\System32\Config\security"
attrib -h -s "%WindowsDrive%\Windows\System32\Config\security.old"
del "%WindowsDrive%\Windows\System32\Config\security.old"
copy "%WindowsDrive%\Windows\System32\Config\security" "%WindowsDrive%\Windows\System32\Config\security.old"
del "%WindowsDrive%\Windows\System32\Config\security"
copy "%BackupLocation%\C\Windows\System32\Config\security" "%WindowsDrive%\Windows\System32\Config\security"

attrib -h -s "%WindowsDrive%\Windows\System32\Config\software"
attrib -h -s "%WindowsDrive%\Windows\System32\Config\software.old"
del "%WindowsDrive%\Windows\System32\Config\software.old"
copy "%WindowsDrive%\Windows\System32\Config\software" "%WindowsDrive%\Windows\System32\Config\software.old"
del "%WindowsDrive%\Windows\System32\Config\software"
copy "%BackupLocation%\C\Windows\System32\Config\software" "%WindowsDrive%\Windows\System32\Config\software"

attrib -h -s "%WindowsDrive%\Windows\System32\Config\system"
attrib -h -s "%WindowsDrive%\Windows\System32\Config\system.old"
del "%WindowsDrive%\Windows\System32\Config\system.old"
copy "%WindowsDrive%\Windows\System32\Config\system" "%WindowsDrive%\Windows\System32\Config\system.old"
del "%WindowsDrive%\Windows\System32\Config\system"
copy "%BackupLocation%\C\Windows\System32\Config\system" "%WindowsDrive%\Windows\System32\Config\system"


attrib -h -s "%WindowsDrive%\Users\Default\ntuser.dat"
attrib -h -s "%WindowsDrive%\Users\Default\ntuser.dat.old"
del "%WindowsDrive%\Users\Default\ntuser.dat.old"
copy "%WindowsDrive%\Users\Default\ntuser.dat" "%WindowsDrive%\Users\Default\ntuser.dat.old"
del "%WindowsDrive%\Users\Default\ntuser.dat"
copy "%BackupLocation%\C\Users\Default\ntuser.dat" "%WindowsDrive%\Users\Default\ntuser.dat"

attrib -h -s "%WindowsDrive%\Users\User\AppData\Local\Microsoft\Windows\UsrClass.dat"
attrib -h -s "%WindowsDrive%\Users\User\AppData\Local\Microsoft\Windows\UsrClass.dat.old"
del "%WindowsDrive%\Users\User\AppData\Local\Microsoft\Windows\UsrClass.dat.old"
copy "%WindowsDrive%\Users\User\AppData\Local\Microsoft\Windows\UsrClass.dat" "%WindowsDrive%\Users\User\AppData\Local\Microsoft\Windows\UsrClass.dat.old"
del "%WindowsDrive%\Users\User\AppData\Local\Microsoft\Windows\UsrClass.dat"
copy "%BackupLocation%\C\Users\User\AppData\Local\Microsoft\Windows\UsrClass.dat" "%WindowsDrive%\Users\User\AppData\Local\Microsoft\Windows\UsrClass.dat"

attrib -h -s "%WindowsDrive%\Users\User\ntuser.dat"
attrib -h -s "%WindowsDrive%\Users\User\ntuser.dat.old"
del "%WindowsDrive%\Users\User\ntuser.dat.old"
copy "%WindowsDrive%\Users\User\ntuser.dat" "%WindowsDrive%\Users\User\ntuser.dat.old"
del "%WindowsDrive%\Users\User\ntuser.dat"
copy "%BackupLocation%\C\Users\User\ntuser.dat" "%WindowsDrive%\Users\User\ntuser.dat"

attrib -h -s "%WindowsDrive%\Windows\ServiceProfiles\LocalService\ntuser.dat"
attrib -h -s "%WindowsDrive%\Windows\ServiceProfiles\LocalService\ntuser.dat.old"
del "%WindowsDrive%\Windows\ServiceProfiles\LocalService\ntuser.dat.old"
copy "%WindowsDrive%\Windows\ServiceProfiles\LocalService\ntuser.dat" "%WindowsDrive%\Windows\ServiceProfiles\LocalService\ntuser.dat.old"
del "%WindowsDrive%\Windows\ServiceProfiles\LocalService\ntuser.dat"
copy "%BackupLocation%\C\Windows\ServiceProfiles\LocalService\ntuser.dat" "%WindowsDrive%\Windows\ServiceProfiles\LocalService\ntuser.dat"

attrib -h -s "%WindowsDrive%\Windows\ServiceProfiles\NetworkService\ntuser.dat"
attrib -h -s "%WindowsDrive%\Windows\ServiceProfiles\NetworkService\ntuser.dat.old"
del "%WindowsDrive%\Windows\ServiceProfiles\NetworkService\ntuser.dat.old"
copy "%WindowsDrive%\Windows\ServiceProfiles\NetworkService\ntuser.dat" "%WindowsDrive%\Windows\ServiceProfiles\NetworkService\ntuser.dat.old"
del "%WindowsDrive%\Windows\ServiceProfiles\NetworkService\ntuser.dat"
copy "%BackupLocation%\C\Windows\ServiceProfiles\NetworkService\ntuser.dat" "%WindowsDrive%\Windows\ServiceProfiles\NetworkService\ntuser.dat"


goto:eof

:error_out

ECHO Couldn't Find Which Drive Is Windows. Restore Cancled. Refer to help on Tweaking.com on what to do next.

goto:eof

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 29, 2012, 08:52:02 pm
Oh I am also adding the file size to the logs

[5/29/2012 - 8:50:42 PM] Backing Up File: C:\WINDOWS\System32\Config\software
[5/29/2012 - 8:50:42 PM] Result: Successful (23296 KB) - C:\RegBackup\NONE-816052AA76\5.29.2012_8.50.34-PM\C\WINDOWS\System32\Config\software

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 29, 2012, 09:03:14 pm
OK tested it and worked in win 7 recovery console.

Both changes are done, new exe is uploaded. Same version. Just redownload.

Try it see if you like the changes :-)

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on May 29, 2012, 11:45:13 pm
Quote
Also I was updating my advanced system tweaker with a option to show how many items are in each treeview list. I did the same thing with the reg backup. See what you think and tell me yay or nay :-)

I really like that! But I would also like to see the total number of backuped files. Like I post in the pictures. 

It looks like the parentheses are slightly elevated, perhaps is the point?

The tab "Help & Support" looks great!  :smiley:

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 09:42:51 am
Quote
I really like that! But I would also like to see the total number of backuped files. Like I post in the pictures. 

OK I changed it to show the grand total at the top, in this case (10) like in the picture :-)

Quote
It looks like the parentheses are slightly elevated, perhaps is the point?

This wasnt on purpose. For some odd reason the text normally follows the rest of the treeview. But when I have the font size set to Verdana 7 point bold (Which is what the treeview is at) it puts the number in parentheses a little higher. (think it is a simple position bug)

So I was about to check the code of the treeview dll to fix it when I realized I like it this way LOL. Having it raised a little help shows that it isn't part of the computer name for example.

Quote
The tab "Help & Support" looks great!

I am glad everyone likes it. I want to put out then first release of it out of beta this Sunday if I can find the time.

I have to make the videos and help files before I put it out. I want the launch to have a good start and having all the info people will need is the way to win people over.

I have to go to customer of mine who is 4 hours away to repair a couple of servers this weekend. And have you ever tried to make videos with you talking when you have 4 kids? (ages 10, 7, 5 and 3) LOL means I will be staying up late to make them since I need them all asleep. :wink:

I will start writing the help files and such very very soon. As I do I will post the links here so I can get feedback on any changes to make to them.

The goal of the help and videos will be to both teach new users and give all the info my fellow techs need.

Shane
Title: Re: Registry Backup Beta
Post by: peterr on May 30, 2012, 12:04:56 pm


Shane
I wish I could help with the tech material but am one the normal users this is aimed at.
I, for one, would be very willing to wait a bit until you catch up. You know what they say about haste.
I have read all the threads and especially Ztruker's comliments and think you have quite the product you set out to do.
When it is ready, I look forward to studying the video/help so I can then properly install the program.
I seems as though users can configure it to backup at boot and restore either within the pogram or via removable media in case the progam is not accesible.
Great.
I'll check in after the weekend and look forward to my job as Johnny Applseed.
Peter
Title: Re: Registry Backup Beta
Post by: Ztruker on May 30, 2012, 04:16:45 pm
I haven't tried the latest yet but this code:

IF DEFINED WindowsDrive GOTO start_process
IF NOT DEFINED WindowsDrive GOTO error_out

The IF NOT DEFINED is superfluous and could just be GOTO error_out since it did not trigger on the IF DEFINED test.

Edit: Just tried the latest 0.9.8 and it works flawlessly. Great job Shane. I think you have a great program that will be well received.
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 04:59:10 pm
Quote
IF DEFINED WindowsDrive GOTO start_process
IF NOT DEFINED WindowsDrive GOTO error_out

The IF NOT DEFINED is superfluous and could just be GOTO error_out since it did not trigger on the IF DEFINED test.

So just change the one line from
IF NOT DEFINED WindowsDrive GOTO error_out
to
GOTO error_out
?

Quote
Edit: Just tried the latest 0.9.8 and it works flawlessly. Great job Shane. I think you have a great program that will be well received.

Glad you like it :-) Now the fun part of the help files. My mind is wired for math and science. Words get mixed around in my head lol

Which is why people are always finding spelling errors in my programs. Thank god for spell check :-)

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 30, 2012, 05:23:59 pm
Here is a way to possibly simplify the dos_restore.batch file"

Code: [Select]
@echo off
Rem Create the input command file for diskpart
echo list volume > tweak_diskpart_in.txt
echo exit >> tweak_diskpart_in.txt

Rem Run diskpart to get a list of volumes on this computer
diskpart < tweak_diskpart_in.txt | find "Partition" > tweak_diskpart_out.txt

Rem Process each line of output from diskpart. Extract the volume letter then
Rem pass that letter to CheckAndRun
for /F "eol=; tokens=2,3*" %%i in (tweak_diskpart_out.txt) do Call :CheckAndRun %%j
Goto Done

Rem See if the marker file is on the passed drive.
Rem Return to the calling for loop if not
Rem If yes then restore the registry to that drive.
:CheckAndRun
set WindowsDrive=
IF EXIST "%1:\Windows\tweaking.com-regbackup-DELL-P370-Microsoft-Windows-7-Professional-(64-bit).dat" set WindowsDrive=%1:

IF NOT DEFINED WindowsDrive goto :eof
echo Marker file found on %1

Rem
Rem Restore code goes here
Rem

set WindowsDrive=
IF EXIST tweak_diskpart_in.txt del tweak_diskpart_in.txt
IF EXIST tweak_diskpart_out.txt del tweak_diskpart_out.txt
exit /b

Rem Cleanup and end
:Done
IF EXIST tweak_diskpart_in.txt del tweak_diskpart_in.txt
IF EXIST tweak_diskpart_out.txt del tweak_diskpart_out.txt

tweak_diskpart_in.txt has the diskpart commands in it:

Code: [Select]
list volume
exit

tweak_diskpart_out.txt will look something like this:

Code: [Select]
  Volume 1     D   D370_D       NTFS   Partition     78 GB  Healthy
  Volume 2     E   D370_E       NTFS   Partition    117 GB  Healthy
  Volume 3     F   D370_F       NTFS   Partition     84 GB  Healthy
  Volume 4         System Rese  NTFS   Partition    100 MB  Healthy    System
  Volume 5     C   D370_C       NTFS   Partition     74 GB  Healthy    Boot
  Volume 6     G   D370_G       NTFS   Partition    698 GB  Healthy
  Volume 7     H   D370_H       NTFS   Partition    542 GB  Healthy    Pagefile
  Volume 8     I   Win_8        NTFS   Partition     78 GB  Healthy

This is for when you're bored and looking for something to play with  :cheesy: :cheesy: :cheesy:
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 05:51:07 pm
Thats a cool idea.

Have you tested it in the recovery section of Vista or 7?

I know Xp recovery console commands where almost completely removed. Only very basic functions. But when I tested in Vista and 7 it looked like they had all the commands. But I haven't checked if everything will work.

I will look into this more down the road. I have to head out this Friday for a customer and 3 servers wont be back till Sat night.

So tonight I have 2 cigars ready  :cheesy: and I will be hammering out the help files and hopefully some videos. My goal being to have things ready for a Sunday Release.

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 30, 2012, 06:12:04 pm
No, I don't have a real XP system to play with. All I have is XP Pro running under Oracle Virtual Box. My computers are Win 7 (2) and Vista.

I know diskpart is a valid RC command in XP, Vista and Win 7 so it "should" work.
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 06:14:36 pm
In the recovery console in XP it wont. They have almost no commands in it. Thats why the restore.cmd file is just a straight C: copy command and nothing more.

Thankfully in vista and 7 they changed that.

I have VMware and have each flavor of Windows installed to help test my programs :-)

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 06:19:49 pm
These are the only commands support in the xp recovery console
http://support.microsoft.com/kb/314058

I also have the program apply a reg tweak for the recovery console to allow users to go to more than the Windows folder.

This will be explained in the help file.

I enable the set command in the reg
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/recovery_console_cmds.mspx?mfr=true

Then in the recovery console a user can do
set AllowAllPaths = true

This will then allow them to go to the reg backup folder.

Thankfully all of this has been changed in Vista and 7 :cheesy:

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 30, 2012, 06:34:14 pm
According to Microsoft, diskpart should work in the XP Recovery Console:

Code: [Select]
Use the help command to list all the following supported commands:

   attrib    del        fixboot   more     set
   batch     delete     fixmbr    mkdir    systemroot
   bootcfg   dir        format    more     type
   cd        disable    help      net           
   chdir     diskpart   listsvc   rd           
   chkdsk    enable     logon     ren           
   cls       exit       map       rename 
   copy      expand     md        rmdir
            
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 06:36:20 pm
Yes but the if and for statements dont :wink:

Found that out when I went to go test the restore on xp in the recovery console.

Then I checked how erunt does its cmd file and it is just a simple copy command.

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 07:02:49 pm
I dont have a copy of Windows 8 yet. By any chance did you confirm it works on your Windows 8?

I am downloading Windows 8 preview now to test and confirm that it works on 8.

Edit: I just updated the product page (New screen shots will be uploaded when released) How does it look to you guys? Anything else I should add to help new users?
http://www.tweaking.com/content/page/registry_backup.html

Of course the help file will have more detailed info.

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 09:33:30 pm
Program works great in Windows 8  :artist:

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 09:55:27 pm
OK first draft of the help page is done
http://www.tweaking.com/articles/pages/tweaking_com_registry_backup_online_help.html

I am horrible at help pages, so any and all feedback is welcome.

Can you make it better? Then please let me know!

So thoughts and feedback.

Working on trouble shooting page now and will post when done. Once that is done I will start the videos. If all goes well they will be done tonight and ready for your feedback. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 10:13:16 pm
Trouble shooting done
http://www.tweaking.com/articles/pages/tweaking_com_registry_backup_online_help,2.html

Next is the videos  :artist:

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on May 30, 2012, 10:28:48 pm
I'm not so good at English but feels like it should be "however" not "how ever", this is under "How do you use the program?"

And under "What settings does the program offer?"  now the text is:
 
Quote
The program offers the following setting.
"Change Backup Location"
Default backup location is in the same folder as the program in the "Backups" folder.

When you install the program this setting is enabled by default and sets the backup folder to "C:\RegBackup\" (or what ever drive Windows is on)
"Auto Delete Old Backups"
This is enabled by default.
This will auto delete old backups from the backup location and for the current system only. It will not delete old backups for other systems. (Example: You run the program from a thumb drive or network location for multiple systems) The auto delete function only runs when doing a new backup.
maybe it can be like this:

The program offers the following setting.

"Change Backup Location"
Default backup location is in the same folder as the program in the "Backups" folder.
When you install the program this setting is enabled by default and sets the backup folder to "C:\RegBackup\" (or what ever drive Windows is on)

"Auto Delete Old Backups"
This is enabled by default.
This will auto delete old backups from the backup location and for the current system only. It will not delete old backups for other systems. (Example: You run the program from a thumb drive or network location for multiple systems) The auto delete function only runs when doing a new backup.


But I think it's very good and informative text!

Maybe this will help somebody how to create a bootable Live USB.
Here is 3 examples of how to create easy to use bootable Live USB drives
 
1. Universal USB Installer – Easy as 1 2 3 - http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/  "Universal USB Installer is a Live Linux USB Creator that allows you to choose from a selection of Linux Distributions to put on your USB Flash Drive. The Universal USB Installer is easy to use. Simply choose a Live Linux Distribution, the ISO file, your Flash Drive and, Click Install."

2. UNetbootin - http://unetbootin.sourceforge.net/  UNetbootin allows you to create bootable Live USB drives for Ubuntu, Fedora, and other Linux distributions without burning a CD. It runs on Windows, Linux, and Mac OS X.

3. YUMI – Multiboot USB Creator (Windows) http://www.pendrivelinux.com/yumi-multiboot-usb-creator/  "It can be used to create a Multiboot USB Flash Drive containing multiple operating systems, antivirus utilities, disc cloning, diagnostic tools, and more."
-I like this one because I can use a NTFS USB Hard Drive and have several program on the usb or hard drive.

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 10:32:53 pm
Thanks!

Page updated.

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on May 30, 2012, 10:45:51 pm
In page 1 there is no double quotes on Scheduling Options under "What settings does the program offer?"

In page 2 I found this:" Instead of "Tweaking.com - Registry Backup Trouble Shooting" if think it should be
Tweaking.com - Registry Backup TroubleShooting"

You've covered a lot in page 1 and 2.  :cheesy:

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 10:54:48 pm
Thanks  :cheesy:

Got those changed.

Just finished the first video on how to use the program. Going to upload it in a few and then get your feedback.

Next videos are how to do the 3 advanced restores.

You can tell I am nervous in the video because my mouth is so dry LOL

By the way, I didnt prepare for this video, I just started and talked as I went along lol

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 10:59:28 pm
OK video #1

Let me know what you think. I will post it on the youtube channel after you guys say it is ok. Going to start the others now.

http://tweaking.com/files/Tweaking.com-RegistryBackupHowtousetheprogram.mp4

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 11:16:15 pm
Video #2

Xp recovery console

http://www.tweaking.com/files/Tweaking.com_Reg_backup_xp_recovery_console.mp4

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on May 30, 2012, 11:22:01 pm
In page 2 It should probably be Troubleshooting not as I wrote the TroubleShooting no big s in the shooting, I was little too quick there.   :shy:

Great video, but if I never have used the the program before I did not understand if I were to click on "create schedule" or it would be created anyway at 1:23.

At 2:57 when you click through, it goes very quickly there, if you're a beginner, maybe they find it difficult to keep up. But on the other hand they can always use the pause to see how you did

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 11:27:02 pm
I didnt click create schedule lol

Should I redo it?

Here is vid #3, one more to go.
http://tweaking.com/files/tweaking.com_regbackup_win7_recovery.mp4

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on May 30, 2012, 11:35:07 pm
"Video #2 Xp recovery console"  Looked very good.  :cheesy:

Did not know you had to write "Set allowallpahts = true" to get permission and use the batch command to call that file.

Is it possible to just record create schedule and edit it in the current video?

Tomas

Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 11:35:42 pm
Last video :-)

www.tweaking.com/files/Tweaking.com_RegBackup_Using_Live_CD.mp4

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 30, 2012, 11:37:02 pm
Quote
Is it possible to just record create schedule and edit it in the current video?

Dont know, I could leave it and just make a video showing how to make a schedule?

But I didnt click the button because its just one click. It is set to logon by default now and the person can edit it in the task scheduler.

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on May 30, 2012, 11:47:56 pm
I didn't mean that you needed to click the button for real, but that you should have told that you have to click to create backup schedule. Just like you say in the first video at 3:45: Hit restore now - done. :wink:

The last video looked great. One sees that you have worked with computers for a while, you click and write very fast =)

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on May 31, 2012, 12:11:13 am
Quote
The last video looked great. One sees that you have worked with computers for a while, you click and write very fast =)

Turn 33 this June. Been in computers since I was 15 :-)

Its midnight for me. Time for bed.

I will post all for video links again for the others.

And based on feedback I will remake any needed videos, or get them published on the you tube channel and finish the videos page.

http://tweaking.com/files/Tweaking.com-RegistryBackupHowtousetheprogram.mp4
http://www.tweaking.com/files/Tweaking.com_Reg_backup_xp_recovery_console.mp4
http://tweaking.com/files/tweaking.com_regbackup_win7_recovery.mp4
http://www.tweaking.com/files/Tweaking.com_RegBackup_Using_Live_CD.mp4

Night!

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 31, 2012, 04:49:39 pm
Online Help.

The part: "Auto Delete Old Backups"

You should mention the default is 30 days.

Maybe: This is enabled by default and set to 30 days.

Under: What advantages is are there versus ERUNT? (change is to are)

Change the link to
Code: [Select]
<a href=http://msdn.microsoft.com/en-us/library/windows/desktop/ms724917%28v=vs.85%29.aspx >RegSaveKey function</a> so RegSaveKey function is what will show in the help.

Erunt can not also restore other profile registry files if they are not loaded. Tweaking.com - Registry backup can restore them all.

Maybe reword to:

ERUNT can not restore other profile registry files if they are not loaded during the backup process. Tweaking.com - Registry backup saves and restores them all.

Actually, all occurrences of Erunt should be changed to ERUNT since that's the program name.

This section needs to be expanded a bit I think:

Tweaking.com - Registry Backup takes this into account and finds the proper drive Windows is on. It can ever restore user profile registries as well.

Something like:

Tweaking.com - Registry Backup takes this into account and finds drive the registry was saved from using a locator or marker file called tweaking.com-regbackup-DELL-P370-Microsoft-Windows-7-Professional-(64-bit).dat which is stored in the \Windows folder of the drive during the backup process.

Also explain a bit what user profile registries as well are.

Suggestions for: What restore options does the program have?

The main restore is built into the program, requires a single click and can be run in Windows Safe Mode. The program also creates a batch file called dos_restore.cmd with each backup. It is stored in the same folder the backup is stored in. It should be used from the Recovery Console if Windows won't boot.

The program stores the backup with the full folder path of the registry files, exactly as they are stored on the Windows boot drive. So if you don't have the Recovery Console you can use any Live CD like Ubuntu or Puppy to boot, browse the hard drive to the backup. Copy and paste the backup files to the root of the drive. More info and how to do this is in the video section.

I don't have a CD drive, how can I use the Ubuntu Live CD?

Here is are 3 examples of how to create easy to use bootable Live USB drives

Page 2:

Solution #1


Change the link
Code: [Select]
http://www.tweaking.com/content/page/repair_volume_shadow_copy_service.html to
Code: [Select]
<a href=http://www.tweaking.com/content/page/repair_volume_shadow_copy_service.html>Repair Volume Shadow Copy Service </a> so you see Repair Volume Shadow Copy Service instead of the link itself.

Solution #2
VSS error 8193 in Event Viewer

HKey_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\ProfileList

Please open the registry editor (regedit) by clicking the Start orb then typing regedit and pressing Enter.

Expand the key shown above and check if there is an entry that has a ".bak" value appended. If so, this may be the cause of the failure when trying to resolve the SID of the writer.

Please backup the registry key first (right click on it and select Export), and then delete that entry with the extra ".bak"

Then reboot.


.... more later .... Z
Title: Re: Registry Backup Beta
Post by: Shane on May 31, 2012, 05:01:16 pm
Thanks bud. All changes made. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on May 31, 2012, 05:24:19 pm
The video help files are excellent!!!!!

One thing. When you are changing directories in a CMD Prompt, type hte first few characters then press the Tab key to auto-complete it. Makes it simpler for long, complex names.
Title: Re: Registry Backup Beta
Post by: Ztruker on May 31, 2012, 05:37:15 pm
FYI: Posted a blurb in the GeeksToGo Tech Staff area on your program. Hopefully you will have several folks from there giving it a try. Plan in posting on sevenforums.com as well soon.
Title: Re: Registry Backup Beta
Post by: Shane on May 31, 2012, 07:09:44 pm
Awesome :-)

The program will be released this Sunday.

About the videos. They are not scripted or even planned or practiced lol

I just loaded it up and started talking.  :wink:

I think I will go ahead and get the videos upload to you tupe and put on page 3 of the help pages.

Shane
Title: Re: Registry Backup Beta
Post by: Shane on May 31, 2012, 07:33:04 pm
Videos are uploaded and page is done :-)\

http://www.tweaking.com/articles/pages/tweaking_com_registry_backup_online_help,3.html

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on June 01, 2012, 11:55:00 pm
I did a full scan on my computer with Emi-Soft AntiMalware and the program found a suspect file in vss_pause.exe in Registry Backup Portable. So I got to http://www.virscan.org/ and scan the file there and 14% Scanners (5/36) found malware! And in https://www.virustotal.com/ found 6/42.  I think it's probably a false alert, but I wanted to let you know!


Here is the scanner which show malware:


BitDefender                    Gen:Trojan.Heur.VP2.bm0@am3VXehi

Emsisoft                          Trojan.Win32.Spy!IK

F-Secure                         Gen:Trojan.Heur.VP2.bm0@am3VXehi

GData                              Gen:Trojan.Heur.VP2.bm0@am3VXehi

Ikarus                              Trojan.Win32.Spy

TrendMicro-HouseCall    TROJ_GEN.R47B5EQ



Tomas
Title: Re: Registry Backup Beta
Post by: Shane on June 02, 2012, 09:44:18 pm
Yeah and each one of them it says "GEN" which is generic.

false positive. The funny part, there isnt a single line of code int hat exe! It is simply an exe that runs till the program kills it, it is there so the vss shadow knows when to kill the snapshot it made.

They flagged a codeless exe as a threat lol

Guess I will add some code to it just to have it not get flagged. I will then upload the exe to test on those sites before tomorrows release :-)

Shane
Title: Re: Registry Backup Beta
Post by: Shane on June 03, 2012, 11:47:25 am
Well that was an easy fix.

I was compiling the exe's in P-code. For smaller size.

I simply complied the exe in native code, changed nothing else and now they are not getting flagged lol

All the exes are now a little bigger, but they will run faster.

Releasing the program today :-)

Shane
Title: Re: Registry Backup Beta
Post by: Shane on June 03, 2012, 12:43:31 pm
Program is now out of beta!

v1.0.0 is released.
http://www.tweaking.com/content/page/registry_backup.html

Thanks a TON to all of you for helping make the program better. :cheesy:

Shane
Title: Re: Registry Backup Beta
Post by: peterr on June 03, 2012, 01:23:42 pm
We all wish you  n :wink:othing but the best for those 4 tuitions.  :wink:
Title: Re: Registry Backup Beta
Post by: neroilo on June 04, 2012, 05:11:25 am
If VSS service results corrupted, could this program use registry APIs in place of VSS?
I wouldn't like to use also ERUNT expressly for that.
Title: Re: Registry Backup Beta
Post by: Shane on June 04, 2012, 09:16:41 am
Using the API's is limited. But I thought about having it as a fall back. The problem is it is dog slow. Even though I have the same API's as erunt.

I am thinking about adding it as a fall back option in future updates :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on June 06, 2012, 05:39:21 pm
Finally got time to install 1.0. Looks real good. Tutorials (videos) are great.

I've disabled ERUNT and am using this full time now.
Title: Re: Registry Backup Beta
Post by: Shane on June 06, 2012, 05:47:33 pm
Finally got time to install 1.0. Looks real good. Tutorials (videos) are great.

I've disabled ERUNT and am using this full time now.

Woot!

I am working on a small update to the program for this Sunday, nothing big.

I ran my backup on an 2003 server (Not an R2 server) and the api to pull the Windows folder doesn't work! So none of the system reg files show up in the treeview only the user profiles. Yet works fine on 2003 R2.

So I am going to make a small update to add all the system variables the program pulls and add it to the log files. This will help if something isn't being pulled right I can see what. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Shane on June 06, 2012, 06:44:23 pm
Ah found the bug. In my test 2003 machine it works fine.

The 2 others I was on today at a customers has terminal services installed. This changes the api

Quote
Terminal Services:   If the application is running in a Terminal Services environment, each user has a private Windows directory. There is also a shared Windows directory for the system. If the application is Terminal-Services-aware (has the IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE flag set in the image header), this function returns the path of the system Windows directory, just as the GetSystemWindowsDirectory function does. Otherwise, it retrieves the path of the private Windows directory for the user.

So I will be adding the TERMINAL_SERVER_AWARE in the next update :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Shane on June 06, 2012, 07:26:25 pm
Great, it works :-)

This Sunday I will be putting updates out for every program on the site so they are all TERMINAL_SERVER_AWARE :cheesy:

Shane
Title: Re: Registry Backup Beta
Post by: peterr on June 07, 2012, 07:15:01 am
Finally got time to install 1.0. Looks real good. Tutorials (videos) are great.

I've disabled ERUNT and am using this full time now.

>>I was going to install next week anyway but this confrirms it.
Title: Re: Registry Backup Beta
Post by: Shane on June 09, 2012, 10:13:01 am
Wondering if you guys might be up for some more testing in the next week or so?

I am going to add a fall back feature to the program.

If VSS fails it will backup the registry with the Windows API like erunt.

While it will have its limits at least it can still get the core system registry files and the current loaded user. Wont be perfect as it wont be able to grab all the profiles but it will still get the ones erunt does :-)

And since I will have to make some changes to the program I will need this tested.

Thought?

Shane
Title: Re: Registry Backup Beta
Post by: peterr on June 09, 2012, 11:34:57 am
I'm off with grandchildren S-W. After that  I'll help anytime but remember, I am really not techy; I think that is obvious.
For what you have done, just ask and we will be glad to assist the best we can.
Peter
Title: Re: Registry Backup Beta
Post by: neroilo on June 09, 2012, 02:16:55 pm
No problem here. I have a Windows XP virtual machine ready for any kind of test.
Title: Re: Registry Backup Beta
Post by: Shane on June 09, 2012, 02:19:13 pm
v1.1.0 will be out Sunday.

I am working on 1.2.0 now with the new fall back feature and when I have it done I will post here to have you guys help test :-)

Also adding a new feature to 1.2.0

The fall back option will be under advanced settings. I am also adding the option to let a user tell the program which vss exe to use. The program pulls the OS info with WMI. if WMI isnt working it wont know which vss exe to run. If this happens a user can set it manually :-)

Shane
Title: Re: Registry Backup Beta
Post by: chris635 on June 09, 2012, 02:29:13 pm
Sounds good bud :tongue:


Chris
Title: Re: Registry Backup Beta
Post by: Ztruker on June 09, 2012, 04:24:18 pm
How do we test it? I don't know how to make VSS fail off hand.

Hmmm, I suppose I could simply set VSS to disabled.

Ready and willing  :tongue:
Title: Re: Registry Backup Beta
Post by: Shane on June 09, 2012, 04:48:25 pm
Disabling it would be the simplest way.

I already have the code done for the reg api backup.

Draw backs are it can only backup the current user profile and the system core reg files but no other profiles. (Same as erunt)

I definitely like the VSS way since it gets them all, a true reg backup since every reg file on the system gets backed up. But at least this way having a fall back it is still helpful for users who have a bad VSS on their system.

This has gone faster than I thought and hope to have a test ready very soon. Biggest pain in the but is changing all the logging around and the wording to handle when it does the fall back.

Shane
Title: Re: Registry Backup Beta
Post by: Shane on June 09, 2012, 05:33:55 pm
ok here we go v1.2.0 Beta

v1.1.0 goes out tomorrow on the site, this build has all those changes, so you get it a day early and help me test 1.2.0.

I made 1.2.0 just today and did some rough tests. I want to have it tested this whole next week and hopfully put it out a week from now for that Sunday release.

Lets see what you guys think :-)

Here is the change log for both 1.1.0 and 1.2.0

v1.2.0
Program now has an advanced settings section.
Program now has a fallback backup method if the volume shadow copy service fails on a system. It will use the Windows API to backup the core registry files and only the current user registry file. Volume shadow copy is the best way to get all registry files on the system, but now with the fallback method, people who don't have a working volume shadow copy are not left out.
Added new setting to control what VSS exe the program uses. The program uses WMI to pull the OS information. but if WMI isn't working correctly the information isn't pulled and the program doesn't know which vss exe to use. With this new setting you can control it if you have any trouble.
Code and log improvements.

v1.1.0
The program is now Terminal Server Aware. When you ran the program on a Windows server that had Terminal Services installed the Windows API returned the wrong path to the windows dir. This is now fixed.
Added more info to the log files showing what system variables the program pulled from the system.
Changed the way the program is complied, the program exe is now smaller.

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on June 09, 2012, 05:58:37 pm
What do I do with the contents of the zip file for 1.2.0? Can I just run from there once expanded or do I need to replace the currently install one in C:\Program Files (x86)\Tweaking.com\Registry Backup?

There does not appear to be an installer in the zip.
Title: Re: Registry Backup Beta
Post by: Shane on June 09, 2012, 07:01:34 pm
Its just the whole program, same that comes in the installer and the portable. Just extract it to a folder and run it form there or replace the one you have installed with it :-)

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on June 10, 2012, 12:47:16 am
With 1.2.0 I have an extra registry entry under "User Registry Files"
"C:\Users\Default user\ntuser.dat. that I didn't have in 1.0.0.

I noticed that if I check "Enable Fallback Backup Method" I have to restart the program for it to work!
If I start "Registry Backup" with "Enalbe Fallback Backup Method" checked and I uncheck it and try to do a backup it fail, it says: Volum Shadow Copy Failed! vss_start.exe isn't running. vss_start.exe is needed to start the volume snapshot process (even though my Volume Shadow Copy is set to manual and is working).
If I now restart "Registry Backup" and click on "Backup Now" everything works!

Is it possible to have an "apply" button for changes to take effect or maybe write that the user have to restart the program for changes to take effect?

At first I thought that "Enable Fallback Backup Method" worked so that if the "Volume Shadow Copy" wasn't working that "Registry Backup" automatically used the "Windows API" to make a copy, but that is not how it is. I have to manually start the "Windows API" by check "Enable Fallback Backup Method"(and restart the program).
What is the disadvantage of allowing "Registry Backup" automatically detect if the "Volume Shadow Copy" isn't working and it makes a backup with the "Windows API"?

I have tried "Enable Fallback Backup Method" and the program backup only one "User Registry Files" instead of eight so yes there is a difference.

One thing I've noticed now is that if I have many copies under "Select Backup To Restore" under the tab "Restore Registry" and click on the "arrow down" button it is a little bit inflexible to scroll down because there is only room for 8 lines. I would like to have many more "lines" so it's get easier to navigate up and down maybe as long as the program or 20 lines or something like that.
Is it possible if there are more than eight lines that it will automatically get the same height, say up to 20 lines when it will be a scrollbar?

Interesting changes to the program  :smiley:

Tomas
Title: Re: Registry Backup Beta
Post by: neroilo on June 10, 2012, 02:20:01 am
Quote
Is it possible to have an "apply" button for changes to take effect or maybe write that the user have to restart the program for changes to take effect?

I don't agree so much with it. If it were possible, I'd prefer an immediate activation when you check fallback option.

Other things to fix:
1) Program window is not resizable.
2) A few AV software detect vss_start.exe, vss_pause.exe, TweakingRegistryBackup.exe as dangerous:
https://www.virustotal.com/file/1e61c76d7e04e7a98d50fdf1f1645bf6f2c9b1c94b4b2b24ecc0a71e0f257309/analysis/1339318357/
https://www.virustotal.com/file/3ae8c974c40fdf7e4e08a432792047e80d82e2c86ec59270c2c95c4560263472/analysis/1339318542/
https://www.virustotal.com/file/a541fd17bc4b6f47d3402e5589a8f662029ae7be3ca607b5fb5d88f93386c782/analysis/1339321482/

You could try to report a false positive following these links:
http://analysis.avira.com/samples/index.php
http://cgi.clamav.net/sendfp.cgi
http://community.trendmicro.com/t5/Business-Security-Forum/Submitting-False-positives-by-Trend-Micro/td-p/69282

3) If you try to run a backup (it doesn't matter if you're using VSS or not) on a Windows XP SP3 virtual machine, it will crash the entire VM (at least with Virtualbox).
Title: Re: Registry Backup Beta
Post by: Shane on June 10, 2012, 11:19:52 am
Quote
With 1.2.0 I have an extra registry entry under "User Registry Files"
"C:\Users\Default user\ntuser.dat. that I didn't have in 1.0.0.

Odd you should have. But in this new version I have the program call the backup privilege. This is required with the API to backup the registry. This also allows the program to see lock files such as protected profiles. But the file copy api I use doesnt honor the back privilege. So it fails on those! MS for some reason dont let them honor the backup. Perhaps I have to write my own file copy instead of using the windows api. I will look into that. If I get it to work I can have the program back up locked profiles without having to run it under the system account.

Quote
I noticed that if I check "Enable Fallback Backup Method" I have to restart the program for it to work!
If I start "Registry Backup" with "Enalbe Fallback Backup Method" checked and I uncheck it and try to do a backup it fail, it says: Volum Shadow Copy Failed! vss_start.exe isn't running. vss_start.exe is needed to start the volume snapshot process (even though my Volume Shadow Copy is set to manual and is working).
If I now restart "Registry Backup" and click on "Backup Now" everything works!

Ah I have the button stay disabled when it fails, I will fix it so it doesnt stay disabled. This way you dont have to restart the program.

Quote
Is it possible to have an "apply" button for changes to take effect or maybe write that the user have to restart the program for changes to take effect?

There wont be a need for it :-)

Quote
At first I thought that "Enable Fallback Backup Method" worked so that if the "Volume Shadow Copy" wasn't working that "Registry Backup" automatically used the "Windows API" to make a copy, but that is not how it is. I have to manually start the "Windows API" by check "Enable Fallback Backup Method"(and restart the program).
What is the disadvantage of allowing "Registry Backup" automatically detect if the "Volume Shadow Copy" isn't working and it makes a backup with the "Windows API"?

At first I had it enabled by default but I decided not to. My goal is that the API is very limited and I want the user to know VSS failed and to try to fix it, if they cant they can use the fallback method.

Perhaps it should be enabled by default?

Quote
One thing I've noticed now is that if I have many copies under "Select Backup To Restore" under the tab "Restore Registry" and click on the "arrow down" button it is a little bit inflexible to scroll down because there is only room for 8 lines. I would like to have many more "lines" so it's get easier to navigate up and down maybe as long as the program or 20 lines or something like that.
Is it possible if there are more than eight lines that it will automatically get the same height, say up to 20 lines when it will be a scrollbar?

I will see what I can do :-)

Quote
1) Program window is not resizable.

I dont think it really needs it as everything fits. But if needed I can add it down the road.

Quote
2) A few AV software detect vss_start.exe, vss_pause.exe, TweakingRegistryBackup.exe as dangerous:

I already submitted to antivir but they havent updated it yet.

Quote
Dear Sir or Madam,

Thank you for your email to Avira's virus lab.
Tracking number: INC01173358.

A listing of files alongside their results can be found below:

File ID   Filename   Size (Byte)   Result
26930875   vss_start.exe   88 KB   FALSE POSITIVE

Please find a detailed report concerning each individual sample below:

Filename   Result
vss_start.exe   FALSE POSITIVE

The file 'vss_start.exe' has been determined to be 'FALSE POSITIVE'. In particular this means that this file is not malicious but a false alarm.

Alternatively you can see the analysis result here:
http://analysis.avira.com/samples/details.php?uniqueid=mCBm5yHWszt97BbEFJ409JHjCy7SRWJW&incidentid=1173358

But thanks for the links to the others, when 1.2.0 is done I will submit the files to them. :-)

Quote
3) If you try to run a backup (it doesn't matter if you're using VSS or not) on a Windows XP SP3 virtual machine, it will crash the entire VM (at least with Virtualbox).

Thats odd, I test in vmware and on real systems never had a crash. Maybe the VB6 sp6 runtimes needs to be updated on your test machine?

Shane
Title: Re: Registry Backup Beta
Post by: Shane on June 10, 2012, 01:01:53 pm
Ok new build for v1.2.0

The program can now backup locked profile registry files without having to be ran under the system account  :cheesy:

I changed the wording on the schedule now because of it. And I will have to remake the video when this version comes out lol

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on June 10, 2012, 11:23:45 pm
With the new 1.2.0 build I now have two registry entries under "User Registry Files" with the API backup instead of one.

Quote
At first I had it enabled by default but I decided not to. My goal is that the API is very limited and I want the user to know VSS failed and to try to fix it, if they cant they can use the fallback method.

Perhaps it should be enabled by default?

I think it's good like the way you have it now, but maybe in future versions that you can change it to "enabled by default" if you get feedback that several users have problem with vss and think they have made an backup with "Task Scheduler", then they have something to fall back on with the API

Quote
The program can now backup locked profile registry files without having to be ran under the system account 

What is the reason why I and possibly others have "locked profiles registry files"?

If I "disable" and stop the vss in services and try to do a backup it fails and if I change vss to "manual" and try to do a backup it fails again, even if I start vss it doesn't start.
It says "Volume Shadow Copy Failed! vss_7_64.exe isn't running."
Then I look in process explorer I see that "vss_start.exe" is there and "cmd.exe". If I kill "vss_start.exe"(the file is under TweakingRegistryBackup.exe) and try to do a backup again, it fails. Seems that cmd.exe(this file stands alone, is not under TweakingRegistryBackup.exe) starts then I kill vss_start.exe
If I just restart Registry Backup it works of course! lol   :wink:

Have you seen this program "RegBak 1.2"http://www.acelogix.com/freeware.html it seems to be like ERUNT, it backups 6 registry entries then I tried it. Only 1 registry entry in "User Registry Files"  :wink:

Tomas
Title: Re: Registry Backup Beta
Post by: neroilo on June 11, 2012, 03:24:16 am
Have you seen this program "RegBak 1.2"http://www.acelogix.com/freeware.html it seems to be like ERUNT, it backups 6 registry entries then I tried it. Only 1 registry entry in "User Registry Files"  :wink:

I use Regback with Windows 7 x64, and in my backup folder I have an "Users" Folder containing 3 ntusers.dat files of different size and 1 UsrClass.dat file.

Quote
[DATA5]
Type=USERS\S-1-5-20
Saved=Users\1\NTUSER.DAT
Hive=C:\Windows\SERVIC~2\NETWOR~1\NTUSER.DAT
Category=4
[DATA6]
Type=USERS\S-1-5-19
Saved=Users\2\NTUSER.DAT
Hive=C:\Windows\SERVIC~2\LOCALS~1\NTUSER.DAT
Category=4
[DATA7]
Type=USERS\S-1-5-21-4195982347-1696745222-3389160519-1000
Saved=Users\3\NTUSER.DAT
Hive=C:\Users\neroilo\NTUSER.DAT
Category=2
[DATA8]
Type=USERS\S-1-5-21-4195982347-1696745222-3389160519-1000_Classes
Saved=Users\4\UsrClass.dat
Hive=C:\Users\neroilo\AppData\Local\MICROS~1\Windows\UsrClass.dat
Category=2
[Files]
0=SYSTEM
1=SOFTWARE
2=DEFAULT
3=SECURITY
4=SAM
5=Users\1\NTUSER.DAT
6=Users\2\NTUSER.DAT
7=Users\3\NTUSER.DAT
8=Users\4\UsrClass.dat
Title: Re: Registry Backup Beta
Post by: Shane on June 11, 2012, 09:23:55 am
Quote
I think it's good like the way you have it now, but maybe in future versions that you can change it to "enabled by default" if you get feedback that several users have problem with vss and think they have made an backup with "Task Scheduler", then they have something to fall back on with the API

Good point, I will change it to enabled by default. Better for the normal user who wont know there is a fall back option. This way if VSS fails they wont think my program sucks instead LOL

Quote
What is the reason why I and possibly others have "locked profiles registry files"?

When you have more than one account on a system you can choose to protect it, which means no other accounts can access the profile data, which is where that profile registry file is located. My program call the backup privilege in windows and the new file copy method I use gets access to that locked file, so now it can get them as well.

Quote
If I "disable" and stop the vss in services and try to do a backup it fails and if I change vss to "manual" and try to do a backup it fails again, even if I start vss it doesn't start.
It says "Volume Shadow Copy Failed! vss_7_64.exe isn't running."
Then I look in process explorer I see that "vss_start.exe" is there and "cmd.exe". If I kill "vss_start.exe"(the file is under TweakingRegistryBackup.exe) and try to do a backup again, it fails. Seems that cmd.exe(this file stands alone, is not under TweakingRegistryBackup.exe) starts then I kill vss_start.exe
If I just restart Registry Backup it works of course! lol   :wink:

Old way was to leave the backup button disabled if it failed. The vss_start.exe doesn't close till the program closes. SO if it fails and you fix VSS you need to restart the backup program, shouldn't be a big deal in normal circumstances.

Quote
Have you seen this program "RegBak 1.2"http://www.acelogix.com/freeware.html it seems to be like ERUNT, it backups 6 registry entries then I tried it. Only 1 registry entry in "User Registry Files"
and
Quote
I use Regback with Windows 7 x64, and in my backup folder I have an "Users" Folder containing 3 ntusers.dat files of different size and 1 UsrClass.dat file.

The extra 2 that it grabs is the network service and local service.

No reason I can have mine grab those with the API, I will add them as well. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Shane on June 11, 2012, 10:06:36 am
New build. :wink:

Fall back is enabled by default for new installs. And the program now grabs the local service and network service reg files on the fall back method as well. So now gets everything Erunt and the RegBak 1.2 get with the API.

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on June 11, 2012, 10:11:38 am
Edit: Following was with the previous 1.2.0 build, not the one you just made available.

Scheduled backup still works correctly with 1.2.0 as does manual backup.

Disabled VSC and it took the fallback path correctly and backed up just the files from my account and in C:\Windows\System32\Config.

Looking at the log, it has:
Quote
[6/11/2012 - 1:02:58 PM] Waiting for Volume Shadow Copy snapshot...

[6/11/2012 - 1:03:08 PM] Volume Shadow Copy Failed! vss_start.exe isn't running. vss_start.exe is needed to start the volume snapshot process.
[6/11/2012 - 1:03:08 PM] Is vss_start.exe Running: False
[6/11/2012 - 1:03:08 PM] Is vss_7_64.exe Running: False
[6/11/2012 - 1:03:08 PM] Is vss_pause.exe Running: False

Looks good.

Title: Re: Registry Backup Beta
Post by: peterr on June 11, 2012, 12:04:00 pm

I installed the registry back up and have it boot up at logon because starup did not work. Logon is fine though. I have it to drop off backups after 14 days.
I do not know about the techy aspects but I really like the way it does a backp at logon. It has already saved me once as I made an error and lost my restore points. Using tweak, I was able to recover them.
It is fast and another means of backup support. Great program which will spread quickly.

Am I suposed to be doing anything besides installing it? I read the thread but don't really iundestand it. I'll wait to hear. Peter
Title: Re: Registry Backup Beta
Post by: Shane on June 11, 2012, 12:14:07 pm
Just simply download and install updates as they come out for it. It wont overwrite your settings. 1.2.0 will be out next Sunday  :wink:

Shane
Title: Re: Registry Backup Beta
Post by: peterr on June 11, 2012, 12:39:45 pm


I've  got it now, thank you.
Title: Re: Registry Backup Beta
Post by: Shane on June 14, 2012, 09:13:14 am
So far no bugs reported from you guys  :cheesy:

So far looks like I will put out the new version this Sunday :wink:

I will then need to update the help files and videos to reflect the changes.

Shane
Title: Re: Registry Backup Beta
Post by: peterr on June 14, 2012, 11:36:13 am

I am looking forward to it. My family and friends are really secure with this new,yet another way to back up their pcs.
You mentioned needing testors and I am available;I guess you know my limitations but I can participate to the degree that I am able.
Peter
Title: Re: Registry Backup Beta
Post by: neroilo on June 15, 2012, 03:17:54 pm
Last 1.2.0 version is really stable to me.  :wink:

I have created a new task from the button "Create schedule", but at the logon I can see the entire gui during backup operations... a bit invasive imho.

1) Can you consider to display the loading window without including the rest of interface (but only for /silent parameter)?  :smiley:
2) Can you implement a switch parameter like "nogui" to exclude completely any interface during backup?
3) When you create a task, it appears only a basic window compiled with a few options (i.e. there isn't delay task (http://www.online-tech-tips.com/wp-content/uploads/2008/06/windowslivewriterconnecttowifiadhocconnectionsautomatical-ed87delay-start-2.jpg) function introduced for the first time in Vista).
Otherwise you could list in your FAQ all ways to customize your task according to your needs.
Title: Re: Registry Backup Beta
Post by: Ztruker on June 15, 2012, 04:58:54 pm
neroilo, if you setup the scheduled task to run as System you should not see anything. At least that's the way it works for me.

MAnual backup I have set to run under my account.
Title: Re: Registry Backup Beta
Post by: Shane on June 15, 2012, 05:41:50 pm
Quote
I have created a new task from the button "Create schedule", but at the logon I can see the entire gui during backup operations... a bit invasive imho.

1) Can you consider to display the loading window without including the rest of interface (but only for /silent parameter)?  :smiley:

When I made the silent command it was for the purpose of running it from the task scheduler and from with in my other programs when I add it to them (Like my Windows repair)

I will be replacing Erunt as the backup in my other programs after this has had some time to get known.

So when I made it I needed it to show the backup progress and then close. Everything is in one Window and I didnt want to have to make a whole other section for a smaller display.

Granted silent wasnt the best word to use since it makes it sound as ok silent, stay out of my face! lol

Currently having it run under the system account keeps it hidden since it isnt being ran on your account.

Quote
3) When you create a task, it appears only a basic window compiled with a few options (i.e. there isn't delay task function introduced for the first time in Vista).
Otherwise you could list in your FAQ all ways to customize your task according to your needs.

This is because of a limitation. I made a dll that could create tasks in the scheduler. In Windows vista and newer they have a new dll I could use and it works great. But in XP there was no way for the program to do it. So I found the code to finally do it. Thing is when it is ran on Windows vista or newer it shows the old task properties like it did in XP.

Just manually going tot he task scheduler in Windows will give you the rest of the options. I will put that in the help file. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on June 15, 2012, 08:35:36 pm
I usually look through the "Restore Registry" and "Select Backup To Restore" everyday to see if the backup is ok.
I think it would be smoother if when you click on "Select Backup To Restore" that you get the most recent date first, because it is usually the most relevant.

Also when I select a date in the "Select Backup To Restore" I would like to be able to use arrow up and down on my keyboard, so I can quickly compare between different dates.

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on June 15, 2012, 08:39:08 pm
Quote
I usually look through the "Restore Registry" and "Select Backup To Restore" everyday to see if the backup is ok.
I think it would be smoother if when you click on "Select Backup To Restore" that you get the most recent date first, because it is usually the most relevant.

That is a good idea, I will add it for Sundays release :wink:

Quote
Also when I select a date in the "Select Backup To Restore" I would like to be able to use arrow up and down on my keyboard, so I can quickly compare between different dates.

I noticed it loses focus so you can't. Let me see what I can do :-)

Shane
Title: Re: Registry Backup Beta
Post by: Shane on June 15, 2012, 08:50:34 pm
Quote
I usually look through the "Restore Registry" and "Select Backup To Restore" everyday to see if the backup is ok.
I think it would be smoother if when you click on "Select Backup To Restore" that you get the most recent date first, because it is usually the most relevant.

I just tried and found it to not work well. When you start the program it loads the combo box. When you select one it loads the tree and causes a small slow down at startup. That and I can see non tech users getting confused if they see two populated lists right off the bat. You would be surprised how many users dont read what is in front of them lol

Oh and I fixed it so you can arrow the list now :-)

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on June 15, 2012, 09:04:07 pm
Quote
I just tried and found it to not work well. When you start the program it loads the combo box. When you select one it loads the tree and causes a small slow down at startup. That and I can see non tech users getting confused if they see two populated lists right off the bat. You would be surprised how many users dont read what is in front of them lol

Ok I see!

Quote
Oh and I fixed it so you can arrow the list now :-)

Nice  :cheesy:

Tomas
Title: Re: Registry Backup Beta
Post by: neroilo on June 16, 2012, 07:16:11 am
Currently having it run under the system account keeps it hidden since it isnt being ran on your account.

When I run my task under system account at logon (with your default settings), I have some issues in event viewer.

Quote
Event id: 1000
Appname: TweakingRegistryBackup.exe, versione: 1.2.0.0, timestamp: 0x4fd62508
Mod name: ntdll.dll, version: 6.1.7601.17725, timestamp: 0x4ec49b8f
Exception code: 0xc0000005
Offset error 0x00033792
ID process: 0x854
App path: D:\BACKUP\Sync\Registry\TweakingRegistryBackup.exe
Module path: C:\Windows\SysWOW64\ntdll.dll
Report ID: 90bc9d02-b7bb-11e1-a065-e0cb4e2c5802

In attachment there is a complete report created from Windows7 x64.

Apart from that, backup is correctly created in D:\BACKUP\Sync\Registry\.

I don't have any other task at logon and my startup programs are logitech setpoint and microsoft security essentials.
Title: Re: Registry Backup Beta
Post by: Shane on June 16, 2012, 12:06:11 pm
It runs fine when you run it normally, but when running under the system account it crashes?

And the error shows that the ntdll.dll is causing the crash. That is a very odd one.

What I need to find out is it something with your system or the timing at which it is being ran under the system account?

Schedule it to run under the system account, then go to the task scheduler and manually start it. Does it still crash or does it only crash at system startup?

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on June 16, 2012, 01:52:07 pm
It runs fine when you run it normally, but when running under the system account it crashes?

And the error shows that the ntdll.dll is causing the crash. That is a very odd one.

What I need to find out is it something with your system or the timing at which it is being ran under the system account?

Schedule it to run under the system account, then go to the task scheduler and manually start it. Does it still crash or does it only crash at system startup?

Shane

It crashes only at system startup. Starting task manually I have no crash.

Update: I have just disabled IPV6, no crash in event viewer this time.

Solution:
1) Disable IPV6

Quote
We disabled IPv6 using the documented way over at http://support.microsoft.com/kb/929852
It will not break anything long as you only make the changes in that document. For what it is worth I would make a note of the configuration in the network adapter properties.
Once you have completed the IPv6 disable, we re-run the Internet Connection Wizard and Fix My Network wizard.

or
2) If you have already Windows 7 SP1, install this hotfix:
Remote procedure call service crashes on a computer that is running Windows Server 2003 SP2, Windows Vista, Windows Server 2008, Windows 7 or Windows Server 2008 R2 (http://support.microsoft.com/default.aspx?scid=kb;en-US;2401588)


Source:
http://social.technet.microsoft.com/Forums/en-US/smallbusinessserver/thread/16cac6e4-ffb5-4920-b48e-0f484ae8c8ff/
Title: Re: Registry Backup Beta
Post by: Shane on June 16, 2012, 03:30:06 pm
Awesome, I will add this info to the help page :wink:

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on June 16, 2012, 04:03:38 pm
I installed the hotfix, but it didn't solve my issue... only disabling IPV6 stops it.  :undecided:
Tomorrow I'll try to update my network adapter drivers and/or changing my network card settings.
Title: Re: Registry Backup Beta
Post by: Shane on June 16, 2012, 04:27:00 pm
Let me know how it goes.

And for the system account, is it set for at system startup or log on? Which ever one it is try switching it to the other and see if you still have the problem :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on June 16, 2012, 05:28:42 pm
I don't see the ntdll.dll problem. IPV6 is not disabled and I have it set to run at system startup.
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on June 17, 2012, 02:12:15 am
I also have an issue in event viewer with "C:\Windows\SysWOW64\ntdll.dll".

I run my task under "Current User Account" with "Run whether the user is logged on or not".

I will now try to disable ipv6. Then I disable ipv6 I got a yellow exclamation point device manager on "Teredo Tunneling Pseudo-Interface - this device cannot start (code 10)"
Then I enable ipv6 again, "Teredo Tunneling Pseudo-Interface - this device cannot start (code 10)"  doesn't disappear, so I had to use "Registry Backup" so everything is as it was before.  :smiley:
"Disable IPv6-Microsoft Fix it 50409" modified some registry entries and "Enable IPv6-Microsoft Fix it 50440" didn't help to restore it as it was before.  :sad:

There is an incident in event viewer with version 0.9.2, 0.9.6, 0.9.8 and 1.2.0. for me and I get it only once in a while.

I will try to do backup by using "system user account" in task scheduler.
I have the task scheduler to do a backup at windows startup and I have tried to startup a couple a times, no issues so far.

Tomas
Title: Re: Registry Backup Beta
Post by: neroilo on June 17, 2012, 04:34:27 am
Let me know how it goes.

And for the system account, is it set for at system startup or log on? Which ever one it is try switching it to the other and see if you still have the problem :wink:

Shane

There is no difference in behavior betwen "at logon" or at "startup".
Updating Network card drivers didn't help here.

A good workaround is disabling IPV6 through network connection properties:
http://support.microsoft.com/Library/Images/2635887.png

or, you can delay your task for 2 or more minutes after logon without disabling IPV6 (delay is not supported in XP task scheduler).

This last method helps a lot, but you can't use schedule buttons in the program to create or edit your task, because they will reset delay task function to none every time you push them.

UPDATE: I removed "delay task" and set my task to run (again) "at windows startup". Now I have no error messages, while before "at windows startup" setting didn't do anything to stop error messages.
The only difference is that this time I created a new task from W7-64 task scheduler instead to use your program for it.
Maybe this is the reason because "at windows startup" option didn't work before.
Title: Re: Registry Backup Beta
Post by: Shane on June 17, 2012, 04:49:07 pm
OK I am getting the new update ready for release.

I will update the code to detect if it is newer than xp and if it is it will use the new api calls to make the schedule instead of using the old xp code. We will see if this fixes up the error :-)

Shane
Title: Re: Registry Backup Beta
Post by: Shane on June 17, 2012, 05:56:22 pm
Tweaking.com - Registry Backup v1.2.0 Released
http://www.tweaking.com/content/page/registry_backup.html

v1.2.0
Program now has an advanced settings section.
Program now has a fallback backup method if the volume shadow copy service fails on a system. It will use the Windows API to backup the core registry files and only the current user registry file. Volume shadow copy is the best way to get all registry files on the system, but now with the fallback method, people who don't have a working volume shadow copy are not left out.
Added new setting to control what VSS exe the program uses. The program uses WMI to pull the OS information. but if WMI isn't working correctly the information isn't pulled and the program doesn't know which vss exe to use. With this new setting you can control it if you have any trouble.
Program can now backup locked profile registry files without having to be ran under the system account.
Improved the scheduler code.
Edit schedule now opens the Windows Task Scheduler.
Code and log improvements.

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on June 22, 2012, 05:09:24 am

I have two new entries in "Registry Backup" under "User Registry Files"
"C:\Users\DefaultAppPool\AppData\Local\Microsoft\Windows\UsrClass.dat" and
"C:\Users\DefaultAppPool\ntuser.dat"

And then I look at "user profiles" I now have "IIS APPPOOL\DefaultAppPool". Can that has something to do with I reinstall .net framework? Can I delete the profile?

I have read this but I don't understand that it is: http://social.technet.microsoft.com/Forums/en/w7itprogeneral/thread/af38172e-1781-4dc7-8835-9581fda8326c   and   http://learn.iis.net/page.aspx/624/application-pool-identities 


I see that I got error in event viewer for "Registry Backup" "C:\Windows\SysWOW64\ntdll.dll" again.
I haven't try to disable IPV6 through network connection properties.
And I "run under system account" in task scheduler.
I created a new schedule in registry backup with 1.2.0, I deleted the old one.
But it seems that everything works, just that it says that there is an error in event viewer.

Tomas
Title: Re: Registry Backup Beta
Post by: neroilo on June 22, 2012, 08:20:05 am
I found two useful articles of suggested hotfixes for WMI related issues (constantly updated):
http://blogs.technet.com/b/askperf/archive/2011/08/05/suggested-hotfixes-for-wmi-related-issue-on-windows-platforms.aspx
http://social.technet.microsoft.com/wiki/contents/articles/1398.list-of-wmi-related-hotfixes-for-windows-7-and-windows-server-2008-r2-en-us.aspx

WMI is strictly connected to IPV6. So, disabling IPV6, you disable some WMI calls:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa822883%28v=vs.85%29.aspx

It sounds like a flawed WMI implementation.
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on June 22, 2012, 12:04:34 pm
Thanks for the help!

I tried "WMIDiag 2.1" and got this kind of error:
ERROR: WMI GET operation errors reported:   32 ERROR(S)!** - Root/CIMV2, MSFT_NetInvalidDriverDependency, 0x80041002 - (WBEM_E_NOT_FOUND) Object cannot be found.

I installed hotfix related to this, and I reset the repository after.
But everytime I run "WMIDiag" and get the same error.
Have tried "Windows repair" and repair WMI.

Tomas
Title: Re: Registry Backup Beta
Post by: neroilo on June 22, 2012, 01:33:13 pm
WMIDiag often reports services not installed, not used or disabled on our system.

I think it's aimed mostly for enterprise users than home users.

However, if you have rebuilded the WMI repository, you should notice a performance boost when you try to open event viewer or task scheduler.
Except the fact you may have need to re-run the setup of some 3rd party products.

This is the MS advice:

Quote
Warning: Rebuilding the WMI repository has resulted in some 3rd party products not working until their setup is re-run & their MOF re-added back to the repository.
Title: Re: Registry Backup Beta
Post by: Shane on June 22, 2012, 09:13:22 pm
Quote
And then I look at "user profiles" I now have "IIS APPPOOL\DefaultAppPool". Can that has something to do with I reinstall .net framework? Can I delete the profile?

Should be able to delete it.

Quote
I see that I got error in event viewer for "Registry Backup" "C:\Windows\SysWOW64\ntdll.dll" again.
I haven't try to disable IPV6 through network connection properties.
And I "run under system account" in task scheduler.
I created a new schedule in registry backup with 1.2.0, I deleted the old one.
But it seems that everything works, just that it says that there is an error in event viewer.

But the backup still worked?

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on June 23, 2012, 05:35:50 am
Quote
But the backup still worked?

The backup works all the time. But I notice that sometimes vss fail to start and then "Registry Backup" uses api to backup instead, but that is quite rare.

Quote
However, if you have rebuilded the WMI repository, you should notice a performance boost when you try to open event viewer or task scheduler.

Yes I notice a little boost performance!

Quote
Except the fact you may have need to re-run the setup of some 3rd party products.

Do all program use WMI or how do I know which 3rd party products to reinstall?

Tomas
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on June 23, 2012, 06:28:12 am
I had an other "Application error" with "Registry Backup", this doesn't happen all the time, but now and then.

In "Task Scheduler" I see the error "0xff" for "Tweaking.com - Registry Backup", but the backup is ok.

I don't know if this has something to do with it but then I edited the task, in Task Scheduler I changed "configure for" from "Vista" to "Windows 7". Now have I changed it back to vista.

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on June 23, 2012, 03:15:49 pm
The new version should auto create the new task under windows 7. But you have to remove the old one first.

Delete the schedule, make sure it is gone and have the program create it, then go check it and it should be set to run under vista & 2008 and not xp. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: chris635 on June 24, 2012, 06:09:56 am
Hey Shane,

    Under restore registry would it be possible to list back ups from newest to oldest in the drop down box?


Chris
Title: Re: Registry Backup Beta
Post by: Shane on June 24, 2012, 02:05:16 pm
I was going to do that but run into the problem of systems with different date formats.

Good ol USA where I live does it different than the rest of the world. And I have the program save the folders with the format of date and time on the system.

Since each area is different it messes up when I try to sort them. I still am trying to find a way to handle all the different formats to sort properly. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on June 24, 2012, 05:46:46 pm
Isn't there a UTC (http://www.nhc.noaa.gov/aboututc.shtml) time associated with each file?

For instance, In PHP, you can do this:

<?php
// outputs e.g.  somefile.txt was last changed: December 29 2002 22:16:23.
$filename = 'somefile.txt';
if (file_exists($filename)) {
    echo "$filename was last changed: " . date("F d Y H:i:s.", filectime($filename));
}
?>


I'd rather see the number of restore points shown increased. Currently you only show 8 and it can easily be increased to 20 or so.
Title: Re: Registry Backup Beta
Post by: Shane on June 24, 2012, 08:36:37 pm
In my other programs I use to auto format the date so I always new what format it was in. I then had users complain they want the format as the same as their system. (My simple internet meter is an example of this) So in there I add the option to allow the user to set the format.

Quote
I'd rather see the number of restore points shown increased. Currently you only show 8 and it can easily be increased to 20 or so.

I am just using the built in combo box control with VB6. I will have to see if there is any API overrides for it or just find a custom control to replace it with :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on June 25, 2012, 04:56:15 am
In "Restore Registry" and at "Select Backup To Restore" it would be nice if there were a shortcut to my backupfolder or that I could delete the backup that I don't want to save. Would it be possible to delete a backup from "combo box" in "Select Backup To Restore"?
 
I had an "Application error" again in "Task Scheduler", but the backup is ok. I did as you (Shane) said, deleted the old task and created a new, I run it under system account. But this is not a big deal for me.

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on June 25, 2012, 02:07:18 pm
Quote
In "Restore Registry" and at "Select Backup To Restore" it would be nice if there were a shortcut to my backupfolder or that I could delete the backup that I don't want to save. Would it be possible to delete a backup from "combo box" in "Select Backup To Restore"?

I can do that :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on June 28, 2012, 09:18:21 am
Shane I hope you had a nice birthday!?

I did a clumsy mistake, I choose to "restore" the registry, when instead I should have selected "Backup Now".

Once you have clicked the "Restore Now" is there some way to cancel? I can think of delete the backup before the reboot? which I did! Nothing happend then!

Maybe the program can have a "Are you sure you want to restore the registry now?" (or something like that) Ok or Cancel, then you click on "Restore Now" button.  The buttons under the tab "Backup Registry" and "Restore Registry" looks the same except for the text.
It's probably rare that someone makes the same mistake I did! haha  :cheesy:
 
Tomas
Title: Re: Registry Backup Beta
Post by: Shane on June 28, 2012, 03:22:15 pm
I can add a msgbox to the restore button to ask if the person is sure :wink:

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on June 29, 2012, 04:00:03 pm
I'm using Registry Backup 1.2.0 portable version, but with surphttp://www.tweaking.com/forums/index.php/topic,278.210.htmlrise I discovered it isn't really portable because it writes recovery console values in registry and a tweaking file in c:\windows.

I think it would be great:

1) an uninstall script in general to restore previous settings and deleting all files generated from the program.
2) generating a dedicated log file (history) of all written values or files created from the program, in the root of the Registry Backup's folder (including previous default values).

And another question... how can I create a registry backup from Windows Vista & 7 Repair Options?

It could be useful to backup a new Windows installation without any registry edit.
Title: Re: Registry Backup Beta
Post by: Shane on June 29, 2012, 04:27:26 pm
Quote
I'm using Registry Backup 1.2.0 portable version, but with surprise I discovered it isn't really portable because it writes recovery console values in registry and a tweaking file in c:\windows.

This is needed. This is how the program can tell which drive Windows is on when doing a restore from the recovery console. It is only a few bytes big and is just needed for the dos recovery and nothing else.

The program is portable in that it can be ran from a thumb drive and run without needing to be installed. The point is to do proper backups of the registry. :wink:

Quote
And another question... how can I create a registry backup from Windows Vista & 7 Repair Options?

The registry are just files. If you have access to the files in the windows repair area you can simply copy them to another folder :wink:

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on June 29, 2012, 04:43:14 pm
The registry are just files. If you have access to the files in the windows repair area you can simply copy them to another folder :wink:

Shane

No doubt, but I'd like to create a batch file that reproduces exactly Registry backup folder structure (with respective files, of course).


Title: Re: Registry Backup Beta
Post by: Shane on June 29, 2012, 04:45:41 pm
You should be able to use the xcopy command.
http://ss64.com/nt/xcopy.html

It has an option on creating the folder structure :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Shane on June 29, 2012, 05:41:27 pm
OK guys here is 1.2.1

Give it a test run before Sundays release :wink:

v1.2.1
Added a message box when restoring the registry asking if you want to restore. This is for the users who clicked restore that didn't mean to, this gives them the option to keep it from restoring :-)
Added a open backup location button to the restore section.
Added a delete this backup button to the restore section.
Increased the combo box drop down list size in the restore section. It will now show the whole list without needing to scroll, but only to the max height of the program. If the restore list is bigger than that then it will scroll. This keeps it from being to big and going off screen.

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on June 29, 2012, 07:56:42 pm
1.2.1 looks good to me, though I do have one question.

Why do you have to select a backup point before the Open current backup location button is active? Would be nice to have that active before selecting anything as well as after selecting.  If nothing selected, open the root of the backup tree maybe???

Just an idea.
Title: Re: Registry Backup Beta
Post by: Shane on June 29, 2012, 08:05:19 pm
I have it opening the backup folder of the current backup you have selected. :wink:

Useful if you want to open that backup in question to look at the logs.

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on June 29, 2012, 10:43:09 pm
I like the changes! :cheesy: The program is even more "user friendly" now.

There is a misspelling then you click "Restore Now"-button, it says "Restore Registy Now" it should be "Restore Registry Now".

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on June 29, 2012, 11:09:46 pm
I dont think people would take me seriously if it wasn't for spell check :-)

I got it fixed :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Shane on July 03, 2012, 10:16:40 pm
OK need some testing and any feed back for v1.2.2 :-)

v1.2.2
Per user request you can now name each registry backup.

Let me know if anything should be changed or added :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on July 04, 2012, 12:39:32 am
I think it's a good idea to be able to name each backup!  :smiley:

My first impression was that I didn't understand where do I find the "Backup Name" after I have done a backup? But have you done some backups it becomes obvious! (That it's under "Combo Box" in "Select Backup To Restore" under the tab "Restore Registry")

But for some it might be a bit confusing with "Backup Name" - What should I write here? Maybe you can write a brief description on the right like: "This is most for advanced users who wants to rename the "Backup Name" so they easier can distinguish between different backups, for a normal user leave it as it is, works just as well".

Tomas
Title: Re: Registry Backup Beta
Post by: eltiburon on July 04, 2012, 11:15:05 am
Hi Shane,
That's pretty quick work! I fired up the new app and successfully entered, saved, and restored a Registry Backup name selection. I like it.

One observation though; after I restore the registry via the Registry Backup GUI, you display a message indicating that the sytem needs to be restarted before the restored registry items can be accessed. Okay, I bring Win7 down gracefully and select Restart; Win7 restarts and after I log on to Win7, there is no indication that the Restore operation succeeded or failed. I took a look at the "Log_Restore.txt" file for the selected restore point and it appears that all of the registry files were correctly restored.

After a Restart and a successful login to Win7, perhaps you can display some sort of popup message indicating that the "Registry Backup Restore operation was successful (or failed)" Or something similar. The Win7 Backup/Restore function currently displays an informative message regarding the restore success/failure on Restart and login. This definitely puts me at ease.

I prefer your product over the Win7 Backup/Restore application.

I'll keep testing and keep you informed.

eltiburon
Title: Re: Registry Backup Beta
Post by: peterr on July 04, 2012, 11:24:49 am
I am also appreciating the reg program you created.
However,I too would feel better if like Win system restore there is a fail or succeed indication tha at truly reflects the status of the operstion.
Peter

>>After reading your reply then taking a closer look, the way it is, says it all, and I am pleased and grateful.
Peter
Title: Re: Registry Backup Beta
Post by: Shane on July 04, 2012, 12:38:01 pm
Quote
After a Restart and a successful login to Win7, perhaps you can display some sort of popup message indicating that the "Registry Backup Restore operation was successful (or failed)" Or something similar. The Win7 Backup/Restore function currently displays an informative message regarding the restore success/failure on Restart and login. This definitely puts me at ease.

Quote
However,I too would feel better if like Win system restore there is a fail or succeed indication tha at truly reflects the status of the operstion.

The program would actually tell you if it failed before the reboot. If you noticed it will say restore successful on the program window and then ask for the reboot.

Here is how the restore works :-)

Restoring the main system registry files is done with a Windows API RegReplaceKey. The API takes the reg file and moves it to the reg folder and rename the others. It is set to use them at next boot. If the API fails doing this it tells my program.

The profile reg files are restored a different way and no way to really keep track of them.

I use the MoveFileEx API which in turn stores the files to be moved at boot here
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations

Again if any of the API calls failed the program would have told you before the reboot :-)

The only way the program would be able to tell if the restore worked after the reboot would be to first write something to each reg section before the restore and then after reboot see if the temp key it made is gone since it should have been replaced from the backup.

I would then need to make another small exe and have it set to run once at the next boot to read the reg to let you know if it worked or not.

I was hoping the program letting you know before the reboot would be good enough lol

Shane
Title: Re: Registry Backup Beta
Post by: eltiburon on July 04, 2012, 07:08:30 pm
The reason I am concerned about the success/failure of the registry restore is that Win7 sometimes displays a message after a Restart/Win7 log on indicating that the Restore failed. I then restart Win7 in SafeMode and run the Win7 Backup/Restore application; a message displays indicating that I must Restart the system. After a successful Restart/Win7 log on, a popup message displays indicating that the Restore operation was successful.

I guess I'm bewildered as to why Win7 Backup/Restore sometimes works in regular mode and sometimes it requires SafeMode. I was trying to visualize how your program fits into this scenario and if there would ever be any instances where your Registry Backup application would fail in restoring any "locked"(?) registry keys and thus require SafeMode to run your Registry Backup application.

I do have Win7 Backup/Restore configured to "Restore system settings and previous versions of files". Perhaps Win7 is unable to restore a previous version of a file because of exclusive use while a normal user is logged in. Since SafeMode uses a vanilla file system, the user files are no longer in use and can be restored successfully.

It seems that your Registry Backup application is mainly focused on registry and profile items. That's what I'm looking for!  Your successful files copied message then reboot request should be quite adequate.

eltiburon
Title: Re: Registry Backup Beta
Post by: Shane on July 05, 2012, 12:49:51 pm
Yeah Windows restore will fail if it has any trouble restoring any files.

Since my program only does the registry and nothing else it doesn't run into that problem. The registry is locked and in use all the time, so that is taken into account when restoring :-)

I will put the new version out this Sunday. So if you see anything to tweak on the new feature let me know  :wink:

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on July 08, 2012, 12:38:54 pm
I did a backup with v1.2.1 before to apply a registry tweak (disablefullrowselect.reg (http://www.winhelponline.com/blog/wp-content/uploads/h1-10/w7-fullrowsel.zip)).
The problem is that I restored "successfully" this backup with the restore button on Windows, but I can still see all modified entries at their place.

For example, if I load as hive my backup version of ntuser.dat in regedit, FullRowSelect entry is not present. But I can still see it after the restore in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced.

For me it seems an unsuccessful restore, but for the program is a successful restore.  :shocked:

Windows 7 x64.
Title: Re: Registry Backup Beta
Post by: Shane on July 08, 2012, 12:42:17 pm
When you did the restore did you reboot?

Also did you only restore the one reg file or all of them?

Can you also post the restore log? :wink:

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on July 08, 2012, 12:45:15 pm
When you did the restore did you reboot?

Also did you only restore the one reg file or all of them?

Can you also post the restore log? :wink:

Shane

1) Yes, of course.
2) All of them.
3)
Code: [Select]
[08/07/2012 - 21:17:44] Starting Restore...

[08/07/2012 - 21:17:44] Backup Location: D:\BACKUP\Sync\Registry\

[08/07/2012 - 21:17:44] Files To Restore:
[08/07/2012 - 21:17:44] --------------------------------------------------------------------------------
[08/07/2012 - 21:17:44] To: C:\Windows\System32\Config\default
[08/07/2012 - 21:17:44] From: D:\BACKUP\Sync\Registry\NEROILO-W7\08.07.2012_19.48.51\C\Windows\System32\Config\default

[08/07/2012 - 21:17:44] To: C:\Windows\System32\Config\sam
[08/07/2012 - 21:17:44] From: D:\BACKUP\Sync\Registry\NEROILO-W7\08.07.2012_19.48.51\C\Windows\System32\Config\sam

[08/07/2012 - 21:17:44] To: C:\Windows\System32\Config\security
[08/07/2012 - 21:17:44] From: D:\BACKUP\Sync\Registry\NEROILO-W7\08.07.2012_19.48.51\C\Windows\System32\Config\security

[08/07/2012 - 21:17:44] To: C:\Windows\System32\Config\software
[08/07/2012 - 21:17:44] From: D:\BACKUP\Sync\Registry\NEROILO-W7\08.07.2012_19.48.51\C\Windows\System32\Config\software

[08/07/2012 - 21:17:44] To: C:\Windows\System32\Config\system
[08/07/2012 - 21:17:44] From: D:\BACKUP\Sync\Registry\NEROILO-W7\08.07.2012_19.48.51\C\Windows\System32\Config\system

[08/07/2012 - 21:17:44] To: C:\Users\NEROILO\AppData\Local\Microsoft\Windows\UsrClass.dat
[08/07/2012 - 21:17:44] From: D:\BACKUP\Sync\Registry\NEROILO-W7\08.07.2012_19.48.51\C\Users\NEROILO\AppData\Local\Microsoft\Windows\UsrClass.dat

[08/07/2012 - 21:17:44] To: C:\Users\NEROILO\ntuser.dat
[08/07/2012 - 21:17:44] From: D:\BACKUP\Sync\Registry\NEROILO-W7\08.07.2012_19.48.51\C\Users\NEROILO\ntuser.dat

[08/07/2012 - 21:17:44] To: C:\Users\Default User\ntuser.dat
[08/07/2012 - 21:17:44] From: D:\BACKUP\Sync\Registry\NEROILO-W7\08.07.2012_19.48.51\C\Users\Default User\ntuser.dat

[08/07/2012 - 21:17:44] To: C:\Users\Default\ntuser.dat
[08/07/2012 - 21:17:44] From: D:\BACKUP\Sync\Registry\NEROILO-W7\08.07.2012_19.48.51\C\Users\Default\ntuser.dat

[08/07/2012 - 21:17:44] To: C:\Windows\ServiceProfiles\LocalService\ntuser.dat
[08/07/2012 - 21:17:44] From: D:\BACKUP\Sync\Registry\NEROILO-W7\08.07.2012_19.48.51\C\Windows\ServiceProfiles\LocalService\ntuser.dat

[08/07/2012 - 21:17:44] To: C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
[08/07/2012 - 21:17:44] From: D:\BACKUP\Sync\Registry\NEROILO-W7\08.07.2012_19.48.51\C\Windows\ServiceProfiles\NetworkService\ntuser.dat

[08/07/2012 - 21:17:44] --------------------------------------------------------------------------------

[08/07/2012 - 21:17:44] Restoring Files...:
[08/07/2012 - 21:17:44] --------------------------------------------------------------------------------
[08/07/2012 - 21:17:44] Restoring File: C:\Windows\System32\Config\default
[08/07/2012 - 21:17:44] C:\Windows\temp\reg_restore\C\Windows\System32\Config\default
C:\Windows\System32\Config\default.old
[08/07/2012 - 21:17:44] Result: Successful - C:\Windows\System32\Config\default

[08/07/2012 - 21:17:44] Restoring File: C:\Windows\System32\Config\sam
[08/07/2012 - 21:17:44] C:\Windows\temp\reg_restore\C\Windows\System32\Config\sam
C:\Windows\System32\Config\sam.old
[08/07/2012 - 21:17:44] Result: Successful - C:\Windows\System32\Config\sam

[08/07/2012 - 21:17:44] Restoring File: C:\Windows\System32\Config\security
[08/07/2012 - 21:17:44] C:\Windows\temp\reg_restore\C\Windows\System32\Config\security
C:\Windows\System32\Config\security.old
[08/07/2012 - 21:17:44] Result: Successful - C:\Windows\System32\Config\security

[08/07/2012 - 21:17:44] Restoring File: C:\Windows\System32\Config\software
[08/07/2012 - 21:17:45] C:\Windows\temp\reg_restore\C\Windows\System32\Config\software
C:\Windows\System32\Config\software.old
[08/07/2012 - 21:17:45] Result: Successful - C:\Windows\System32\Config\software

[08/07/2012 - 21:17:45] Restoring File: C:\Windows\System32\Config\system
[08/07/2012 - 21:17:46] C:\Windows\temp\reg_restore\C\Windows\System32\Config\system
C:\Windows\System32\Config\system.old
[08/07/2012 - 21:17:46] Result: Successful - C:\Windows\System32\Config\system

[08/07/2012 - 21:17:46] Restoring  File: C:\Users\NEROILO\AppData\Local\Microsoft\Windows\UsrClass.dat
[08/07/2012 - 21:17:46] C:\Windows\temp\reg_restore\C\Users\NEROILO\AppData\Local\Microsoft\Windows\UsrClass.dat
C:\Users\NEROILO\AppData\Local\Microsoft\Windows\UsrClass.dat.old
[08/07/2012 - 21:17:46] Result: Successful - C:\Users\NEROILO\AppData\Local\Microsoft\Windows\UsrClass.dat

[08/07/2012 - 21:17:46] Restoring  File: C:\Users\NEROILO\ntuser.dat
[08/07/2012 - 21:17:46] C:\Windows\temp\reg_restore\C\Users\NEROILO\ntuser.dat
C:\Users\NEROILO\ntuser.dat.old
[08/07/2012 - 21:17:46] Result: Successful - C:\Users\NEROILO\ntuser.dat

[08/07/2012 - 21:17:46] Restoring  File: C:\Users\Default User\ntuser.dat
[08/07/2012 - 21:17:46] C:\Windows\temp\reg_restore\C\Users\Default User\ntuser.dat
C:\Users\Default User\ntuser.dat.old
[08/07/2012 - 21:17:46] Result: Successful - C:\Users\Default User\ntuser.dat

[08/07/2012 - 21:17:46] Restoring  File: C:\Users\Default\ntuser.dat
[08/07/2012 - 21:17:46] C:\Windows\temp\reg_restore\C\Users\Default\ntuser.dat
C:\Users\Default\ntuser.dat.old
[08/07/2012 - 21:17:46] Result: Successful - C:\Users\Default\ntuser.dat

[08/07/2012 - 21:17:46] Restoring  File: C:\Windows\ServiceProfiles\LocalService\ntuser.dat
[08/07/2012 - 21:17:46] C:\Windows\temp\reg_restore\C\Windows\ServiceProfiles\LocalService\ntuser.dat
C:\Windows\ServiceProfiles\LocalService\ntuser.dat.old
[08/07/2012 - 21:17:46] Result: Successful - C:\Windows\ServiceProfiles\LocalService\ntuser.dat

[08/07/2012 - 21:17:46] Restoring  File: C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
[08/07/2012 - 21:17:46] C:\Windows\temp\reg_restore\C\Windows\ServiceProfiles\NetworkService\ntuser.dat
C:\Windows\ServiceProfiles\NetworkService\ntuser.dat.old
[08/07/2012 - 21:17:46] Result: Successful - C:\Windows\ServiceProfiles\NetworkService\ntuser.dat

[08/07/2012 - 21:17:46] --------------------------------------------------------------------------------

Title: Re: Registry Backup Beta
Post by: Shane on July 08, 2012, 12:46:27 pm
In your profile you should see a ntuser.old

Is it there?

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on July 08, 2012, 12:50:43 pm
In your profile you should see a ntuser.old

Is it there?

Shane

I see two files, ntuser.dat and ntuser.dat.BAK.
Title: Re: Registry Backup Beta
Post by: Shane on July 08, 2012, 12:53:09 pm
Sorry .bak lol

What is the date and time on it compared to the restored one?

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on July 08, 2012, 01:01:29 pm
ntuser.dat
Creation date: ‎may 25th ‎2012, ‏‎15:43:55   Last edit: Today july 8th ‎2012, ‏‎1 minute ago Last access: Today july 8th ‎2012, ‏‎40 minutes ago

ntuser.dat.BAK
Creation date: ‎may 25th ‎2012, ‏‎15:43:55   Last edit: Tuesday june 5th ‎2012, ‏‎22:49:55  Last access: Tuesday june 5th ‎2012, ‏‎22:49:55

Title: Re: Registry Backup Beta
Post by: Shane on July 08, 2012, 01:03:39 pm
Thats why the resotr didnt take.

The program should delete the bak file.

Then it adds the rename and move operation for the next system boot. But if the bak file is already there it will fail.

Remove the bak file and then do the restore. Let me know if it works.

If it does I need to put some better handling or at least reporting if it fails to delete the bak file.

When you reboot you should see a new bak file :wink:

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on July 08, 2012, 01:17:33 pm
I have NTUSER.DAT.BAK also in:

C:\Windows\ServiceProfiles\NetworkService
C:\Windows\ServiceProfiles\LocalService

and three log files in all of them (NTUSER.DAT.LOG, NTUSER.DAT.LOG1, NTUSER.DAT.LOG2)

Can I delete them from those folders?
Title: Re: Registry Backup Beta
Post by: Shane on July 08, 2012, 01:19:05 pm
The .bak are the old registry files before the restore. They are safe to delete.

The log files Windows creates, so dont delete them :wink:

Like I said my program should be deleting them before each restore, unless they where locked for some reason.

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on July 08, 2012, 01:24:29 pm
The .bak are the old registry files before the restore. They are safe to delete.

The log files Windows creates, so dont delete them :wink:

Like I said my program should be deleting them before each restore, unless they where locked for some reason.

Shane

I have also:

C:\Windows\System32\Config\default.bak
C:\Windows\System32\Config\sam.bak
C:\Windows\System32\Config\security.bak
C:\Windows\System32\Config\software.bak
C:\Windows\System32\Config\system.bak

One minute, and I'll let you know.
Title: Re: Registry Backup Beta
Post by: neroilo on July 08, 2012, 01:34:02 pm
It didn't work, I'm afraid.

I have no bak file this time, but the music didn't change.

My registry tweaks are still there.
Title: Re: Registry Backup Beta
Post by: Shane on July 08, 2012, 01:35:22 pm
Any bak files in the system32/config?

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on July 08, 2012, 01:38:02 pm
Any bak files in the system32/config?

Shane

No more bak there, but only old files:

C:\Windows\System32\Config\default.old
C:\Windows\System32\Config\sam.old
C:\Windows\System32\Config\security.old
C:\Windows\System32\Config\software.old
C:\Windows\System32\Config\system.old
Title: Re: Registry Backup Beta
Post by: Shane on July 08, 2012, 01:39:53 pm
God I shouldnt be on here today, to damn tired lol

My program does make the .old files. Erunt does the .bak files lol

Ok so the main reg keys restored but not the user profiles.

This time restore the user profiles but not the system reg files and let me know how it goes :wink:

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on July 08, 2012, 01:52:34 pm
This time restore the user profiles but not the system reg files and let me know how it goes :wink:

Restoring only the user profiles I solved my issue. Now all restored files have their old files.
I can't imagine how much work it will be required for you to fix it in a new release.

Anyway, thank you for your support. You're very kind, as always.
Title: Re: Registry Backup Beta
Post by: Shane on July 08, 2012, 01:54:19 pm
Odd. On my system I can restore them all at once.

The main files are done then the profiles are added to the reg to do the moves and renames.

On my system Windows puts those regkeys in the new reg files. But on yours it wasn't and so the move operation was being stored in the old ones that where being replaced.


hhhmmm how to handle this one.

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on July 08, 2012, 02:20:21 pm
Sorry to disturb you again, but I have just another doubt.  :artist:

I loaded ntuser.dat as hive in regedit, but I can't find any Volatile Environment subkey, as you can see in this image:
http://s11.postimage.org/tvay0f2vn/hive_vs_restored.png

Is it normal to not have this subkey in my backupped ntuser.dat?
Title: Re: Registry Backup Beta
Post by: Shane on July 08, 2012, 02:25:43 pm
Correct.

Volatile means they are temp stored there.

Quote
All registry keys that are created as volatile, and the information is stored in memory and is not preserved when the corresponding registry hive is unloaded

Shane
Title: Re: Registry Backup Beta
Post by: Shane on July 09, 2012, 10:53:55 am
I held off putting out v1.2.2.

I want to find a way to handle the profiles not being restored on some systems because Windows doesn't put the move operation into the new system reg files.

Only way I can think of is to make the restore a 2 step process.

If a person wants to restore both the profiles and system reg files have it do the system reg first, reboot then do the profiles and reboot again.

I hate this idea but would be the only way to make sure it works for sure.

Just bugs me that the restore works fine on all my test machines. What is different about yours I wonder?

What version of Windows where you using again?

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on July 09, 2012, 11:55:20 am
I held off putting out v1.2.2.

I want to find a way to handle the profiles not being restored on some systems because Windows doesn't put the move operation into the new system reg files.

Only way I can think of is to make the restore a 2 step process.

If a person wants to restore both the profiles and system reg files have it do the system reg first, reboot then do the profiles and reboot again.

I hate this idea but would be the only way to make sure it works for sure.

Just bugs me that the restore works fine on all my test machines. What is different about yours I wonder?

What version of Windows where you using again?

Shane

The system in question is Windows 7 x64 Ultimate.
I don't know if it is related to this issue, but I recently restored a backup image into my new SSD (that I'm using now as main system) using Norton Ghost 15.

Unfortunately I can't say if Norton Ghost 15 can be involved, because I didn't try to restore registry files with Registry Backup before to install Norton Ghost.

Except Norton Ghost in background, I'm using MSE as antivirus and Windows Firewall.
Title: Re: Registry Backup Beta
Post by: Shane on July 09, 2012, 11:59:24 am
I am also on Win 7 64bit and the restore works fine.

Still, I want this to work properly for everyone.

I wonder if there is a way for me to add the move file operations manually to the restore system reg file.

I need to do some research :-)

Shane
Title: Re: Registry Backup Beta
Post by: chris635 on July 13, 2012, 08:03:05 pm
Shane

   Just Curious. Are you planning on a new version this weekend?


Chris
Title: Re: Registry Backup Beta
Post by: Shane on July 13, 2012, 08:05:40 pm
I am actually working on the new version now.

Making it 1.3.0 instead.

I am redoing how it does the restore. After more tests I found that the user profiles where not being replaced if you restored the system reg files as well.

I am very close to posting it here for testing.

Basically what happens is when the profiles are restore the pending move operations are stored in the reg. Problem is it got stored in the old reg.

So the fix (If it works, testing now) is to take the pending moves and put it into the restored system reg file. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: chris635 on July 13, 2012, 08:10:40 pm
When you get it done I'll try it out on my laptop first. I have to work tomorrow and Sunday (12 hrs both days). If you want I'll test when I can.


Chris
Title: Re: Registry Backup Beta
Post by: Shane on July 13, 2012, 08:12:14 pm
Lets give this a run before Sundays release  :wink:

neroilo make sure you give it a test run as well please :-)

v1.3.0
Per user request you can now name each registry backup.
Major change to the restore process in the program. Before the user profile registry files didn't always get restored because the move file operation was written to the old system registry file. This only happened if you restored the user profiles and the system registry at the same time and only when restoring from the program. This has now been fixed :-)

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on July 14, 2012, 04:01:27 am
I did a restore with 1.3.0.

I changed a registry entry in "HKEY_CURRENT_USER" is that enough? so I see if restore have worked?
Anyway I did a backup before I change a value in the registry, then I did a restore, and the original value was there, so that worked!  :smiley:

The *.old registry file can I delete them, if I dont delete them, will they always be there till next restore?

Tomas
Title: Re: Registry Backup Beta
Post by: neroilo on July 14, 2012, 07:40:24 am
Issue fixed with 1.3.0. After a new full backup, I created a new registry key in "HKEY_CURRENT_USER". Restoring it (with all checkboxes selected), registry key is disappeared as expected.

But, as Tomas, I'd like to have some explanations about how these .old files work.

For example, UsrClass.dat.old last edit is july 8th, while UsrClass.dat last edit is 14th july.

In other old files, the day of the last edit is always the same.

EDIT: I appreciate I can set a backup name, but if I don't want it, how can I do?  :tongue:
Title: Re: Registry Backup Beta
Post by: Shane on July 14, 2012, 10:20:08 am
The .old files are safe to delete.

When the program restores the current in use reg files, they are renamed to .old. This is much safer than trying to simply delete them.

When the program does another restore it automatically deletes the .old file if it is already there since a new .old will be coming. But once restored you can delete them if you wish. But just in case they are there if you need them.

So turns out I am a little bit of a dip some times lol. The restore wasn't working properly before.

When I tested the restore of the profile registry I had tested without restoring the system registry.

When replacing the profile registry files I use this "PendingFileRenameOperations"

http://technet.microsoft.com/en-us/library/cc960241.aspx

This of course is in the registry (The SYSTEM hive file)

So when you reboot the system hive file was replaced with those keys gone the profiles didn't get replaced.

Thanks to neroilo for letting me know. Now the question was how the heck do I fix it?

First thing that came to mind was writing another exe to check it and require 2 reboots. System reg files at one reboot and the profiles at the next. I HATED this idea.

So I did some digging and found what I needed. I can load other hive files to the registry to write to them.

So I changed the restore. It now does the user profiles first and then it will then read the "PendingFileRenameOperations" regkey from the current loaded system hive reg file.

Then it will copy the system reg hive file out of the backup to a temp folder (Which it does already) and then it loads that system hive and puts in the PendingFileRenameOperations into the soon to be restore system hive.

Then when the program restores the system hive the PendingFileRenameOperations will be there and the user profiles get restored :cheesy:

So I was able to keep from having to make the restore any harder or any different on the user and got it working even better than before. :wink:

Quote
EDIT: I appreciate I can set a backup name, but if I don't want it, how can I do?
Should be able to have it blank if you want.

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on July 14, 2012, 11:09:18 am

Quote
EDIT: I appreciate I can set a backup name, but if I don't want it, how can I do?
Should be able to have it blank if you want.

Shane

Ok, but the program doesn't remember it when I close and start again the program.
Title: Re: Registry Backup Beta
Post by: Shane on July 14, 2012, 11:15:51 am
Correct. Right now I have it set not to remember.

The reason why is lets say someone makes a name to identified it. Then they let it go as the auto backups keep going. If it saved the name every backup after that would have the same, thus confusing the person on which was the backup they wanted.

So I just have the one default name in there. I could just have the name blank by default instead :-)

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on July 14, 2012, 11:18:45 am
Then it will copy the system reg hive file out of the backup to a temp folder (Which it does already) and then it loads that system hive and puts in the PendingFileRenameOperations into the soon to be restore system hive.

Yeah, but what temp folder? C:\Windows\Temp? In my case I moved TMP and TEMP System variables from C:\windows\temp to d:\temp, have you considered this particular case?
Title: Re: Registry Backup Beta
Post by: Shane on July 14, 2012, 11:24:19 am
Windows is very picky on this.

In order to use the Reg restore API in Windows the reg hive files HAVE to be on the same drive as windows or the API will fail.

So I have the program find the Windows folder and it puts the files into the Temp folder there :wink:

This way no matter what the reg files are copied to the same drive as Windows.

Also on the naming of the backup, do you think it would be a good idea to have the program auto name the backups when run automatically? Like "Auto Backup"

This way when you check the list you will know which was from the scheduled backup and which ones you did.

Shane
Title: Re: Registry Backup Beta
Post by: Shane on July 14, 2012, 12:47:18 pm
I know what I will do.

I will add 2 settings to the advanced settings section.

Here you can tell the program the Default Backup name and the Default Backup name when run automatically.

This way people can still set their own like you want while not saving it on the main area and letting custom names work like I wanted.  :wink:

Will get started on it now.

Shane
Title: Re: Registry Backup Beta
Post by: Shane on July 14, 2012, 01:47:37 pm
Updated, v1.3.0

This will be build to go out tomorrow unless anyone finds anything wrong :wink:

New settings are under the advanced settings.

Let me know what you think :wink:

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on July 14, 2012, 02:26:43 pm
Updated, v1.3.0

This will be build to go out tomorrow unless anyone finds anything wrong :wink:

New settings are under the advanced settings.

Let me know what you think :wink:

Shane

I think you've had a good idea there.
Quick report.. I can't exit from the program using Taskbar right click menu in Win 7. The only way is using the exit button in top right corner.

Under restore registry would it be possible to list back ups from newest to oldest in the drop down box?

In my other programs I use to auto format the date so I always new what format it was in. I then had users complain they want the format as the same as their system. (My simple internet meter is an example of this) So in there I add the option to allow the user to set the format.

This would be cool if it were possible to introduce it.
Title: Re: Registry Backup Beta
Post by: chris635 on July 14, 2012, 03:36:56 pm
This version works well for me too. Release it lol  :tongue:

Chris
Title: Re: Registry Backup Beta
Post by: Shane on July 14, 2012, 03:39:31 pm
I try to release on Sundays, so It will be out tomorrow :-)

Shane
Title: Re: Registry Backup Beta
Post by: Shane on July 17, 2012, 10:53:31 am
I am starting to think the registry backup program is ready to be replace erunt in my other programs for the registry backups :-) (Windows Repair, Advanced System Tweaker, Simple System Tweaker)

What do you guys think?

Shane
Title: Re: Registry Backup Beta
Post by: chris635 on July 17, 2012, 11:28:43 am
I agree. Will you keep this as a stand alone as well?


Chris
Title: Re: Registry Backup Beta
Post by: Shane on July 17, 2012, 11:29:34 am
Yeah it will be stand alone, just included with the program and ran from it. Same way Erunt currently is :wink:

Shane
Title: Re: Registry Backup Beta
Post by: chris635 on July 17, 2012, 11:32:33 am
Okay sounds good



Chris
Title: Re: Registry Backup Beta
Post by: Ztruker on July 17, 2012, 04:45:21 pm
Shane, just noticed that Edit Schedule only opens the Task Scheduler, it doesn't place you at the Tweaking.com - Registry Backup entry. Is there any way to do this that you know of?

I know it's not a big deal, just click on Task Scheduling Library then Tweaking.com - Registry Backup

Everything else looks good. I've already moved from ERUNT to t.cRB.
Title: Re: Registry Backup Beta
Post by: Shane on July 17, 2012, 05:13:23 pm
I have to see if there is any options for it. Right now I just call the shell command like this

Call Shell("C:\Windows\System32\control.exe schedtasks", 1)

So I need to see if schedtasks has any options to give it.

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on July 17, 2012, 10:41:40 pm
I mailed a swedish pc magazine about Registry Backup and they posted a program tips about it now!

They explain the program like this: The name reveals the area of ​​use, this is a program for backup (and restore) the Windows registry.
Registry Backup is therefore a perfect tool for more advanced users who like to edit the registry on their own.


http://www.pchemma.se/artiklar/programtips/20120717/registry-backup-1

I have also replaced ERUNT with Registry Backup!  :smiley:

I saw that Nerilo posted :
Quote
I can't exit from the program using Taskbar right click menu in Win 7. The only way is using the exit button in top right corner.
Is it possible to change that? 

Tomas
Title: Re: Registry Backup Beta
Post by: neroilo on July 18, 2012, 02:12:59 am
Registry Backup is therefore a perfect tool for more advanced users who like to edit the registry on their own.


If you do a backup, then a restore (two buttons in total), it is not only for advanced users who like to edit the registry.
For example, it can be useful to recover a Windows registry damaged from malware. In my opinion, they should specify it.
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on July 18, 2012, 05:11:28 am
I think my translation is not perfect. It should be something like this:
 "for little more advanced user", but they don't specify "more advanced" than what? beginner or normal user?

But all programs that have to do with registry is considered for more advanced user in general I think, some kind of precaution, even if it's as simple as Registry Backup.

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on July 18, 2012, 10:44:05 am
Quote
"for little more advanced user",
Quote
But all programs that have to do with registry is considered for more advanced user in general I think

This is true :-)

One reason is lets say a user who doesn't understand very much, now lets say they do a reg backup and let 6 months pass. Then they go and do a restore of a registry from 6 months ago.

You can see how that wouldn't turn out well. Also another reason I have the auto delete feature :-)

At the same time I did my best to make the program easy enough for anyone to use.

Quote
I saw that Nerilo posted :
Quote

    I can't exit from the program using Taskbar right click menu in Win 7. The only way is using the exit button in top right corner.

Is it possible to change that? 

I missed that one, let me check on it and see if I can find out why it doesnt close from there :-)

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on July 18, 2012, 05:41:07 pm
I have to see if there is any options for it. Right now I just call the shell command like this

Call Shell("C:\Windows\System32\control.exe schedtasks", 1)

So I need to see if schedtasks has any options to give it.

Shane

I don't think so.
http://social.technet.microsoft.com/Forums/en/winservergen/thread/7cbfcf5f-9f7e-4639-8486-6a01e6cb0006

Do you think that these articles can help you?
http://serverfault.com/questions/152620/query-schtasks-using-powershell
http://powershell.codeplex.com/releases/view/54703
http://www.windowsitpro.com/content1/topic/how-to-powershell-scheduled-tasks-140978/catpath/windows-powershell
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on July 23, 2012, 11:29:08 pm
1. I installed Registry Backup on my brothers computer who has win xp, everything works perfectly.  :cheesy:
When I do a scheduled backup when the computer starts, it takes about 30 seconds on his computer.
With my computer, Win 7 64-bit and much better hardware it takes approximately 2-3 minutes.
What could be the reason for the big difference?
The "Registry Backup" backups 12 files on my brohters computer and 13 files on mine.

2. And another question in "C:\Windows" I have a file that is called "tweaking.com-regbackup-TOMAS-DATOR-Microsoft-Windows-7-Home-Premium-(64-bit).dat" what is that?

3. Then look in the "C:\RegBackup" folder and look at the backup I have done, I would like to see if the backup is made with Volume Shadow Copy without have to open the Registry Backup.  I have a folder that is called "2012-07-24_07.26.17" if there is added for example how many files that is saved I realize right away if vss works, so that folder would be called: "2012-07-24_07.26.17_(13)" is it possible to add that?
I'm thinking if my registry is all messed up and I start a bootable usb drive and can't start "Registry Backup" then it's easy to distinguish if I see how many files that is stored in the backup folder. I know that I can open "Log_Vss" and "Log_Backup" but it takes more time than just see how many backup files there is.

4.
Quote
You can set the default backup name and default auto backup name for the backups under the advanced settings.
I really like that makes it easy to distinguish manual backup from the scheduled!  :smiley:

Tomas
Title: Re: Registry Backup Beta
Post by: neroilo on July 24, 2012, 06:49:41 am

2. And another question in "C:\Windows" I have a file that is called "tweaking.com-regbackup-TOMAS-DATOR-Microsoft-Windows-7-Home-Premium-(64-bit).dat" what is that?


If you open it with notepad, you'll find the answer:
Quote
This file is used for the dos_restore.cmd file to find which drive windows is on when doing a restore from the windows recovery. Please leave this file if you use the tweaking.com - registry backup program

By the way, Shane, I think having a list of all files and registry settings edited and/or created from all your tweaking utilities is a good idea.
Using Windows Repair AIO, I saw a hidden file called pcwintech or something of similar in c:\ folder.

If I were decide to not use Windows Repair or Registry Backup anymore, I'd like a comfortable way to remove all these "leftovers" or at least to know in advance their existence without searching them.
Currently, it's like a treasure hunt.
Title: Re: Registry Backup Beta
Post by: Ztruker on July 24, 2012, 05:43:07 pm
I see a C:\Program Files (x86)\Tweaking.com\Registry Backup\pcwintech.ocx which is something to do with ActiveX I think.
Title: Re: Registry Backup Beta
Post by: Shane on July 24, 2012, 06:25:20 pm
Quote
By the way, Shane, I think having a list of all files and registry settings edited and/or created from all your tweaking utilities is a good idea.
Using Windows Repair AIO, I saw a hidden file called pcwintech or something of similar in c:\ folder.

There shouldnt be any left over files. All DLL or OCX files are in with the program in the same folder. The manifest file tells windows to use them.

If you find out what file it was on the c:\ let me know :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on July 25, 2012, 01:55:06 am

2. And another question in "C:\Windows" I have a file that is called "tweaking.com-regbackup-TOMAS-DATOR-Microsoft-Windows-7-Home-Premium-(64-bit).dat" what is that?


If you open it with notepad, you'll find the answer:
Ok thank you Neroilo  :smiley:

1. I installed Registry Backup on my brothers computer who has win xp, everything works perfectly.  :cheesy:
When I do a scheduled backup when the computer starts, it takes about 30 seconds on his computer.
With my computer, Win 7 64-bit and much better hardware it takes approximately 2-3 minutes.
What could be the reason for the big difference?
The "Registry Backup" backups 12 files on my brohters computer and 13 files on mine.

Shane do you know why it is such a big difference?

3. Then look in the "C:\RegBackup" folder and look at the backup I have done, I would like to see if the backup is made with Volume Shadow Copy without have to open the Registry Backup.  I have a folder that is called "2012-07-24_07.26.17" if there is added for example how many files that is saved I realize right away if vss works, so that folder would be called: "2012-07-24_07.26.17_(13)" is it possible to add that?
I'm thinking if my registry is all messed up and I start a bootable usb drive and can't start "Registry Backup" then it's easy to distinguish if I see how many files that is stored in the backup folder. I know that I can open "Log_Vss" and "Log_Backup" but it takes more time than just see how many backup files there is.

Shane if you understand what I mean, what do you think?


And I have a "Log_Backup" in C: that belongs to Registry Backup, the date on the file is 2012-06-27.

Tomas
Title: Re: Registry Backup Beta
Post by: neroilo on July 25, 2012, 07:40:54 am
Quote
By the way, Shane, I think having a list of all files and registry settings edited and/or created from all your tweaking utilities is a good idea.
Using Windows Repair AIO, I saw a hidden file called pcwintech or something of similar in c:\ folder.

There shouldnt be any left over files. All DLL or OCX files are in with the program in the same folder. The manifest file tells windows to use them.

If you find out what file it was on the c:\ let me know :wink:

Shane
I have just checked out, it wasn't pcwintech (my mistake). It's called repairs_running.dat.
Considering the name, it should be removed when the program finishes all repairs.
Title: Re: Registry Backup Beta
Post by: neroilo on July 25, 2012, 07:53:58 am
1. I installed Registry Backup on my brothers computer who has win xp, everything works perfectly.  :cheesy:
When I do a scheduled backup when the computer starts, it takes about 30 seconds on his computer.
With my computer, Win 7 64-bit and much better hardware it takes approximately 2-3 minutes.
What could be the reason for the big difference?
The "Registry Backup" backups 12 files on my brohters computer and 13 files on mine.

Generally Win7 has a lot of running services than Windows XP, but you could have any driver or app slowing down your machine.
Can you post the name of these 12 files against the 13 files on your computer?
Title: Re: Registry Backup Beta
Post by: Shane on July 25, 2012, 03:35:26 pm
Quote
Shane do you know why it is such a big difference?

I noticed that in my testing. VSS is slower in Windows 7 as it has more to do and is a newer version of VSS than in XP.

Quote
I have just checked out, it wasn't pcwintech (my mistake). It's called repairs_running.dat.
Considering the name, it should be removed when the program finishes all repairs.

I do have it set to delete when it is done. I will double check again though :-)

Shane
Title: Re: Registry Backup Beta
Post by: Ztruker on July 25, 2012, 04:35:30 pm
My automated Reg Backup has a total of 92 directories and 22 files.

Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on July 25, 2012, 11:26:29 pm
I noticed that in my testing. VSS is slower in Windows 7 as it has more to do and is a newer version of VSS than in XP.

Ok I see!  :wink:

Ztruker, there do I find "AllBackupFiles"?

Tomas
Title: Re: Registry Backup Beta
Post by: Ztruker on July 26, 2012, 06:59:26 pm
I opened a Command Prompt, changed to the folder I use to backup the registry then did a dir /s > AllBackupFiles.txt
Title: Re: Registry Backup Beta
Post by: neroilo on August 15, 2012, 05:30:34 pm
@Tomas_Sweden: Do you remember when you said that with your Win 7 64-bit a registry backup takes approximately 2-3 minutes at startup/logon?

I have just identified casually a WMI hotfix for your specific issue:

http://support.microsoft.com/kb/2617858/en-us

Quote
For example, the computer takes three or more minutes to start.

Better late than never, I suppose.  :smiley:
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on August 16, 2012, 12:31:26 am
Thank you for showing me the hotfix! I've installed it. I watched my log file how long time the Task Scheduler Backup takes, and August 8
it took 120 sec, then 9 Aug it took 90 sec and yesterday (15 aug) it took about 70 sec. After I've installed the hotfix it takes about 60
sec or less, so about 10 seconds faster. I don't know what happened after August 8, after that the backup has been much faster. Anyway
thank you for the tip!  :cheesy:

Tomas
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on August 16, 2012, 12:50:21 am
I have installed Tweaking.com - Registry Backup 1.3.0 on my brothers computer (Windows Xp Sp3) and have it to run with Task Scheduler
every time "at log on", now I have it to Run under system account, but sometimes then the computer starts an error message will occour:
Application Error Event ID: 1000 "Faulting application TweakingRegistryBackup.exe, version 1.3.0.0, faulting module unknown, version
0.0.0.0, fault address 0x00000003."

And then I look in C:\WINDOWS\Tasks there is the error code: oxcoooooo5.

Then I look in Registry backup, the backup has been made and everything seems normal with that. I have tried to run Task Scheduler under
Current User Account and with "run only if logged on" and I have tried to uncheck the same.

It doesn't crash on every reboot.

Then I look at Log_Vss and at the end it says: "Cancel failed to end program."

I attach the log files.

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on August 16, 2012, 10:29:15 pm
On a side note, I got a hold of Windows 8 and will be loading it up in vmware and testing all my programs.

I really have no desire to go to 8. I still can not believe they removed the start menu!

There are 3rd party replacements, but still!

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on August 17, 2012, 06:59:52 am
On a side note, I got a hold of Windows 8 and will be loading it up in vmware and testing all my programs.

I really have no desire to go to 8. I still can not believe they removed the start menu!

There are 3rd party replacements, but still!

Shane

According to me, it was an error to leave the classic desktop interface in these conditions. I would have preferred a rebuilt desktop in metro style (with a proper file manager in metro style) to ensure a major coerence with their changes. The graphical switch between desktop mode & metro mode is annoying. One mode or another, not together in the same interface.

I'd like to know if they fixed maximum filename path lenght issue, still occurring in Windows 7 Explorer. But I doubt it, because they're testing ReFS for a future NTFS replacement.
Title: Re: Registry Backup Beta
Post by: Shane on August 17, 2012, 01:35:16 pm
I will be happy when they dump NTFS and go with a file system that doesn't need defragging like MAC and Linux :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on August 17, 2012, 10:10:05 pm
I wonder if the crash I have seen with "Registry Backup" on Win xp  is only on my brothers computer or if it's a common problem?

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on August 17, 2012, 10:24:09 pm
How does it do on your system?

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on August 17, 2012, 10:32:04 pm
On my win7 64-bit it's working fine! I have it set to run under "Current User Account" in Task Scheduler on my computer.

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on August 17, 2012, 10:33:27 pm
Very odd. I dont have that problem on my test xp machine.

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on August 17, 2012, 10:45:47 pm
Ok, lets hope it's just on my brothers computer! 

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on August 31, 2012, 04:40:56 pm
See what you guys think of this new version before I put it out Sunday :-)

v1.4.0
The program now detects if it didn't close right, if so ask if they want to use the fallback backup method instead (This is for people who get a blue screen of death when trying to use the volume shadow copy)
You can now have the program always use the fallback backup method instead of the volume shadow copy service. The goal of this is for the people who have a messed up VSS on their system. Instead of making them wait for the VSS to fail it will now run right away.
Per user request you can now have the program only make 1 auto backup per day. (This is for the people who have it set to backup at system startup but reboot their machines multiple times per day)
Change the -silent command to run the backup minimized.
Add some new command line options. -supersilent (Backups but shows no GUI at all) -auto (Runs the program, does a backup and then closes, the user can see it as it works, this was the original way the -silent command use to work)
Now that the program has 3 different command lines it can use, the user can now tell the program which command to use for the scheduled backups.


Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on August 31, 2012, 06:21:12 pm
Shane:

The once a day backup seems to be working fine.  A second reboot did not produce any backups.  I also used the /auto option. However, I noticed that when the backup started it gave a message that VSS failed and then it used the alternate method to backup. I never had this happen when I did my backups manually.   What's the story on this?
Title: Re: Registry Backup Beta
Post by: Shane on August 31, 2012, 06:23:51 pm
Odd, let me test it some more.

I have it set to where when you start the program it sets a setting in the ini file to false.

When you close the program it changes it to true. If the system was to blue screen from the VSS or the program crashes that settings stays false.

If it is false the program will say it didnt shutdown correctly.

During my testing I didnt have it happen to me. When it runs automatically from the schedule can you check to see if it is closing, or is it crashing?

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on August 31, 2012, 06:36:46 pm
Shane

I want to reboot and run my backup again.  I used the once a day option.  I thought I just had to delete the recent backup folder to kick off another backup but that didn't work.  Where do you store the setting that tells RB it already took a once a day backup?   I want to clear it so I can run another backup to see if the VSS problem still comes up.
Title: Re: Registry Backup Beta
Post by: Shane on August 31, 2012, 06:37:34 pm
settings.ini file :wink:

You will see LastAutoBackup

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on August 31, 2012, 06:46:13 pm
I changed the LastAutoBackup to yesterday's date (guess I could have just deleted it?) but when I try to save Settings.ini I get a message: 'Please check if this file is opened in another program'.  AFAICT no other program has it opened.
Title: Re: Registry Backup Beta
Post by: Shane on August 31, 2012, 06:47:26 pm
It is because you have the UAC enabled on your system. I hate the UAC and have mine turned off.

It is not giving you permission to save the file.

Save it to the desktop, then copy and paste it back. The UAC will then ask for permission :wink:

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on August 31, 2012, 06:56:02 pm
UAC is already off.  Anywho...I copied the file to my desktop, made changes, then copied it back.  I was asked for permission and it saved the file.

I think this is bug in W8.  I've had situations where the UAC slider moves up a notch from off for no apparent reason.

Did you know that under W8 moving the UAC slider to off does not turn it off completely like it does under W7?  There is still a little UAC floating around.  I was told this is for Metro/Modern (what the hell is it called now?) apps.  You can turn it off in the Registry but I was told you are asking for trouble under W8.  I think W8 is designed to function with UAC on.

Title: Re: Registry Backup Beta
Post by: Shane on August 31, 2012, 06:57:59 pm
I think Windows 8 is going to bomb. The core changes (Some) are nice. But the interface is such a huge change. And people HATE change.

Windows 9 will be what 8 should have been. Just like 7 is what Vista should have been.

Let me know how your tests goes. If the program isnt closing properly I need to find out why.

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on August 31, 2012, 07:02:27 pm
I rebooted and got the message 'waiting for volume Copy snapshot.....'  Message was on screen for maybe 8 seconds then it was done.  It did backup my Registry.  Do you want me to send you my logs and settings via email to see how it went?
Title: Re: Registry Backup Beta
Post by: Shane on August 31, 2012, 07:04:48 pm
Sure, also did you see if it was still running in the background? Send the settings.ini file as well.

shane at tweaking

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on August 31, 2012, 07:07:32 pm
I was using the /auto option so I expect to see something.  I thought I would see the same screen when you run it manually.  You know with your cool progress indicator thingy.  I'll send the files right now.
Title: Re: Registry Backup Beta
Post by: Shane on August 31, 2012, 07:10:54 pm
Everything looked perfect in the logs. And the program closed properly.

Keep testing and let me know how it goes. If no bugs are found I will be putting it out on Sunday :-)

I hope you like all the changes.

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on August 31, 2012, 07:20:33 pm
Yes I like the changes, especially the one I requested.  :smiley:

Speaking of W8 I agree with you.  Does it want to be a phone or a desktop?  I guess it's both.  I installed 'Classic Start Menu' to get the desktop one back.  I have it set so I boot to the desktop and not metro.  I pretty much have figured out MS's convoluted thinking and can navigate around W8 nicely.  I only go to Metro to run Metro apps like some games and also to get rid of all my shortcuts W8 places on the Metro screen.

What was MS thinking when they designed W8?  Did they think it would be the best thing since sliced bread?  I can't see the corporate world knocking down doors to use W8.  Can't imaging what a Metro Office might look like.
Title: Re: Registry Backup Beta
Post by: streetwolf on September 01, 2012, 06:06:42 am
Shane:

Some observation on 1.4.

When my backup kicked off this morning the backup screen displayed the message 'waiting for volume Copy snapshot.....' for something like 15 seconds before I saw it was copying folders and completed.  When I run RB manually the message is on screen for only around 5 seconds before I see it copying files and it ends. 

My disk imaging software (O&O DiskImage 6 Pro) also kicks off when I start up Windows.  I'm wondering if there is a conflict between the two that is delaying RB as they both use VSS?  RB did it's backup but I'm wondering if it's OK due to a possible conflict with DI6 .  DI6 has an option to run a program or command after it has completed.  Can I just take RB's Task Scheduler start up parameters and plug them into DI6 so when it completes RB will kick off?  I would then disable the RB start up in TS.

I have retention for backups set to 7 days yet I have more than that in my Registry Backup folder.  Are scheduled backups the only type that use retention?  I only have two backups that were created via a schedule the rest were manually created.  And if I am able to use DI6 to kick off RB does this mean that I wouldn't have any retention processing?

When I was using ERUNT I used a shortcut to make make backups whenever especially before I made changes to my system.  I had these backups go to a different folder so as not to be mixed in with my scheduled backups.  Can I make a shortcut for RB to do this?  One problem I immediately notice is that settings.ini has the location of the backup folder.  Does RB allow the destination folder to be placed on the command line for a shortcut or perhaps point to an alternate settings.ini?  I guess what I'm asking for is a command line driven RB comparable to ERUNT

Finally, how can I tell for sure which method RB used to do it's backup, VSS or the fallback method?
Title: Re: Registry Backup Beta
Post by: Shane on September 01, 2012, 06:01:16 pm
The schedule just runs the backup program with a command line, nothing more. SO you have total freedom with it. You can run it from the other program fine :wink:

The log also shows when and if the VSS fails and if it is using the fall back method.

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on September 01, 2012, 06:39:07 pm
Shane:

You didn't answer all my questions. 

1. There is no command line parameter to tell RB where to store the backup AFAICT  That only seems to be set in settings.ini unless you have undocumented command line params.  How can I make a shortcut to backup my Registry telling RB I want to create it in a different folder than what's in settings.ini?   What if I created the shortcut with a 'Start in' parameter that points to a folder with a different settings.ini that points to the new backup folder?

2.  What about the fact that RB takes 3 times as long to do it's processing when I start Windows than it does when I run it manually?  I mentioned my disk imaging software, which also uses VSS, also runs when Windows starts and is this causing a lockout condition for these 15 seconds?

3. Please re-read my question on retention days.  What is the answer?
Title: Re: Registry Backup Beta
Post by: Shane on September 01, 2012, 07:29:17 pm
Quote
1. There is no command line parameter to tell RB where to store the backup AFAICT  That only seems to be set in settings.ini unless you have undocumented command line params.  How can I make a shortcut to backup my Registry telling RB I want to create it in a different folder than what's in settings.ini?   What if I created the shortcut with a 'Start in' parameter that points to a folder with a different settings.ini that points to the new backup folder?

It is only stored in the settings.ini file. So you set the path in the ini file and the auto run reads all the settings.

Quote
2.  What about the fact that RB takes 3 times as long to do it's processing when I start Windows than it does when I run it manually?  I mentioned my disk imaging software, which also uses VSS, also runs when Windows starts and is this causing a lockout condition for these 15 seconds?

It does sound like something else is using the VSS and my program is waiting for its turn :wink:

The program calls the vss exe in the files folder and waits for it to complete.

Quote
I have retention for backups set to 7 days yet I have more than that in my Registry Backup folder.  Are scheduled backups the only type that use retention?  I only have two backups that were created via a schedule the rest were manually created.  And if I am able to use DI6 to kick off RB does this mean that I wouldn't have any retention processing?

Every time you do a backup either through the command line (Like the schedule, or manually) the program looks at the folder names which are the dates and times and removes any that are past the retention days.

Like I have mine set to 30 days. If I do more than one backup a day they all stay there until the 31st day at which point they get removed.

If you renamed any of the folders from the default it wont remove them. Again it looks at the folder names which is date and time. This is how it knows which ones to get rid of.

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on September 02, 2012, 03:59:57 pm
v1.4.0
Per user request you can now have the program only make 1 auto backup per day. (This is for the people who have it set to backup at system startup but reboot their machines multiple times per day)
Shane

It doesn't work correctly in all cases. If I make a manual backup and I decide to delete it, this option (if enabled) will prevent me to create another new backup, not considering the fact I deleted my backup already done the same day.
EDIT: I have just noticed that the program records last date in a line called LastAutoBackup in settings.ini. But if I delete all backup folders performed the same day, this value should be cleared automatically.
Title: Re: Registry Backup Beta
Post by: streetwolf on September 02, 2012, 04:11:16 pm
v1.4.0
Per user request you can now have the program only make 1 auto backup per day. (This is for the people who have it set to backup at system startup but reboot their machines multiple times per day)
Shane

It doesn't work correctly in all cases. If I make a manual backup and I decide to delete it, this option (if enabled) will prevent me to create another new backup, not considering the fact I deleted my backup already done the same day.

I did the same thing as you and posted it a page back and got an answer.  What you have to do is go into Settings.ini in the RB folder and change LastAutoBackup to the day before.  Maybe even deleting it might work.  RB does not look at the dates of the backups which IMO it should do.  This way deleting the current auto backup file would kick off a new backup.  Listening Shane?   :smiley:

Cross post.  That's a good idea too about resetting LastAutoBackup if the current backup is deleted.
Title: Re: Registry Backup Beta
Post by: neroilo on September 02, 2012, 04:29:59 pm
Cross post.  That's a good idea too about resetting LastAutoBackup if the current backup is deleted.

Thanks.
I hope that this will be implemented automatically because I move backup folders regularly.
Title: Re: Registry Backup Beta
Post by: Shane on September 03, 2012, 11:44:29 am
Quote
RB does not look at the dates of the backups which IMO it should do.  This way deleting the current auto backup file would kick off a new backup.  Listening Shane?   :smiley:

I didn't even think about doing it that way lol. On a lot of my programs that do daily update checks I always did it this way. So when I was pumping in the changes my mind just went to doing it that way.

I do see how it would be better to loop through the backup folder looking at the folder names for the dates instead. I already have the code to loop through the folders as that is what the cleanup does. So it is just a matter of making a few changes.

Not to mention if your a tech, running it from a thumb drive or local server and you use the command lines for auto backups and you have it set to only do one then it defeats the purpose! You backup one machine via auto then none of the others will since it already thinks it did.

By having it loop through the folders instead a tech can still use the only 1 auto backup per day for every machine while still running it from the one program.

I will make the change and have it ready for next Sundays release.

Either today or tomorrow I will make the changes and post it here for testing before next Sunday :wink:

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on September 03, 2012, 12:02:21 pm
Shane:

Very often it takes a user to inform the developer that maybe there is a better way of doing some task.    :wink:
Title: Re: Registry Backup Beta
Post by: Shane on September 03, 2012, 10:19:51 pm
OK give this a try. I changed how the 1 day auto backup works.

The setting in the ini file is no longer used. So that can be deleted. The auto backup will also see if you did a backup manually and not do another backup if enabled (If set to auto that is).

If you have the setting enabled and you have it set to auto backup the program will loop through the backup folder for the computer. If it sees any backup folders with the current date it will not do the backup.

See what you guys think :wink:

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on September 04, 2012, 05:14:28 am
Shane:

1.41 is working just fine.  Nice job.

I still would like to see a command line RB similar to ERUNT so I can make shortcuts to store the backups in various folders. Now RB is limited to what is in Settings.ini.  Basically allow what's in Settings.ini on the command line or simpler maybe is to allow multiple Setting.ini's (Settings1.ini for example) and point the shortcut to the one you want to use. Going through the GUI is not always the best way to go in situations. 
Title: Re: Registry Backup Beta
Post by: chris635 on September 04, 2012, 07:49:31 am
I agree. Be careful not to make this to complex for the average user though.


Chris
Title: Re: Registry Backup Beta
Post by: streetwolf on September 04, 2012, 07:52:25 am
I agree. Be careful not to make this to complex for the average user though.


Chris

The GUI seems to be for the average user.  A command line RB is for the Power User.
Title: Re: Registry Backup Beta
Post by: chris635 on September 04, 2012, 07:57:19 am
 :wink: Works for me. I just wanted to make sure we don't lose the "keep it simple" aspect either....lol


Chris
Title: Re: Registry Backup Beta
Post by: streetwolf on September 04, 2012, 08:34:02 am
:wink: Works for me. I just wanted to make sure we don't lose the "keep it simple" aspect either....lol


Chris

KISS would have been fine  :cheesy:
Title: Re: Registry Backup Beta
Post by: Shane on September 04, 2012, 12:10:41 pm
I will see what I can do down the road.

I made the program in mind for using it without to many command lines. Never seen the point of having it backup to different locations myself. In the settings when you have the take off the check of change default location the program will backup to the folder it is in. This is for people running it from a thumb drive or server.

Plus the restore in the program is built to read and pull the backups from the location you have set. If you have backups in different locations it wont pull those.

I also have it storing the backups in a way to where you can backup multiple machines to the same spot without things getting confusing. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on September 04, 2012, 12:27:55 pm
Consider it for a rainy day. 
Title: Re: Registry Backup Beta
Post by: neroilo on September 04, 2012, 12:57:17 pm
1) Auto selection of the last created backup in the drop-down list (restore tab).
2) An option to remember last selected tab at the startup.
3) I can't close RB from the taskbar context menu (right click -> close window).
Title: Re: Registry Backup Beta
Post by: Shane on September 07, 2012, 02:50:56 pm
OK give this one a try before Sundays release :-)

v1.4.1
Right click menu from the task bar now works.
Fixed a bug where the program wasn't telling when VSS would fail and thus it would never close or move forward.
Restore list now shows computer name with each backup that can be restored. This is helpful for techs that run the program from a thumb drive or server and have multiple machines they keep in the backup. By seeing the computer name they can tell which backup belongs to which machine without having to load and check each one.
Restore list is now better sorted.
Code tweaks.

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on September 07, 2012, 03:09:21 pm
Testing it now.

1. "Right click menu from the task bar now works".  Right-clicking where, and what should it produce? 

2. Just a thought.  I modify the task schedule for my once a day backup to delay starting for 30 seconds.  I do this because when I start my computer my disk imaging software which also uses VSS starts up too.  Just think it's better for RB to wait a little bit.  Do you think this would make a good option on the RB GUI instead of having to manually modify the actual task schedule?  Novice users might not know how to do this.
Title: Re: Registry Backup Beta
Post by: Shane on September 07, 2012, 08:42:01 pm
Quote
"Right click menu from the task bar now works".  Right-clicking where, and what should it produce? 

When you right click on the taskbar for the program. The close option from it didnt work. I had to do a few tricks but I got it working.

Quote
2. Just a thought.  I modify the task schedule for my once a day backup to delay starting for 30 seconds.  I do this because when I start my computer my disk imaging software which also uses VSS starts up too.  Just think it's better for RB to wait a little bit.  Do you think this would make a good option on the RB GUI instead of having to manually modify the actual task schedule?  Novice users might not know how to do this.

Something to look into down the road :wink:

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on September 08, 2012, 02:43:10 am
Quote
"Right click menu from the task bar now works".  Right-clicking where, and what should it produce? 

When you right click on the taskbar for the program. The close option from it didnt work. I had to do a few tricks but I got it working.


Now it works. Thanks!  :smiley:
By the way, can you increase minimize and close icons at the top right of the window? These are even more little than mouse cursor.

v1.4.1
Restore list is now better sorted.


Unfortunately the list isn't sorted for my usage.
I'm using the european date format (dd/mm/yyyy) on my system.
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 08, 2012, 05:38:33 am
Since I have tried the latest release 1.4.1 my volume shadow copy doesn't start!
But my program show that Volume Shadow Copy is started. (Yes it is started in services)
I don't have checked "Always use Fallback Method instead of Volume Shadow Copy".

If I look in Event Viewer on VSS I have this errors:
"IMultiInterfaceEventControl::GetSubscriptions 0x80010108,  event id 8193" and "Error occurred in the COM + interface publishing Writers: Backup Shutdown [0x80042302, a component of the Volume Shadow Copy Service encountered an unexpected error. event id 12291."

If I go back and use 1.4.0 then everything works with the same configurations!  :confused:

Tomas
Title: Re: Registry Backup Beta
Post by: neroilo on September 08, 2012, 05:57:44 am
In version 1.4.1, I receive "Always use Fallback Method instead of Volume Shadow Copy" but only if I create a manual backup. Previous version isn't affected by this issue.

No errors in Event Viewer here, probably because RB uses Symantec SymSnap VSS Software Provider since I installed Ghost 15. So no errors related to Volume Shadow Copy Service in this machine.
Title: Re: Registry Backup Beta
Post by: Shane on September 09, 2012, 11:57:56 am
Tomas_Sweden I found that I had the vss timeout to short. I have increased it and I want to work on a few other things before I release this. I will have another build ready tonight or tomorrow :wink:

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on September 10, 2012, 05:03:58 am
Shane:

My RB auto backup didn't run this morning when I started my machine.  When I started RB manually I got a message that RB didn't close down properly and should I use the fallback method which I chose.

Is this the same problem that Tomas_Sweden reported?  If so, is a new beta going to be released soon?

Thanks.
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 10, 2012, 06:50:50 am
I have noticed on my brothers computer "win xp sp3" that making autobackup with Registry Backup v1.4.1 have worked!  :smiley:  Without any VSS problem. I think that VSS works faster on Win xp.  I haven't seen any error either with autobackup like I have explain earlier, but its to early to say if the that problem is gone, but so far so good.

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on September 10, 2012, 10:32:43 am
I have finally had the program not close like what is happening randomly to you guys.

I started my computer and the reg backup was open said it was waiting for the VSS service. But it never moved past it.

I said to myself, what the crap, why isn't it timing out and moving forward? SO I check the log and VSS had froze

ERROR: Selected writer 'System Writer' is in failed state!
   - Status: 9 (VSS_WS_FAILED_AT_FREEZE)
   - Writer Failure code: 0x800423f2 (VSS_E_WRITERERROR_TIMEOUT)
   - Writer ID: {e8132975-6f93-4464-a53e-1050253ae220}
   - Instance ID: {d9768a71-5bcc-4245-9d3a-69ec82a64cb3}


SO my program should have seen the VSS failed and moved on. But it didn't. What had happened was VSS was to a point where the program thought it was running and so didnt check again. And so the program never finishes or closes.

So in the last update I tried some new things to watch the VSS and the timeout was to short. So I have changed that. And I am still working on a few things to improve it. I cant get my VSS to crash again since it is a rare bug in VSS and I cant control it. I wish I could, be perfect to help me test this.

streetwolf, can you see if there is any log file from the program from when it says it didnt close properly. Do you have it running under the system account so you cant see it running? Or do you not have it running from the task manger? How ever you have it running can you have it run so you can see the GUI for now. I want to see if it is not moving forward like it did on mine.

So far this has only happened once on my system and was at the fault of the VSS. But my program should have still moved forward and not stayed there. SO I am working on that right now.

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on September 10, 2012, 11:58:18 am
Shane...

Since I got the error this morning RB always says it is using the Fallback method when I run it manually.  My auto backup when I first turn on my machine is the once a day backup thing you added recently.  My UAC is Administrator, which doesn't seem to carry the same weight it did under W7.  I run the auto backup under my account and RB runs hidden.

Here's what's in Log_Backup.txt:

[9/10/2012 - 8:00:07 AM] System Variables
[9/10/2012 - 8:00:07 AM] --------------------------------------------------------------------------------
[9/10/2012 - 8:00:07 AM] Use Fallback Backup Method: 1 (0 = No, 1 = Yes)
[9/10/2012 - 8:00:07 AM] VSS exe To Use: vss_7_64.exe
[9/10/2012 - 8:00:07 AM] Windows Drive: C:
[9/10/2012 - 8:00:07 AM] Windows Folder: Windows
[9/10/2012 - 8:00:07 AM] Windows Path: C:\Windows
[9/10/2012 - 8:00:07 AM] Registry File Location: C:\Windows\System32\Config
[9/10/2012 - 8:00:07 AM] Current Profile: C:\Users\Gary
[9/10/2012 - 8:00:07 AM] Current Profile SID: S-1-5-21-316209811-3955165756-3875462241-1001
[9/10/2012 - 8:00:07 AM] Current Profile Classes: S-1-5-21-316209811-3955165756-3875462241-1001_Classes
[9/10/2012 - 8:00:07 AM] Profiles Location: C:\Users
[9/10/2012 - 8:00:07 AM] Profiles Location 2: C:\Windows\ServiceProfiles
[9/10/2012 - 8:00:07 AM] Local Settings AppData: AppData\Local
[9/10/2012 - 8:00:07 AM] Computer Name: GARY
[9/10/2012 - 8:00:07 AM] OS: Microsoft Windows 8 Pro (64-bit)
[9/10/2012 - 8:00:07 AM] OS Architecture: 64-bit
[9/10/2012 - 8:00:07 AM] OS Version: 6.2.9200
[9/10/2012 - 8:00:07 AM] OS Service Pack:
[9/10/2012 - 8:00:07 AM] --------------------------------------------------------------------------------

[9/10/2012 - 8:00:07 AM] Backup Location: D:\RegBackup\

[9/10/2012 - 8:00:07 AM] Auto Delete Old Backups Enabled, Working...
[9/10/2012 - 8:00:07 AM] --------------------------------------------------------------------------------
[9/10/2012 - 8:00:07 AM] Deleted - D:\RegBackup\GARY\9.3.2012_2.04.57-PM

[9/10/2012 - 8:00:07 AM] Deleted - D:\RegBackup\GARY\9.3.2012_8.01.29-AM

[9/10/2012 - 8:00:07 AM] --------------------------------------------------------------------------------

[9/10/2012 - 8:00:07 AM] Starting Backup...

[9/10/2012 - 8:00:07 AM] Files To Backup:
[9/10/2012 - 8:00:07 AM] --------------------------------------------------------------------------------
[9/10/2012 - 8:00:07 AM] C:\Windows\System32\Config\default
[9/10/2012 - 8:00:07 AM] C:\Windows\System32\Config\sam
[9/10/2012 - 8:00:07 AM] C:\Windows\System32\Config\security
[9/10/2012 - 8:00:07 AM] C:\Windows\System32\Config\software
[9/10/2012 - 8:00:07 AM] C:\Windows\System32\Config\system
[9/10/2012 - 8:00:07 AM] C:\Users\Gary\AppData\Local\Microsoft\Windows\UsrClass.dat
[9/10/2012 - 8:00:07 AM] C:\Users\Gary\ntuser.dat
[9/10/2012 - 8:00:07 AM] C:\Windows\ServiceProfiles\LocalService\ntuser.dat
[9/10/2012 - 8:00:07 AM] C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
[9/10/2012 - 8:00:07 AM] --------------------------------------------------------------------------------

[9/10/2012 - 8:00:07 AM] Backing Up Files...:
[9/10/2012 - 8:00:07 AM] --------------------------------------------------------------------------------
[9/10/2012 - 8:00:07 AM] Using Fallback Backup Method.

[9/10/2012 - 8:00:07 AM] Backing Up File: C:\Windows\System32\Config\default
[9/10/2012 - 8:00:07 AM] Result: Successful  - D:\RegBackup\GARY\9.10.2012_8.00.07-AM\C\Windows\System32\Config\default

[9/10/2012 - 8:00:07 AM] Backing Up File: C:\Windows\System32\Config\sam
[9/10/2012 - 8:00:07 AM] Result: Successful  - D:\RegBackup\GARY\9.10.2012_8.00.07-AM\C\Windows\System32\Config\sam

[9/10/2012 - 8:00:07 AM] Backing Up File: C:\Windows\System32\Config\security
[9/10/2012 - 8:00:07 AM] Result: Successful  - D:\RegBackup\GARY\9.10.2012_8.00.07-AM\C\Windows\System32\Config\security

[9/10/2012 - 8:00:07 AM] Backing Up File: C:\Windows\System32\Config\software
[9/10/2012 - 8:00:08 AM] Result: Successful  - D:\RegBackup\GARY\9.10.2012_8.00.07-AM\C\Windows\System32\Config\software

[9/10/2012 - 8:00:08 AM] Backing Up File: C:\Windows\System32\Config\system
[9/10/2012 - 8:00:08 AM] Result: Successful  - D:\RegBackup\GARY\9.10.2012_8.00.07-AM\C\Windows\System32\Config\system

[9/10/2012 - 8:00:08 AM] Backing Up File: C:\Users\Gary\AppData\Local\Microsoft\Windows\UsrClass.dat
[9/10/2012 - 8:00:08 AM] Result: Successful  - D:\RegBackup\GARY\9.10.2012_8.00.07-AM\C\Users\Gary\AppData\Local\Microsoft\Windows\UsrClass.dat

[9/10/2012 - 8:00:08 AM] Backing Up File: C:\Users\Gary\ntuser.dat
[9/10/2012 - 8:00:08 AM] Result: Successful  - D:\RegBackup\GARY\9.10.2012_8.00.07-AM\C\Users\Gary\ntuser.dat

[9/10/2012 - 8:00:08 AM] Backing Up File: C:\Windows\ServiceProfiles\LocalService\ntuser.dat
[9/10/2012 - 8:00:08 AM] Result: Successful  - D:\RegBackup\GARY\9.10.2012_8.00.07-AM\C\Windows\ServiceProfiles\LocalService\ntuser.dat

[9/10/2012 - 8:00:08 AM] Backing Up File: C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
[9/10/2012 - 8:00:08 AM] Result: Successful  - D:\RegBackup\GARY\9.10.2012_8.00.07-AM\C\Windows\ServiceProfiles\NetworkService\ntuser.dat

[9/10/2012 - 8:00:08 AM] --------------------------------------------------------------------------------

[9/10/2012 - 8:00:08 AM] Creating DOS restore bat file for use in the Windows Recovery Console:
[9/10/2012 - 8:00:08 AM] --------------------------------------------------------------------------------
[9/10/2012 - 8:00:08 AM] Already Exists: C:\Windows\tweaking.com-regbackup-GARY-Microsoft-Windows-8-Pro-(64-bit).dat for use in the dos_restore.cmd file
[9/10/2012 - 8:00:08 AM] Done: D:\RegBackup\GARY\9.10.2012_8.00.07-AM\dos_restore.cmd
[9/10/2012 - 8:00:08 AM] --------------------------------------------------------------------------------

Title: Re: Registry Backup Beta
Post by: Shane on September 10, 2012, 12:01:35 pm
Check the advanced settings. The always use the fallback method is checked :wink:

When the program doesnt close properly and it asks you if you want to use the fallback method for now on will set that check mark if you hit yes.

I did it that way because of normal users who have trouble with VSS (VSS would reboot the machine on one user I helped) This way if VSS is causing them trouble and they try my program again they wont have the same trouble.

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on September 10, 2012, 12:19:26 pm
Missed that.  Unchecked it and now it uses VSS.

Do you think because my imaging program is running at the same time as RB this might be causing the problem with using the fallback method? I've delayed RB for 30 seconds at start up in Task Scheduler.  There is no easy way to delay my image program.  It uses it's own scheduling system and there is no delay option.
Title: Re: Registry Backup Beta
Post by: Shane on September 10, 2012, 12:21:23 pm
If you can dont have reg backup be invisible. This way if it doesnt move forward you will see it and your setup might be perfect for testing the changes I am doing to better handle when VSS fails. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on September 10, 2012, 12:24:58 pm
I changed it to Normal.  Is that OK?  Anything else you want me to do?
Title: Re: Registry Backup Beta
Post by: Shane on September 10, 2012, 12:25:50 pm
Thanks :-)

Let me know if it stops and doesnt close on its own. And a screen shot if it does will be great.

Shane
Title: Re: Registry Backup Beta
Post by: streetwolf on September 10, 2012, 12:27:16 pm
Thanks :-)

Let me know if it stops and doesnt close on its own. And a screen shot if it does will be great.

Shane

You got it Shane. 
Title: Re: Registry Backup Beta
Post by: streetwolf on September 11, 2012, 05:05:07 am
Shane:

My auto backup this morning seems to work OK but I think it took the fallback method again (?).  As I said before RB is run at the same time as my disk imaging software and takes much longer to run presumably because both use VSS.  I think I will run RB as a command when my imaging software finished it's backups.  My imaging software let's me do this.  Is it just a matter of using the command line in the task scheduler and plugging it into my imaging software and then deleting the task? Doing it this way should avoid any VSS conflicts if this is a problem.

Here's a couple of logs from my start up this morning

[9/11/2012 - 7:37:03 AM]
--------------------------------------------------------------------------------
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

C:\Program Files (x86)\Tweaking.com>
--------------------------------------------------------------------------------
[9/11/2012 - 7:37:03 AM]
--------------------------------------------------------------------------------
CD /D C:\

C:\>
--------------------------------------------------------------------------------
[9/11/2012 - 7:37:03 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\files

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

--------------------------------------------------------------------------------
[9/11/2012 - 7:37:58 AM]
--------------------------------------------------------------------------------
Closed. No longer reading pipes.
--------------------------------------------------------------------------------





[9/11/2012 - 7:37:00 AM] System Variables
[9/11/2012 - 7:37:00 AM] --------------------------------------------------------------------------------
[9/11/2012 - 7:37:00 AM] Use Fallback Backup Method: 1 (0 = No, 1 = Yes)
[9/11/2012 - 7:37:00 AM] VSS exe To Use: vss_7_64.exe
[9/11/2012 - 7:37:00 AM] Windows Drive: C:
[9/11/2012 - 7:37:00 AM] Windows Folder: Windows
[9/11/2012 - 7:37:00 AM] Windows Path: C:\Windows
[9/11/2012 - 7:37:00 AM] Registry File Location: C:\Windows\System32\Config
[9/11/2012 - 7:37:00 AM] Current Profile: C:\Users\Gary
[9/11/2012 - 7:37:00 AM] Current Profile SID: S-1-5-21-316209811-3955165756-3875462241-1001
[9/11/2012 - 7:37:00 AM] Current Profile Classes: S-1-5-21-316209811-3955165756-3875462241-1001_Classes
[9/11/2012 - 7:37:00 AM] Profiles Location: C:\Users
[9/11/2012 - 7:37:00 AM] Profiles Location 2: C:\Windows\ServiceProfiles
[9/11/2012 - 7:37:00 AM] Local Settings AppData: AppData\Local
[9/11/2012 - 7:37:00 AM] Computer Name: GARY
[9/11/2012 - 7:37:00 AM] OS: Microsoft Windows 8 Pro (64-bit)
[9/11/2012 - 7:37:00 AM] OS Architecture: 64-bit
[9/11/2012 - 7:37:00 AM] OS Version: 6.2.9200
[9/11/2012 - 7:37:00 AM] OS Service Pack:
[9/11/2012 - 7:37:00 AM] --------------------------------------------------------------------------------

[9/11/2012 - 7:37:00 AM] Backup Location: D:\RegBackup\

[9/11/2012 - 7:37:02 AM] Starting: C:\Program Files (x86)\Tweaking.com\files\vss_start.exe -log:D:\RegBackup\GARY\9.11.2012_7.37.00-AM\Log_Vss.txt -vssexe:vss_7_64.exe

[9/11/2012 - 7:37:02 AM] Silent command given, program will close after backup.

[9/11/2012 - 7:37:02 AM] Waiting for Volume Shadow Copy snapshot...

[9/11/2012 - 7:37:27 AM] Volume Shadow Copy Failed! vss_7_64.exe isn't running. Check the Log_VSS.txt file to view any errors.
[9/11/2012 - 7:37:27 AM] Is vss_start.exe Running: True
[9/11/2012 - 7:37:27 AM] Is vss_7_64.exe Running: True
[9/11/2012 - 7:37:27 AM] Is vss_pause.exe Running: False

[9/11/2012 - 7:37:27 AM] Auto Delete Old Backups Enabled, Working...
[9/11/2012 - 7:37:27 AM] --------------------------------------------------------------------------------
[9/11/2012 - 7:37:27 AM] Deleted - D:\RegBackup\GARY\9.4.2012_7.59.29-AM

[9/11/2012 - 7:37:28 AM] --------------------------------------------------------------------------------

[9/11/2012 - 7:37:31 AM] Starting Backup...

[9/11/2012 - 7:37:31 AM] Files To Backup:
[9/11/2012 - 7:37:31 AM] --------------------------------------------------------------------------------
[9/11/2012 - 7:37:31 AM] C:\Windows\System32\Config\default
[9/11/2012 - 7:37:31 AM] C:\Windows\System32\Config\sam
[9/11/2012 - 7:37:31 AM] C:\Windows\System32\Config\security
[9/11/2012 - 7:37:31 AM] C:\Windows\System32\Config\software
[9/11/2012 - 7:37:31 AM] C:\Windows\System32\Config\system
[9/11/2012 - 7:37:31 AM] C:\Users\Gary\AppData\Local\Microsoft\Windows\UsrClass.dat
[9/11/2012 - 7:37:31 AM] C:\Users\Gary\ntuser.dat
[9/11/2012 - 7:37:31 AM] C:\Windows\ServiceProfiles\LocalService\ntuser.dat
[9/11/2012 - 7:37:31 AM] C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
[9/11/2012 - 7:37:31 AM] --------------------------------------------------------------------------------

[9/11/2012 - 7:37:31 AM] Backing Up Files...:
[9/11/2012 - 7:37:31 AM] --------------------------------------------------------------------------------
[9/11/2012 - 7:37:31 AM] Using Fallback Backup Method.

[9/11/2012 - 7:37:31 AM] Backing Up File: C:\Windows\System32\Config\default
[9/11/2012 - 7:37:33 AM] Result: Successful  - D:\RegBackup\GARY\9.11.2012_7.37.00-AM\C\Windows\System32\Config\default

[9/11/2012 - 7:37:33 AM] Backing Up File: C:\Windows\System32\Config\sam
[9/11/2012 - 7:37:33 AM] Result: Successful  - D:\RegBackup\GARY\9.11.2012_7.37.00-AM\C\Windows\System32\Config\sam

[9/11/2012 - 7:37:33 AM] Backing Up File: C:\Windows\System32\Config\security
[9/11/2012 - 7:37:34 AM] Result: Successful  - D:\RegBackup\GARY\9.11.2012_7.37.00-AM\C\Windows\System32\Config\security

[9/11/2012 - 7:37:34 AM] Backing Up File: C:\Windows\System32\Config\software
[9/11/2012 - 7:37:44 AM] Result: Successful  - D:\RegBackup\GARY\9.11.2012_7.37.00-AM\C\Windows\System32\Config\software

[9/11/2012 - 7:37:44 AM] Backing Up File: C:\Windows\System32\Config\system
[9/11/2012 - 7:37:48 AM] Result: Successful  - D:\RegBackup\GARY\9.11.2012_7.37.00-AM\C\Windows\System32\Config\system

[9/11/2012 - 7:37:49 AM] Backing Up File: C:\Users\Gary\AppData\Local\Microsoft\Windows\UsrClass.dat
[9/11/2012 - 7:37:50 AM] Result: Successful  - D:\RegBackup\GARY\9.11.2012_7.37.00-AM\C\Users\Gary\AppData\Local\Microsoft\Windows\UsrClass.dat

[9/11/2012 - 7:37:50 AM] Backing Up File: C:\Users\Gary\ntuser.dat
[9/11/2012 - 7:37:52 AM] Result: Successful  - D:\RegBackup\GARY\9.11.2012_7.37.00-AM\C\Users\Gary\ntuser.dat

[9/11/2012 - 7:37:52 AM] Backing Up File: C:\Windows\ServiceProfiles\LocalService\ntuser.dat
[9/11/2012 - 7:37:52 AM] Result: Successful  - D:\RegBackup\GARY\9.11.2012_7.37.00-AM\C\Windows\ServiceProfiles\LocalService\ntuser.dat

[9/11/2012 - 7:37:52 AM] Backing Up File: C:\Windows\ServiceProfiles\NetworkService\ntuser.dat
[9/11/2012 - 7:37:52 AM] Result: Successful  - D:\RegBackup\GARY\9.11.2012_7.37.00-AM\C\Windows\ServiceProfiles\NetworkService\ntuser.dat

[9/11/2012 - 7:37:52 AM] --------------------------------------------------------------------------------

[9/11/2012 - 7:37:52 AM] Creating DOS restore bat file for use in the Windows Recovery Console:
[9/11/2012 - 7:37:52 AM] --------------------------------------------------------------------------------
[9/11/2012 - 7:37:52 AM] Already Exists: C:\Windows\tweaking.com-regbackup-GARY-Microsoft-Windows-8-Pro-(64-bit).dat for use in the dos_restore.cmd file
[9/11/2012 - 7:37:52 AM] Done: D:\RegBackup\GARY\9.11.2012_7.37.00-AM\dos_restore.cmd
[9/11/2012 - 7:37:52 AM] --------------------------------------------------------------------------------

Title: Re: Registry Backup Beta
Post by: Shane on September 11, 2012, 01:33:10 pm
OK here is the new build.

Sorting of the restore list should work great now and I increased the timeout for the program waiting for VSS.

Lets see how it goes :-)

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on September 11, 2012, 02:19:56 pm
OK here is the new build.

Sorting of the restore list should work great now and I increased the timeout for the program waiting for VSS.

Lets see how it goes :-)

Shane

No problem here. I hope for the others too! :smiley:
Title: Re: Registry Backup Beta
Post by: streetwolf on September 11, 2012, 02:47:53 pm
Works fine taking a manual backup.  Let's see what my auto backup does tomorrow.  btw, I delayed my RB backup 5 minutes in order for my disk imaging software to complete.
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 12, 2012, 02:27:40 am
I have tried the latest 1.4.1 now on my win 7 64-bit computer, have also tried on my brothers win xpsp3 computer and it worked.  :cheesy:

But I noticed both on my computer and my brothers that after windows update have installed som new file and rebooted that Registry Backups vss.exe didn't start. But I rebooted once more then tried autobackup and manual backup, now it works all the time.

What do you think about changing "Default Backup Name:" From "My Backup" to "Manual Backup"? Feels more logical! I have seen people on this forum calling "Default Backup Name:" for Manual so... :thinking:

Tomas
Title: Re: Registry Backup Beta
Post by: streetwolf on September 12, 2012, 04:08:48 am
My auto backup also ran fine this morning.  However, as I mentioned I now delay it in order to give my disk imaging software time to finish.
Title: Re: Registry Backup Beta
Post by: Shane on September 12, 2012, 11:17:39 am
Quote
What do you think about changing "Default Backup Name:" From "My Backup" to "Manual Backup"? Feels more logical! I have seen people on this forum calling "Default Backup Name:" for Manual so... :thinking:

I like that, I will make that change.

Since things look like they are working well and I finally got the restore list sort working I think i will go ahead and get this version out :cheesy:

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 13, 2012, 10:56:47 am
I saw on my brothers computer (win xp) that scheduled backup started "Registry Backup v1.4.1(latest beta)" but nothing happened, vss didnt start and there was no log file that so ever so I could see that was wrong.
In "the Task Manager" I closed "Registry Backup" and after that I tried "manual backup" :wink: and it worked, I did a logoff and log in again then autobackup worked as usual.
But autobackup usually works!
It may be that my brother's computer is tricky, just wanted to tell if it's something not right.

Tomas
Title: Re: Registry Backup Beta
Post by: neroilo on September 13, 2012, 11:44:41 am
I saw on my brothers computer (win xp) that scheduled backup started "Registry Backup v1.4.1(latest beta)" but nothing happened, vss didnt start and there was no log file that so ever so I could see that was wrong.
In "the Task Manager" I closed "Registry Backup" and after that I tried "manual backup" :wink: and it worked, I did a logoff and log in again then autobackup worked as usual.
But autobackup usually works!
It may be that my brother's computer is tricky, just wanted to tell if it's something not right.

Tomas

If you perform a manual backup, and the same day an auto backup, the last one won't have success because there is already a manual backup.
Is it your case?
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 13, 2012, 11:56:09 am
I saw on my brothers computer (win xp) that scheduled backup started "Registry Backup v1.4.1(latest beta)" but nothing happened, vss didnt start and there was no log file that so ever so I could see that was wrong.
In "the Task Manager" I closed "Registry Backup" and after that I tried "manual backup" :wink: and it worked, I did a logoff and log in again then autobackup worked as usual.
But autobackup usually works!
It may be that my brother's computer is tricky, just wanted to tell if it's something not right.

Tomas

If you perform a manual backup, and the same day an auto backup, the last one won't have success because there is already a manual backup.
Is it your case?

Nope! Sometimes "autobackup" doesn't work, "Registry Backup" starts and if I take a look in process explorer it says RB is running and nothing happens, eventually I have to end the program.  I have not found anything patterns, when it goes wrong and why.

Tomas
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 14, 2012, 05:43:21 am
I installed 1.4.1 official version and then I started the computer this morning "autobackup" was using "Fallback backup method" and VSS didn't start.

this is from the log file:
2012-09-14 - 05:34:22] Waiting for Volume Shadow Copy snapshot...
[2012-09-14 - 05:35:22] Volume Shadow Copy Failed! vss_7_64.exe isn't running. Check the Log_VSS.txt file to view any errors.
[2012-09-14 - 05:35:22] Is vss_start.exe Running: True
[2012-09-14 - 05:35:22] Is vss_7_64.exe Running: True
[2012-09-14 - 05:35:22] Is vss_pause.exe Running: False

I have tried to delay "autobackup" 4 minutes it works sometimes and sometimes vss fails.

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on September 14, 2012, 01:32:16 pm
Yeah if you have it set under the advanced settings to only do 1 auto backup a day then it will just close.

It will look at the backups and see if a backup was already made for that day. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on September 16, 2012, 07:42:20 am
In these days I thought about a new feature that it could be useful to restore system without GUI.
A command line switch as -restorelastbackup to restore last created backup through a shortcut.
Manual way is calling dos_restore.cmd file, but at the moment it is needed to update target path every time I create a new backup.
Title: Re: Registry Backup Beta
Post by: Shane on September 16, 2012, 01:56:43 pm
The dos_restore.cmd is only when restoring from a recovery console. It wont work if you run it in Windows.

I will keep the command line option open and see what i can do down the road.  :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Shane on September 19, 2012, 10:12:43 am
So I noticed something strange with the reg backup today.

I turn my computer off every night and turn it on in the morning. The reg backup is set to run at system startup for the current user.

So I turn my computer on and go back in the house and get a cup of coffee. When i come back out the reg backup is just sitting there at the main Window. It isnt doing anything, no errors or nothing.

The auto backup is suppose to click the backup button and then close when it finishes.

So I simply clicked the backup button, it made the backup and then closed. For some odd reason the backup button didnt get clicked this time.

So I will be looking into and see if I can find out why it didnt. This could explain the random times the program isnt closing for people.

I will get an update out soon and have you guys test :-)

Shane
Title: Re: Registry Backup Beta
Post by: Shane on September 19, 2012, 11:53:33 am
Found it, a simple timing problem.

I had it start the process before the auto flag got enabled and there was only a 250ms before it would start. So if the machine didnt respond fast enough the auto flag didnt set.

Simple fix, I have it set the auto flag before starting the process :-)

V1.4.2 is released.

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 19, 2012, 08:35:12 pm
The latest version of RB doesn't always work for me.
I have tried to delay autoback and have only 1 backup per day, but I get "fallback backup method".

There is something with 1.4.2 and 1.4.1 that doesn't work so good for me. Version 1.4.0 worked better.

What is changed in the later versions?

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on September 19, 2012, 08:36:52 pm
Next time you reboot and it runs check the task scheduler and see if it is still running in the background :-)

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 19, 2012, 09:03:31 pm
Yes in task scheduler I see "The operation completed successfully. (0x0)"
and I saw in Process Explorer that "vss_7_64.exe" was started.

In log file I get this: "Is vss_pause.exe Running: False"

VSSC is started.

I did a manual backup now and I got "Currently using fallback method instead of Volume Shadow Copy Service"
and if I take a look in "Process Explorer" I see that vss_pause.exe doesn't close.

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on September 19, 2012, 09:50:27 pm
Go to advanced settings. Is always use the fallback method checked?

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 19, 2012, 09:52:36 pm
nope  :wink:

Tomas
Title: Re: Registry Backup Beta
Post by: neroilo on September 20, 2012, 02:18:58 am
nope  :wink:

Tomas

Did you try to rename your "settings.ini" to "settings_old.ini"? Let the program creates a new one.
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 20, 2012, 02:29:17 am
Did you try to rename your "settings.ini" to "settings_old.ini"? Let the program creates a new one.

No I will try that, thanks!

Tomas
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 20, 2012, 05:24:23 am
It's the same, still having RB using"fallback backup method" now and then.

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on September 20, 2012, 12:55:04 pm
The program will use the fallback if the vss fails or times out.

What does the vss log file in the backup folder show?

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 20, 2012, 11:57:46 pm
Here is my log_vss

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on September 21, 2012, 11:08:59 am
That log shows everything is working fine.

When you start the program is the yellow text there saying it will use fallback method? If it isnt and you manually do a backup does it fail and then use fallback?

Right now I have the program wait 60 sec for vss, if it isnt ready by then it goes to fall back. I also noticed from the log that you have 70 shadow copies! I wonder if that might have something to do with it.

Shane
Title: Re: Registry Backup Beta
Post by: neroilo on September 21, 2012, 02:26:04 pm
I also noticed from the log that you have 70 shadow copies! I wonder if that might have something to do with it.

This brings me to a consideration.
In my vss log I can't see the number of shadow copies handled by Microsoft Software Shadow Copy Provider, because I'm using Symantec SymSnap VSS Provider (installed by Norton Ghost).
Maybe it could be useful to report this information also in cases like this.

I suppose that for now I should create a specific cmd file to run as shortcut, because the program itself lacks an option to run a batch script before and after a registry backup.
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 21, 2012, 10:59:12 pm
Quote
When you start the program is the yellow text there saying it will use fallback method?
Yes there is usually a yellow text there saying it is using fallback method!

I also see in the Log_Backup this text:
[2012-09-20 - 16:14:47] Volume Shadow Copy Failed! vss_7_64.exe isn't running. Check the Log_VSS.txt file to view any errors.
[2012-09-20 - 16:14:47] Is vss_start.exe Running: True
[2012-09-20 - 16:14:47] Is vss_7_64.exe Running: True
[2012-09-20 - 16:14:47] Is vss_pause.exe Running: False

Quote
If it isnt and you manually do a backup does it fail and then use fallback?
And yes sometimes then I do a manual backup it uses the fallback method, but not all the times, sometimes it works at it should.
Quote
Right now I have the program wait 60 sec for vss, if it isnt ready by then it goes to fall back.
As I said earlier 1.4.0 worked for me, have you changed when the program goes to fall back method or something in 1.4.1 and 1.4.2?
Quote

I also noticed from the log that you have 70 shadow copies! I wonder if that might have something to do with it.
I have no idea. I let Task Scheduler make a "Instant Restore Point" every morning, but I don't think that have interfered with RB because I had it set to wait 30 minutes.

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on September 22, 2012, 02:15:11 pm
Quote
In my vss log I can't see the number of shadow copies handled by Microsoft Software Shadow Copy Provider, because I'm using Symantec SymSnap VSS Provider (installed by Norton Ghost).
Maybe it could be useful to report this information also in cases like this.

It reports it on its own, they will have a number after the shadow copy, like this in his "Current definition: B: = \??\GLOBALROOT\Device\HarddiskVolumeShadowCopy70"
You see the 70 at the end.

My program auto deletes the shadow copy that it makes. When your numbers grow like that you have something else on the system making shadow copies but not cleaning them up.

Tomas_Sweden,

for your system the program is the shadow copy is taking longer than 60 sec to make the shadow copy. This was a change I made from the old versions.

Try running the commands in Windows to delete all those shadow copies and see how the reg backup does for you then :wink:
http://www.sevenforums.com/tutorials/166102-shadow-copies-delete.html

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 23, 2012, 02:14:54 am
I dont know if I want to delete the shadow copies I might need them!
If it works then I have to delete shadow copies now and then, does not feel so smooth!

Maybe there is somebody like me, having lots of shadows copies?

Or do you mean that I should only delete old shadow copies?

What is the disadvantage of having it as before, then the shadow copy didn't close at 60 sec?

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on September 23, 2012, 03:41:59 pm
You do not need or want old shadow copies. They would be out dated files anyways.

Most programs when done with a shadow copy is suppose to get rid of it after. You have something on your system that isnt doing that.

A shadow copy simply takes a copy of the current data of files. This way a program can read and backup a file that is normally in use.

Obviously after a while these shadow copys become out data as the data has changed, so there is no reason to have them.

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on September 24, 2012, 12:08:40 am
Most programs when done with a shadow copy is suppose to get rid of it after. You have something on your system that isnt doing that.
Thanks for the info!

Ok I have deleted all the shadows copies and system image copies and there is none now, but then I do a backup in RB I see this in log_Vss:
Current definition: B: = \??\GLOBALROOT\Device\HarddiskVolumeShadowCopy25.
I interpret it as there are 25 shadow copies?
But I have none then I look in system restore, how does that work?

But so far, so good, with making backup now!  :smiley:

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on September 24, 2012, 11:27:17 am
Odd it still shows 25 on there, but as you can see the VSS is no longer taking longer than 60 sec and so the program isnt using the fall back method. :-)

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on October 02, 2012, 10:48:05 am
I have seen that RB using"fallback backup method" 3 times now and I have only 2 system restore points.
Quote
for your system the program is the shadow copy is taking longer than 60 sec to make the shadow copy. This was a change I made from the old versions.
Why did you do that change? what are the advantages?

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on October 02, 2012, 11:51:50 am
Before, the old way checked if VSS was running after 20 sec and never checked again. The problem was if VSS crashed after that 20 sec my program just sat there waiting.

So I had to change it to always keep looking and moved it from 20 sec to 60.

The reason it worked better before for you was that after that 20 sec the program waited as long as the VSS needed. Now the new update VSS isnt finished in time before the 60 sec.

Maybe I can tweak it a little better. There are 2 files it is looking for. The vss itself from the program and the vss_pause. The vss on yours is running but the vss_pause (Which runs when the vss is ready) isn't starting before the 60 sec.

I will see if I can tweak that a little and have it keep waiting if the vss is running. After all if the vss crashes the vss wont be running. So perhaps when vss is running it will wait till it isnt or keep waiting until it sees the vss_pause.

Shane
Title: Re: Registry Backup Beta
Post by: Shane on October 02, 2012, 12:32:40 pm
OK try this one out for a few days.

Now it will wait forever for the vss_pause as long as the vss exe is running. SO now the timeout shouldnt affect you. If the VSS exe closes or crashes it will see that and then use the fallback method. And since it has this new way of doing it I now have it check for the vss exe every 30 sec instead of every 60 as it is no longer needed to wait that long.

I did some tests and this still works like I want when and if the vss crashes on a system. So try it for a few days and if everything works like we both want then I will put out the update :-)

Shane
Title: Re: Registry Backup Beta
Post by: Shane on October 05, 2012, 12:50:23 pm
Any results?

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on October 05, 2012, 11:35:40 pm
I have tried RB 1.4.3 since wedensday and so far so good  :cheesy:

I see that you have changed "Default Backup Name" to "Manual Backup" like that lol!

I had a anti-malware scan and a anti-virus scan to scan the computer at the same time I tried to do a backup, it took 12 minutes to do a backup but it did work!  :cheesy:

Very Well done Shane!  :wink:

A swedish PC-magazine have written about Registry Backup(1.4.2) again, but they could have waited a week or so, until version 1.4.3  :wink:. But they seem to like it as they wrote about it again!
http://www.pchemma.se/artiklar/programtips/20121002/registry-backup-1

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on October 06, 2012, 08:08:10 pm
Cool beans :-)

I am glad v1.4.3 took care of it. The program will still use the fall back and not get stuck if VSS crashes like it did before, while at the same time waiting as long as needed for VSS to finish making the snap shot :-)

New version will be put out tomorrow. :wink:

Shane
Title: Re: Registry Backup Beta
Post by: Tomas_Sweden on October 10, 2012, 11:54:00 am
I have been thinking about one thing in RB, when I'm using "Task Scheduler(Auto Backup)" to do a backup and I use "Normal" option, I see that RB is doing a backup, but I can't see if the backup used "VSS" or "Fallback method".

I would like RB to wait 10 seconds or so before it closes down the program, when I have time to see the which backup method RB were using. Instead of open the RB and look there, takes time to open RB  :wink: and because I'm curious to see right away if the backup is ok. Since 1.4.3 the VSS backup have worked everytime but anyway.

Tomas
Title: Re: Registry Backup Beta
Post by: Shane on October 10, 2012, 03:58:45 pm
Something to look at down the road :-)

Shane