fix: add identifyFile

This commit is contained in:
Jonas Kaninda
2024-10-23 09:36:58 +02:00
parent 221079e0ea
commit 3911296921

View File

@@ -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)