"--use-fs-snapshot" not working on W2k19 server

I am using the “–use-fs-snapshot” option without problems on my W2k16 server. However, when trying this option on a W2k19std server, I get this:

[DBG]: PS C:>> restic version
restic 0.12.0 compiled with go1.15.8 on windows/amd64

[DBG]: PS C:>> restic snapshots
ID Time Host Tags Paths

170a6544 2021-04-26 11:08:10 2019std-ejl C:
45e16192 2021-04-26 15:03:32 2019std-ejl C:
a3c9310e 2021-04-26 15:11:18 2019std-ejl C:\shadow

3 snapshots

[DBG]: PS C:>> restic backup --use-fs-snapshot c:\

[2Kno parent snapshot found, will read all files

[2Kcreating VSS snapshot for [c:]

[2Ksuccessfully created snapshot for [c:]

restic : error: CreateFile \GLOBALROOT\Device\RubrikVirtualDiskCopy-170439872: The network path was not
found.
At line:1 char:1

  • restic backup --use-fs-snapshot c:\
  •   + CategoryInfo          : NotSpecified: (error: CreateFi... was not found.:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    

Fatal: unable to save snapshot: snapshot is empty
[2K

[DBG]: PS C:>> vssadmin list shadows
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2013 Microsoft Corp.

No items found that satisfy the query.

[DBG]: PS C:>>

Any advice how to analyze and possibly fix this problem is appreciated.

Regards,
Werner

You can try this PR with -o vss.provider=MS extended option.

I downloaded the code, compiled it and tried it. This is what I got:

[DBG]: PS C:>> \tsclient\home\restic.exe version
restic 0.11.0 compiled with go1.15.9 on windows/amd64

[DBG]: PS C:>> \tsclient\home\restic.exe options
All Extended Options:
azure.connections set a limit for the number of concurrent connections (default: 20)
b2.connections set a limit for the number of concurrent connections (default: 5)
gs.connections set a limit for the number of concurrent connections (default: 20)
local.layout use this backend directory layout (default: auto-detect)
rclone.args arguments for running rclone (default: serve restic --stdio --b2-hard-delete)
rclone.connections set a limit for the number of concurrent connections (default: 5)
rclone.program path to rclone (default: rclone)
rest.connections set a limit for the number of concurrent connections (default: 5)
s3.bucket-lookup bucket lookup style: ‘auto’, ‘dns’, or ‘path’
s3.connections set a limit for the number of concurrent connections (default: 5)
s3.layout use this backend layout (default: auto-detect)
s3.list-objects-v1 use deprecated V1 api for ListObjects calls
s3.region set region
s3.retries set the number of retries attempted
s3.storage-class set S3 storage class (STANDARD, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING or REDUCED_REDUNDANCY)
sftp.command specify command to create sftp connection
sftp.layout use this backend directory layout (default: auto-detect)
swift.connections set a limit for the number of concurrent connections (default: 5)
vss.excludeallmountpoints exclude mountpoints from snapshotting on all volumes
vss.excludevolumes semicolon separated list of volumes to exclude from snapshotting (ex. ‘c:;e:\mnt;\?\Volume{…}’)
vss.provider VSS provider identifier which will be used for snapshotting
vss.timeout time that the VSS can spend creating snapshot before timing out

[DBG]: PS C:>> \tsclient\home\restic.exe --use-fs-snapshot -o vss.provider=MS --iexclude $Exclude C:
\tsclient\home\restic.exe : unknown command “vss.provider=MS” for “restic”
At line:1 char:1

  • \tsclient\home\restic.exe --use-fs-snapshot -o vss.provider=MS --i …
  •   + CategoryInfo          : NotSpecified: (unknown command...S" for "restic":String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    
    

What did I miss?

At least backup, may be -r and other basic options.

restic.exe backup --use-fs-snapshot -o vss.provider=MS

I can not believe I missed that…
restic works much better if you tell it what to do!

Most importantly, “–use-fs-snapshot” does work with “-o vss.provider=MS” :slight_smile:

Thank you so much for your help. Hoping your PR will get integrated soon.

cheers,
Werner