From 3911296921e49a1d0db1866e147805bb4311dc65 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Wed, 23 Oct 2024 09:36:58 +0200 Subject: [PATCH] fix: add identifyFile --- pkg/backup.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkg/backup.go b/pkg/backup.go index 5e90c14..1880947 100644 --- a/pkg/backup.go +++ b/pkg/backup.go @@ -365,12 +365,13 @@ func sshBackup(db *dbConfig, config *BackupConfig) { } sshStorage, err := ssh.NewStorage(ssh.Config{ - Host: sshConfig.hostName, - Port: sshConfig.port, - User: sshConfig.user, - Password: sshConfig.password, - RemotePath: config.remotePath, - LocalPath: tmpPath, + Host: sshConfig.hostName, + Port: sshConfig.port, + User: sshConfig.user, + Password: sshConfig.password, + IdentifyFile: sshConfig.identifyFile, + RemotePath: config.remotePath, + LocalPath: tmpPath, }) if err != nil { utils.Fatal("Error creating SSH storage: %s", err)