put($remotefile, $localfile, SFTP::SOURCE_LOCAL_FILE | SFTP::RESUME_START); if ( $success ) { $args[2] = $args[2] . '
Upload Database Backup on SFTP ' . $host; $args[4] = $args[4] .= 'SFTP, '; } } // Close connection to host. if($sftp){ $sftp->disconnect(); }