Error when adding --use-fs-snapshot Backup Flag #772
-
Hello, I've used Backrest to add a Repository and configure a Plan. I'm using Backblaze B2 as my storage provider with the S3 backend in restic/Backrest (although I have the same issue with the B2 backend anyways). I'm currently testing on some useless files in My Documents directory. This means I haven't run into file locks yet. When I first set up and ran my plan, I was able to backup without any issue. I can use Backrest's Snapshot Browser or other tools to explore the backup and download files. After reading more of the restic docs, I decided to pass the --use-fs-snapshot flag since I will eventually want to backup most of this disk, including files that could potentially be in use. I added the flag like this: but I keep getting the following error:
I also tried specifying -o vss.provider=MS but it had no effect. I tried to run the restic command on its own (after adding the necessary -r flag and setting
This worked perfectly fine. I ran it a couple more times to be sure and it worked every time. Example output:
I suspect it has something to do with the double-outputting of restic's path in the Backrest-generated command, but the same command/plan without --use-fs-snapshot works fine (and still contains the double-output) so I'm really not sure. Thanks in advance for the help, and thanks to the creator+maintainers for the great project :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi -- thanks for the report, I've seen a few reports of similar behavior on windows that I have yet to pin down. I've published a new binary 1.8.1 with some changes simplifying the command building logic and adding some additional clarity to the logging. Would you mind retrying your backup on the new version? |
Beta Was this translation helpful? Give feedback.
@garethgeorge @kianfotovat Ok, decided to spend an hour on this issue today & figured it out.
On Windows, for any application to use VSS, it needs to run as admin. Backrest currently runs as a normal user on startup, thus when it tries to take a VSS snapshot, it fails.
The issue is, Backrest doesn't print the error properly from Restic, otherwise this would have been very clear. I copied the command Backrest generates and ran it in CMD, there I got the error clearly.
At
%LOCALAPPDATA%\Programs\Backrest
, there are 2 Backrest executables i.e.backrest-windows-…