Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Greg Ross

    (@gregross)

    SFTP needs the SSH2 libary complied in to PHP, if it’s not there the options won’t be available in the remote storage options.

    Plugin Author Greg Ross

    (@gregross)

    V1.6.7 also now includes support for SFTP without the need for the PHP SSH2 library.

    Thread Starter lbeachmike

    (@lbeachmike)

    Hi Greg –

    Thanks for the responses. We added in the SSH2 library after your first response, and then updated the plug-in after your second response.

    It appears to successfully ftp the backup; however, it does throw an error at the tail end of the background process when it tries to close the ftp connection. Can you help with this? Error is below –

    Warning: ftp_close(): supplied resource is not a valid FTP Buffer resource in /var/www/mysite/wp-content/plugins/cyan-backup/includes/protocol-sftplibrary.php on line 27 Warning: Cannot modify header information – headers already sent by (output started at /var/www/mysite/wp-content/plugins/cyan-backup/includes/protocol-sftplibrary.php:27) in /var/www/mysite/wp-content/plugins/cyan-backup/cyan-backup.php on line 564 {“result”:true,”method”:”backup”,”backup_file”:”\/tmp\/mysite.20140313.171640.zip”,”backup_date”:”March 13, 2014 @ 5:16 pm”,”backup_size”:”83.45 MB”,”backup_deleted”:null}

    Plugin Author Greg Ross

    (@gregross)

    The code looks ok, as the close command isn’t very important try changing line 27 in includes/protocol-sftplibrary.php from:

    ftp_close( $sftp_connection );

    to

    @ftp_close( $sftp_connection );

    This will suppress the error message.

    Thread Starter lbeachmike

    (@lbeachmike)

    Thanks Greg. That did eliminate the error message. Are you going to include that code change in future versions? However, I understand that you’re saying it doesn’t have any real impact.

    The plug-in seems to work great – very nice job in comparison to any of the other backup plug-ins I tried.

    Thanks very much.

    Plugin Author Greg Ross

    (@gregross)

    Thanks, I wrote it because I couldn’t find a good one either ??

    I will include it in future releases.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘SFTP support?’ is closed to new replies.