Backup failed: access Windows

There are 2 users on this laptop; 1 admin, & 1user. I have this set up on the admin side to do both entire users’ directories, except the usual list of file exceptions. The user side works fine, the admin side is failing. Any idea why?

Running backup command from C:\ProgramData/.duplicacy-web/repositories/localhost/0 to back up C:/Users/Debbie
Options: [-log backup -storage Backblaze -stats]
2022-10-14 21:33:11.656 INFO REPOSITORY_SET Repository set to C:/Users/Debbie
2022-10-14 21:33:11.658 INFO STORAGE_SET Storage set to b2://Duplicacy-Haverkamp
2022-10-14 21:33:11.901 INFO BACKBLAZE_URL download URL is: https://f001.backblazeb2.com
2022-10-14 21:33:16.323 INFO BACKUP_START Last backup at revision 966 found
2022-10-14 21:33:16.323 INFO BACKUP_INDEXING Indexing C:\Users\Debbie
2022-10-14 21:33:16.323 INFO SNAPSHOT_FILTER Parsing filter file \\?\C:\ProgramData\.duplicacy-web\repositories\localhost\0\.duplicacy\filters
2022-10-14 21:33:16.325 INFO SNAPSHOT_FILTER Loaded 47 include/exclude pattern(s)
2022-10-14 21:33:25.469 WARN LIST_FAILURE Failed to list subdirectory: open \\?\C:\Users\Debbie\Application Data: Access is denied.
2022-10-14 21:33:25.470 WARN LIST_FAILURE Failed to list subdirectory: open \\?\C:\Users\Debbie\Cookies: Access is denied.
2022-10-14 21:33:27.757 WARN LIST_FAILURE Failed to list subdirectory: open \\?\C:\Users\Debbie\Local Settings: Access is denied.
2022-10-14 21:33:27.758 WARN LIST_FAILURE Failed to list subdirectory: open \\?\C:\Users\Debbie\My Documents: Access is denied.
2022-10-14 21:33:27.758 WARN LIST_FAILURE Failed to list subdirectory: open \\?\C:\Users\Debbie\NetHood: Access is denied.
2022-10-14 21:33:30.048 WARN LIST_FAILURE Failed to list subdirectory: open \\?\C:\Users\Debbie\PrintHood: Access is denied.
2022-10-14 21:33:30.048 WARN LIST_FAILURE Failed to list subdirectory: open \\?\C:\Users\Debbie\Recent: Access is denied.
2022-10-14 21:33:30.050 WARN LIST_FAILURE Failed to list subdirectory: open \\?\C:\Users\Debbie\SendTo: Access is denied.
2022-10-14 21:33:30.050 WARN LIST_FAILURE Failed to list subdirectory: open \\?\C:\Users\Debbie\Start Menu: Access is denied.
2022-10-14 21:33:30.072 WARN LIST_FAILURE Failed to list subdirectory: open \\?\C:\Users\Debbie\Templates: Access is denied.
2022-10-14 21:33:30.468 ERROR CHUNK_MAKER Failed to read 0 bytes: read \\?\C:\Users\Debbie\AppData\Local\Mega Limited\MEGAsync\megaclient_statecache12_TV92U29qUVZ0Zm8TCS8FGT9CNF6J3tH_cxCd.db-shm: The process cannot access the file because another process has locked a portion of the file.
Failed to read 0 bytes: read \\?\C:\Users\Debbie\AppData\Local\Mega Limited\MEGAsync\megaclient_statecache12_TV92U29qUVZ0Zm8TCS8FGT9CNF6J3tH_cxCd.db-shm: The process cannot access the file because another process has locked a portion of the file.

I did more experimentation: Even though MegaSync is running in the tray of both users, Backup succeeds for the non-admin user, but fails for the admin user. If I manually stop the admin user’s MegaSync the backup succeeds, but fails after MegaSync is restarted. The non-admin side couldn’t care less if MegaSync is running in the tray or not–backup just succeeds for that user.

Add the -vss switch to your backup command, to enabled shadow copies - though it needs to run as an administrator (elevated) to work.

Since I don’t run Duplicacy from the command line, I have no idea where to put -vss.

Is there a how-to for command line options (in windows) around here somewhere?

I did find this, from back in 2019: Vss option in Web Gui - #2 by Droolio

Which says it can’t be done, unless manually initiated. Please tell me that’s fixed???

In the Duplicacy Web UI, find your backup or schedule and look under the Options column - click the little dash to edit command line options. Add -vss to the first line:

image

Almost everything in that post is outdated (Duplicacy Web now has a service mode, and the browser is no longer run with admin privileges) and not particularly relevant… but you still need to run Duplicacy Web Edition as elevated admin (or service) if you wanna use the -vss option.