kmwoley / restic-windows-backup

Powershell scripts to run Restic backups on Windows
MIT License
321 stars 67 forks source link

Installation issues #55

Closed hista closed 1 year ago

hista commented 2 years ago

Hi,

This project seems very tempting, and I'm facing some installation issues when I run C:\restic> .\install.ps1:

1-

Invoke-WebRequest : La demande a été abandonnée : Impossible de créer un canal sécurisé SSL/TLS.
Au caractère C:\restic\install.ps1:14 : 5
+     Invoke-WebRequest -Uri $url -OutFile $output
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation : (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebEx
   ception
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Expand-Archive : Le chemin d'accès C:\restic\restic.zip n'existe pas ou n'est pas un chemin d'accès au système de
fichiers valide.
Au caractère C:\restic\install.ps1:15 : 5
+     Expand-Archive -LiteralPath $output $InstallPath
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument : (C:\restic\restic.zip:String) [Expand-Archive], InvalidOperationExcept
   ion
    + FullyQualifiedErrorId : ArchiveCmdletPathNotFound,Expand-Archive

Remove-Item : Impossible de trouver le chemin d'accès « C:\restic\restic.zip », car il n'existe pas.
Au caractère C:\restic\install.ps1:16 : 5
+     Remove-Item $output
+     ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\restic\restic.zip:String) [Remove-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

[[Init]] Repository successfully initialized.
& : Le terme «C:\restic\restic.exe» n'est pas reconnu comme nom d'applet de commande, fonction, fichier de script ou
programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, vérifiez que le chemin d'accès
est correct et réessayez.
Au caractère C:\restic\install.ps1:33 : 3
+ & $ResticExe --verbose init
+   ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\restic\restic.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

AVERTISSEMENT : [[Init]] Repository initialization failed. Check errors and resolve.
[[Scheduler]] Backup task scheduled.

2- I've downloaded https://github.com/restic/restic/releases/download/v0.12.1/restic_0.12.1_windows_amd64.zip, renamed restic_0.12.1_windows_amd64.zip into restic.zip and added it to C:\restic

PS C:\restic> .\install.ps1
Invoke-WebRequest : La demande a été abandonnée : Impossible de créer un canal sécurisé SSL/TLS.
Au caractère C:\restic\install.ps1:14 : 5
+     Invoke-WebRequest -Uri $url -OutFile $output
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation : (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Fatal: create repository at rclone:gdrivedpf:Backup/Restic/VDT/HV/VM failed: cmd.Start: exec: "rclone": executable file not found in %PATH%

AVERTISSEMENT : [[Init]] Repository initialization failed. Check errors and resolve.
AVERTISSEMENT : [[Scheduler]] Backup task not scheduled: there is already a task with the name 'Restic Backup'.

3- I've downloaded rclone.exe and added it to C:\restic

PS C:\restic> .\install.ps1
rclone: 2021/11/24 23:42:00 NOTICE: Config file "C:\\Users\\Administrateur\\AppData\\Roaming\\rclone\\rclone.conf" not found - using defaults
rclone: 2021/11/24 23:42:00 Failed to create file system for "gdrivedpf:Backup/Restic/VDT/HV/VM": didn't find section in config file
Fatal: create repository at rclone:gdrivedpf:Backup/Restic/VDT/HV/VM failed: error talking HTTP to rclone: Get "http://localhost/file-5577006791947779410": unexpected EOF

AVERTISSEMENT : [[Init]] Repository initialization failed. Check errors and resolve.
AVERTISSEMENT : [[Scheduler]] Backup task not scheduled: there is already a task with the name 'Restic Backup'.

And now I have no idea how to fix it by myself :) Could you please highlight me?

kmwoley commented 1 year ago

This issue looks like it was an issue with restic itself, not the scripts. I'm going to close this issue due to it being open for a long time. If this didn't get sorted out, and it was indeed a script issue, please re-open it. Thanks.