Issue with Repository String
Opened this issue · 1 comments
killmasta93 commented
HI @kmwoley
Currently trying to backup to another smb server, and were getting two issues
- 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
- issue with the sending email alert
# email configuration
$PSEmailServer='mail.domain.com'
$ResticEmailConfig=@{UseSsl=$false;}
$ResticEmailTo='alerts@domain.com'
$ResticEmailFrom='alerts@domain.com'
$ResticEmailUsername='alerts@domain.com'
$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 commented
it works if you set $repository_host = $env:RESTIC_REPOSITORY