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