Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Repository String #91

Open
killmasta93 opened this issue Oct 26, 2023 · 1 comment
Open

Issue with Repository String #91

killmasta93 opened this issue Oct 26, 2023 · 1 comment

Comments

@killmasta93
Copy link

killmasta93 commented Oct 26, 2023

HI @kmwoley
Currently trying to backup to another smb server, and were getting two issues

  1. the issue to copy though smb
[[Internet]] Repository string could not be parsed.
[[Backup]] Failed - cannot access repository.

in my secrets i have this


# restic backup repository configuration
#$Env:AWS_ACCESS_KEY_ID='<KEY>'
#$Env:AWS_SECRET_ACCESS_KEY='<KEY>'
$Env:RESTIC_REPOSITORY='\\192.168.21.27\N'
$Env:RESTIC_PASSWORD='test'

i did the following on locally and it works fine

  1. issue with the sending email alert

# email configuration
$PSEmailServer='mail.domain.com'
$ResticEmailConfig=@{UseSsl=$false;}
$ResticEmailTo='[email protected]'
$ResticEmailFrom='[email protected]'
$ResticEmailUsername='[email protected]'
$ResticEmailPassword='thepass'

i keep getting


Send-MailMessage : The operation has timed out.
At C:\restic\backup.ps1:337 char:9
+         Send-MailMessage @ResticEmailConfig -From $ResticEmailFrom -T ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.Mail.SmtpClient:SmtpClient) [Send-MailMessage], SmtpExcept 
   ion
    + FullyQualifiedErrorId : SmtpException,Microsoft.PowerShell.Commands.SendMailMessage
 
[[Email]] Sending email completed with errors

but on the server i can access fine the email server

Thank you

@JBlond
Copy link

JBlond commented Jan 15, 2024

it works if you set $repository_host = $env:RESTIC_REPOSITORY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants