kmwoley / restic-windows-backup

Powershell scripts to run Restic backups on Windows
MIT License
329 stars 68 forks source link

Restic backup.ps1 and sftp with NO-IP address #80

Open LMSDF opened 1 year ago

LMSDF commented 1 year ago

Hi there I have a problem with this script and i dont know what can be I can : C:\restic>restic.exe -r sftp:osmc@lmfaustino.ddns.net:/home/osmc/lmfaustino backup c:\Intel enter password for repository: repository 98822536 opened (version 2, compression level auto) created new cache in C:\Users\Luis Faustino\AppData\Local\restic no parent snapshot found, will read all files

Files: 4 new, 0 changed, 0 unmodified Dirs: 4 new, 0 changed, 0 unmodified Added to the repository: 149.354 KiB (12.905 KiB stored)

processed 4 files, 147.127 KiB in 0:02 snapshot 5f92352c saved

But when i change $Env:RESTIC_REPOSITORY='sftp:osmc@lmfaustino.ddns.net:/home/osmc/lmfaustino' on script it failed with message: PS C:\Windows\system32> C:\restic\backup.ps1 [[Backup]] Failed - cannot access repository. [[Backup]] Sleeping for 15 min and then retrying... [[History]] Backup success rate: 38 / 51 (74,51%)

Can any one help!!!