VSS Backup on Windows 10 Pro Fails with Access is denied to C:\ProgamData\.duplicacy-web\*

Using the latest Duplicacy-Web trial edition

Attempting to get Duplicacy Web edition to backup the C: volume on Windows 10 Pro Microsoft Windows [Version 10.0.18363.836] fully patched as at now.

Have installed as a service running as “NT Authority\SYSTEM”

Tried to do a full backup of C:/ and got

“Volume Shadow Copy Service error: Unexpected error querying for the IVssWriterCallback interface. hr = 0x80070005, Access is denied.
. This is often caused by incorrect security settings in either the writer or requestor process.”

And applied the work-a-rounds as mentioned https://www.ryadel.com/en/volume-shadow-copy-service-error-unexpected-error-querying-for-the-ivsswritercallback-interface-how-to-fix-that/

Still getting the above but it seems to proceed.

Discovered to get the ability to use VSS you need to choose the root of the volume C:/ so Duplicacy Web Edition allows the option to add -vss -vss-timeout 200

Slightly confused as to whether I should add the options to Global Field or Command Field chose the command field and entered -vss -vss-timeout 200

Started the backup and it says failed with the output as below.

To get a successful backup should C:\ProgramData.duplicacy-web be added to exclusions?

Also it appears to be choking on OneDrive for Business which seems to store pointers to cloud files but not the files themselves

The fundamentals of the de-dup and ease of use are great and I would like to use Duplicacy for client backups to multiple cloud vendors but need to iron out these issues before recommending

Thanks
James McDonald

Running backup command from C:\ProgramData/.duplicacy-web/repositories/localhost/0 to back up C:/
Options: [-log backup -storage TGN-NAS01 -vss -vss-timeout 200 -stats]
2020-05-19 23:17:03.778 INFO REPOSITORY_SET Repository set to C:/
2020-05-19 23:17:03.780 INFO STORAGE_SET Storage set to sftp://rodneyrootkit@10.19.80.5:7322/u1/backup/duplicacy
2020-05-19 23:17:05.061 INFO BACKUP_START No previous backup found
2020-05-19 23:17:05.063 INFO VSS_CREATE Creating a shadow copy for C:\
2020-05-19 23:17:10.801 INFO VSS_DONE Shadow copy {1ED3A033-87E0-4C40-81BC-0B759B826D35} created
2020-05-19 23:17:10.803 INFO BACKUP_INDEXING Indexing C:\
2020-05-19 23:17:10.803 INFO SNAPSHOT_FILTER Parsing filter file \\?\C:\ProgramData\.duplicacy-web\repositories\localhost\0\.duplicacy\filters
2020-05-19 23:17:10.803 INFO SNAPSHOT_FILTER Loaded 0 include/exclude pattern(s)
2020-05-19 23:17:10.813 WARN LIST_FAILURE Failed to list subdirectory: open \\?\C:\ProgramData\.duplicacy-web\repositories\localhost\0\.duplicacy\shadow\Documents and Settings: Access is denied.
2020-05-19 23:18:38.236 INFO LIST_ATTRIBUTES Discarding file attributes
2020-05-19 23:19:23.478 INFO INCOMPLETE_LOAD Incomplete snapshot loaded from C:\ProgramData\.duplicacy-web\repositories\localhost\0/.duplicacy/incomplete
2020-05-19 23:19:23.478 INFO BACKUP_LIST Listing all chunks
2020-05-19 23:19:44.388 INFO FILE_SKIP Skipped 3 files from previous incomplete backup
2020-05-19 23:22:14.371 WARN OPEN_FAILURE Failed to open file for reading: open \\?\C:\ProgramData\.duplicacy-web\repositories\localhost\0\.duplicacy\shadow\hiberfil.sys: Access is denied.
2020-05-19 23:38:29.641 WARN OPEN_FAILURE Failed to open file for reading: open \\?\C:\ProgramData\.duplicacy-web\repositories\localhost\0\.duplicacy\shadow\System Volume Information\{3808876b-c176-4e48-b7ae-04046e6cc752}: Access is denied.
2020-05-19 23:38:29.642 WARN OPEN_FAILURE Failed to open file for reading: open \\?\C:\ProgramData\.duplicacy-web\repositories\localhost\0\.duplicacy\shadow\System Volume Information\{736f3756-96ab-11ea-a4c1-983b8fe172d2}{3808876b-c176-4e48-b7ae-04046e6cc752}: Access is denied.
2020-05-19 23:38:29.643 WARN OPEN_FAILURE Failed to open file for reading: open \\?\C:\ProgramData\.duplicacy-web\repositories\localhost\0\.duplicacy\shadow\System Volume Information\{bbe5f42a-98ed-11ea-a4c2-983b8fe172d2}{3808876b-c176-4e48-b7ae-04046e6cc752}: Access is denied.
2020-05-19 23:38:29.643 WARN OPEN_FAILURE Failed to open file for reading: open \\?\C:\ProgramData\.duplicacy-web\repositories\localhost\0\.duplicacy\shadow\System Volume Information\{e9790bc8-94fc-11ea-a4c0-983b8fe172d2}{3808876b-c176-4e48-b7ae-04046e6cc752}: Access is denied.
2020-05-19 23:38:29.644 WARN OPEN_FAILURE Failed to open file for reading: open \\?\C:\ProgramData\.duplicacy-web\repositories\localhost\0\.duplicacy\shadow\System Volume Information\{f2dff4ba-99d2-11ea-a4c4-983b8fe172d2}{3808876b-c176-4e48-b7ae-04046e6cc752}: Access is denied.
2020-05-19 23:47:00.266 ERROR CHUNK_MAKER Failed to read 0 bytes: read \\?\C:\ProgramData\.duplicacy-web\repositories\localhost\0\.duplicacy\shadow\Users\jmcd7\OneDrive - Toggen\4G Modem\IMG_20200518_173611.jpg: The cloud operation is not supported on a read-only volume.
2020-05-19 23:47:00.528 INFO VSS_DELETE The shadow copy has been successfully deleted
2020-05-19 23:47:04.361 INFO INCOMPLETE_SAVE Incomplete snapshot saved to C:\ProgramData\.duplicacy-web\repositories\localhost\0/.duplicacy/incomplete
Failed to read 0 bytes: read \\?\C:\ProgramData\.duplicacy-web\repositories\localhost\0\.duplicacy\shadow\Users\jmcd7\OneDrive - Toggen\4G Modem\IMG_20200518_173611.jpg: The cloud operation is not supported on a read-only volume.

Yes, you should exclude C:\ProgramData\.duplicacy-web. Unless you want to back up the configuration file, in which case you can include duplicacy.json but exclude everything else under that directory.

Can you exclude the entire OneDrive directory?