I just set up restic through backrest and ran into a problem…
I have a local Windows PC with backrest & restic installation and a shared smb drive. The remote drive was mapped to S:// using windows file manager.
My restic version:
PS C:\Users\username> .\AppData\Local\Programs\Backrest\restic.exe version
restic 0.18.0 compiled with go1.24.1 on windows/amd64
using Backrests GUI, I created a repository with the following settings:
{
"id": "RepoID",
"guid": "...",
"uri": "S:\\path\\to\\backup",
"password": "...",
"env": [],
"flags": [],
"prunePolicy": {
"maxUnusedPercent": 10,
"schedule": {
"clock": "CLOCK_LOCAL",
"cron": "0 12 * * 6"
}
},
"checkPolicy": {
"readDataSubsetPercent": 50,
"schedule": {
"clock": "CLOCK_LOCAL",
"cron": "0 12 * * 0"
}
},
"autoUnlock": false,
"hooks": []
}
My Plan config:
{
"id": "PlanID",
"repo": "RepoID",
"paths": [
"D:\\"
],
"excludes": [],
"iexcludes": [],
"schedule": {
"clock": "CLOCK_LOCAL",
"cron": "0 22 * * *"
},
"backup_flags": [],
"retention": {
"policyTimeBucketed": {
"yearly": 0,
"monthly": 12,
"weekly": 0,
"daily": 30,
"hourly": 24,
"keepLastN": 0
}
},
"hooks": []
}
Upon the first (manual) test run, I receive the following errors:
[repo-manager] 08:30:56.534Z debug repo orchestrator starting backup {"repo": "RepoName", "repo": "RepoName"}
[restic]
[restic] command: ["C:\\Users\\username\\AppData\\Local\\Programs\\Backrest\\restic.exe" "snapshots" "--json" "-o" "sftp.args=-oBatchMode=yes" "--tag" "plan:PlanName,created-by:MyPC"]
[restic] List(key) returned error, retrying after 1.186618988s: GetFileInformationByHandleEx S:\path\to\backup\keys: Der angegebene Server kann den angeforderten Vorgang nicht ausführen.
... those messages reoccur with different timeouts ...
[restic] {"message_type":"exit_error","code":1,"message":"Fatal: GetFileInformationByHandleEx S:\\path\to\backup\\keys: Der angegebene Server kann den angeforderten Vorgang nicht ausführen."}
[tasklog] 08:44:40.671Z error backup for plan "PlanName" task failed {"error": "failed to get snapshots for plan: get snapshots for plan \"PlanName\": command \"C:\\\\Users\\\\username\\\\AppData\\\\Local\\\\Programs\\\\Backrest\\\\restic.exe snapshots --json -o sftp.args=-oBatchMo...\" failed: exit status 1\nOutput:\nList(key) returned error, retrying after 1.186618988s: GetFileInformationByHandleEx S:\\path\\to\\backup\\keys: Der angegebene Server kann den angeforderten Vorgang nicht ausführen.\n... 3152 bytes truncated ...\n", "duration": 824.1376919}
Has anybody encountered this problem?