Merge pull request #124 from jkaninda/storage

fix: add identifyFile
This commit is contained in:
2024-10-23 09:40:51 +02:00
committed by GitHub

View File

@@ -88,12 +88,13 @@ func restoreFromRemote(db *dbConfig, conf *RestoreConfig) {
}
sshStorage, err := ssh.NewStorage(ssh.Config{
Host: sshConfig.hostName,
Port: sshConfig.port,
User: sshConfig.user,
Password: sshConfig.password,
RemotePath: conf.remotePath,
LocalPath: tmpPath,
Host: sshConfig.hostName,
Port: sshConfig.port,
User: sshConfig.user,
Password: sshConfig.password,
IdentifyFile: sshConfig.identifyFile,
RemotePath: conf.remotePath,
LocalPath: tmpPath,
})
if err != nil {
utils.Fatal("Error creating SSH storage: %s", err)