Restic on Windows issues

Hi,

Sorry if I am off-topic: I am trying to backup 2 Hyper-V VMs from a Windows server… and therefore to run restic from a Windows.

I installed GitHub - kmwoley/restic-windows-backup: Powershell scripts to run Restic backups on Windows which seems great for this job.

But I’m facing an issue that you may have an idea why and how to fix it. I of course have post an issue on the restic-windows-backup bugtracker: "restic.exe : Fatal: unable to open config file: <config/> does not exist" · Issue #56 · kmwoley/restic-windows-backup · GitHub

I get this error message when I try to run restic-windows-backup:

restic.exe : Fatal: unable to open config file: <config/> does not exist
Au caractère C:\restic\backup.ps1:80 : 14
+     $locks = & $ResticExe list locks --no-lock -q 3>&1 2>> $ErrorLog
+              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Fatal: unable t... does not exist 
   :String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
Is there a repository at the following location?
rclone:gdrive:Backup/Restic/VM


restic.exe : Fatal: unable to open config file: <config/> does not exist
Au caractère C:\restic\backup.ps1:255 : 13
+             & $ResticExe backup $folder_list $vss_option --tag "$tag" ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Fatal: unable t... does not exist 
   :String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
Is there a repository at the following location?
rclone:gdrive:Backup/Restic/VM

[[Backup]] Completed with errors
[[General]] Errors found. Log: C:\restic\logs\20211128T0031395545.err.txt

Here is my C:\restic\backup.ps1 file: bin.infini
Here is my C:\restic\config.ps1: bin.infini

Here is my C:\restic\secrets.ps1: bin.infini

I’m confused because:

What am I missing?

Thanks a lot for your kind help :slight_smile:

Did you make sure that the config file is in the right directory? What’s the output of rclone lsl gdrive:Backup/Restic/VM?