thanks for the reply so odd i tried the following and keep seeing this error
restic.exe : error: failed to save D:\shares\sistema de gestion\xxx\00.
xxxx\xxxx.pdf: nodeFromFileInfo
\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy305\shares\sistema de
gestion\xxx\00.\xxxx\xxxx.pdf: get EA
failed while opening file handle for path
\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy305\shares\sistema de
gestion\xxx\00.xxx\xxxx\xxxx.pdf, with:
Access denied.
En C:\windows\restic\backup.ps1: 281 Carácter: 13
+ & $ResticExe backup $folder_list $vss_option --tag "$tag"
--exclude- ...
but looking at the file full admin permissions or could it be permission from the shadow copies?
even whats odd i try to ignore the shadow copies it still seems to tries to copy it
Thanks for the reply, so i did the following running it manually but created this script of my own
get EA failed while opening file handle for path \\?\D:\shares\
This i was the command i ran
# Load the S3 bucket information from secrets.ps1
$excludeFile = "C:\Windows\restic\windows.exclude"
$repo = "s3:http://192.168.1.241:9002/zeus"
# Set the AWS environment variables required for Restic to access the S3 bucket
$Env:AWS_ACCESS_KEY_ID='User'
$Env:AWS_SECRET_ACCESS_KEY='xxxxx'
$Env:RESTIC_REPOSITORY='s3:http://192.168.1.241:9002/zeus'
$Env:RESTIC_PASSWORD='xxxxxx'
# Run the Restic backup command using the S3 bucket as the repository
C:\Windows\restic\restic.exe -r $repo backup "D:\" --exclude-file=$excludeFile
Pretty sure both lists could contain interesting entries.
Just a side question, why do you exclude NTUSER.DAT files which are the HKEY_USER parts of registry ? Looks like a file I would definitly like to have. The same for .edb files, which are quite precious when it comes to password corruption, or even more active directory.
hi there, yeah currently only using restic to backup files of the users not really concerned with HKEY as that part i have it covered with proxmox ZFS snapshots
I was wondering if you ever got the issue of how i can exclude that part been trying all types of combination
Basically, you need to have FileMatch compatible expressions. The problem is that ? is a single char wildcard in FileMatch.
If I happen to remember well, the escape char is $, which can be used to escape ? so it becomes a “real” char instead of being interpreted.
That being said, even interpreted, the wildcard ? should allow the real char ? as replacement.
Just make sure that you really don’t want to backup D:\Shares because that’s what the first line will exclude.
If that doesn’t do the trick, than the escape could be \\ (depending how fnmatch is implemented for windows I guess), so first part would become \\\.