Ticket #5905 (closed Bugs: fixed)

Opened 1 year ago

Last modified 8 months ago

Remote SSH Backup/Restore fails

Reported by: drmessano Assigned to:
Priority: major Milestone: 2.11
Component: Backup & Restore Version: 2.10-branch
Keywords: Cc:
Confirmation: Unreviewed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

Set up a remote SSH backup/restore. Have generated keys and copied to the remote server. When running the backup, I see the following in the backup window:

Warning: Identity file -P not accessible: No such file or directory. 5522: No such file or directory

5522 is the backup port I specified

If I switch to the default of 22, I get the following:

Warning: Identity file -P not accessible: No such file or directory. 22: No such file or directory

Change History

07/02/12 11:24:00 changed by mbrevda

This should fix it:

Index: backup/functions.inc/class.backup.php
===================================================================
--- backup/functions.inc/class.backup.php       (revision 22147)
+++ backup/functions.inc/class.backup.php       (working copy)
@@ -369,8 +369,8 @@
                                        //put file
                                        $cmd[] = fpbx_which('scp');
                                        $cmd[] = '-o StrictHostKeyChecking=no -i';
+                                       $cmd[] = $s['key'];
                                        $cmd[] = '-P ' . $s['port'];
-                                       $cmd[] = $s['key'];
                                        $cmd[] = $this->b['_tmpfile'];
                                        $cmd[] = $s['user'] . '\@' . $s['host'] 
                                                        . ':' . $s['path'] . '/' . $this->b['_dirname'];

09/25/12 05:25:47 changed by mbrevda

  • status changed from new to closed.
  • resolution set to fixed.

Closing due to a lack of feedback, recommended change has changed has been published