Windows 10: VssExpressWriter fails to add a folder non monitored files into restore point

Discus and support VssExpressWriter fails to add a folder non monitored files into restore point in Windows 10 Network and Sharing to solve the problem; I'm trying to use VSS Express Writer to include all the files in specific folder in the restore point when it is conducted which are crucial for my app... Discussion in 'Windows 10 Network and Sharing' started by Zohar cabeli, Aug 13, 2019.

  1. VssExpressWriter fails to add a folder non monitored files into restore point


    I'm trying to use VSS Express Writer to include all the files in specific folder in the restore point when it is conducted which are crucial for my app to run.

    Some of the files have extensions (mostly .txt) that is not automatically monitored (see https://docs.microsoft.com/en-us/windows/win32/sr/monitored-file-extensions for all auto monitored extensions).

    So I've wrote a special vssWriter for those files (see https://docs.microsoft.com/en-us/windows/win32/vss/writers) and expected that the OS would call its requester which would add the files at the writer to the restore set..

    After running my code, the writer created successfully and is visible from `vssadmin list writers`. However, the folder isn't kept once i go back to restore point (the files aren't there..)

    Currently my flow goes as follow:

    1. Register using the following code (see below).
    2. Create system restore point.
    3. Delete my folder.
    4. Restart
    5. Restore my system.

    Unfortunately, I dont get my folder back..

    I've tried to summarize the code in the following block :

    int main()
    {
    ::CoInitialize(NULL);

    createAndRegister();

    }

    int createAndRegister()
    {
    CComPtr<IVssExpressWriter> spExpressWriter;
    CComPtr<IVssCreateExpressWriterMetadata> spMetadata;

    CreateVssExpressWriter(&spExpressWriter);

    spExpressWriter->CreateMetadata(EXPRESS_WRITER_SAMPLE_GUID, L"Sample Express Writer", VSS_UT_USERDATA, 1, 0, 0, &spMetadata);

    PCWSTR wszComponent = L"myExpressWriter";


    spMetadata->SetRestoreMethod(
    VSS_RME_RESTORE_AT_REBOOT, ////I've also tried it with different option of this enum
    NULL,
    NULL,
    VSS_WRE_NEVER,
    false),
    L"SetRestoreMethod failed");

    spMetadata->AddComponent(
    VSS_CT_FILEGROUP,
    NULL,
    wszComponent,
    wszComponent,
    NULL,
    0,
    false,
    false,
    false);

    spMetadata->AddFilesToFileGroup(
    NULL,
    wszComponent,
    L"c:\\ProgramData\\myFolder",
    L"*.*",
    true,
    NULL,
    NULL),


    spExpressWriter->Register();
    }



    I am wondering if there is a need to implement a requester to add the files to restore properly (https://docs.microsoft.com/en-us/windows/win32/vss/requestors).

    Perhaps anyone can tell me where did i go wrong in my flow ? Maybe there are higher level API (C#, powershell) to do so ?

    Thanks

    :)
     
    Zohar cabeli, Aug 13, 2019
    #1
  2. Anne Ros Win User

    Windows 10 System Restore Show More Restore Points Box Missing and Restore Points Being Deleted or Missing

    Hi Steven,

    There are several reasons why the Show more restore points check box is missing. Some of these are the following:

    • You run out of disk space on the system drive or on any one of the available non-system drives, and System Restore stops responding and stops monitoring your system.
    • You manually turn System Restore off.
    • You upgrade from one operating system to another or you reinstall the operating system

    In your case, as you have reinstalled Windows, it's possible that all restore points are deleted, that's why the
    Show more restore points check box is not appearing. Did you delete all the partitions when you reinstall Windows? If yes, then all the manually and automatically created restore points will disappear. For further isolation of the issue, we suggest that
    you create a new restore point and monitor if it will disappear in a few days just like the others.

    We'll wait for your response.
     
    Anne Ros, Aug 13, 2019
    #2
  3. Rose Cal Win User
    File History Full Restore Fails Due To Shortened User Folder Name

    We appreciate your response. If you have files or folders elsewhere that you want backed up, you can add them to one of these folders.

    Meanwhile, we suggest that you follow these steps on how to restore files and folders using File History:

    • Swipe in from the right edge of the screen, tap Search (or if you're using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click Search), enter restore your files in
      the search box, and then select Restore your files with File History.
    • Enter the name of file you're looking for in the search box, or use the left and right arrows to browse through different versions of your folders and files.
    • Select what you want to restore to its original location, and then select the Restore button.

    If you want to restore your files to a different location than the original, press and hold or right-click the Restore button, select Restore To, and then choose a new location.

    You may also check this article for more information about backing up and restoring files.

    Let us know if you need further assistance.
     
    Rose Cal, Aug 13, 2019
    #3
  4. VssExpressWriter fails to add a folder non monitored files into restore point

    Windows Restore failed to extract the file xxxx from the restore point

    After selecting the restore point the system attempts to recover but fails with the above error then states an unspecified error 0x8007025d has occurred.

    I have checked the file name given in the first error and it is present in the \Windows\WinSxS\Backup folder but I don't know how to verify it's contents. Running sfc reports no errors. I've tried disabling AV software and running from safemode but I always
    get the same error, I have tried different restore points too.

    Can anyone suggest what else to try?

    Thanks

    Gary
     
    GaryMordue, Aug 13, 2019
    #4
Thema:

VssExpressWriter fails to add a folder non monitored files into restore point

Loading...
  1. VssExpressWriter fails to add a folder non monitored files into restore point - Similar Threads - VssExpressWriter fails add

  2. restore point

    in Windows 10 Customization
    restore point: Where do I find the Restore Point access on Windows 10? https://answers.microsoft.com/en-us/windows/forum/all/restore-point/22deb9c2-ab17-4940-99ed-3fe9ee416afc
  3. Cannot create a restore point

    in Windows 10 Support
    Cannot create a restore point: I'm not sure I'm in the right place, but when I go to create a restore point I get a message: The restore point could not be created for the following reason: The writer experienced a transient error. If the backup process is retired, the error might not reoccur. Please try...
  4. restore points

    in Windows 10 Network and Sharing
    restore points: After the latest Windows 10 update was installed, all of my restore points were deleted. How can I get them back? https://answers.microsoft.com/en-us/windows/forum/all/restore-points/46a15a23-99e2-4d48-a360-c80d8ff33c2c"
  5. restore points

    in Windows 10 Backup and Restore
    restore points: I keep regular images with Macrium Reflect, free. I create one manually with each new cumulative update. I also make a restore point each week. Due to their poor reliability record, would you say I am wasting my time with these restore points and to just rely upon Macrium?...
  6. Restore points

    in Windows 10 Backup and Restore
    Restore points: I am running win 10 How do I create restore points on my computer so I can restore to a earlier date Thanks 114695
  7. "System Restore failed to extract the file (...\OneDrive) from the restore point."

    in Windows 10 BSOD Crashes and Debugging
    "System Restore failed to extract the file (...\OneDrive) from the restore point.": Since updating to Windows 1803, system protection does not work. Restore will not restore from the restore point created during the update. Nor will it restore from any new restore point I create. I get the message: System Restore did not complete successfully. Your...
  8. Previous versions of files in restore point

    in Windows 10 Backup and Restore
    Previous versions of files in restore point: Searched, didn't see this one. One of the most useful features of Win 7 was when you could pull a previous version of a file out of the restore point. But now when I go to configure a system restore it isn't listed as an option as it was in 7. However, in a context menu...
  9. restore point

    in Windows 10 Backup and Restore
    restore point: I can not get a game to load. need to set system restore point to earlier date.. when I do that it automatically shows present date? 61373
  10. Restore Point

    in Windows 10 Backup and Restore
    Restore Point: Question; My computer had to be reformatted because of a lock out by a hacker, can I use a restore point that I made before the hack, to restore my files? The restore points and system image are on my back up drive , I restored a couple of files from it. and the folders are...