First, this is diffrent from http://drupal.org/node/440972

  • I can save backups to a (foreign host) ftp directory (manually and scheduled)
  • I get all backups on this ftp site listed on admin/content/backup_migrate/destination/list/files/[hash]

But when I click download (or restore) I am redirected to admin/content/backup_migrate/ and nothing happens, no download and no drupal_set_message mesage appears. Just nothing. Watchdog does report anything either. The download link is
/admin/content/backup_migrate/destination/downloadfile/[hash]/[file].mysql

Does anyone have an idea whats going on? My ftp settings are all ok, the ftp user has read and write access to folder and files and there is no connection problem.

(a replaced hash and filename in this post to generate a generic issue)

CommentFileSizeAuthor
#4 ftpRestoreBug.patch420 bytesKorchkidu

Comments

Ghostthinker’s picture

Version: 6.x-2.2 » 6.x-2.x-dev
Priority: Normal » Major

No idea? This is still a problem. My backup files are gzipped and about 17 MB. Any ideas? Latest stable version installed

jcs’s picture

Version: 6.x-2.x-dev » 6.x-2.4
Priority: Major » Normal

Same problem here with 6.x-2.4

Korchkidu’s picture

Same problem here also with version 6.x-2.4 except that I get an error message stating that "Could not restore because the file could not be loaded from the destination." while it can write the backup correctly.

Any idea?

Korchkidu’s picture

StatusFileSize
new420 bytes

Hi,

I think I found the problem. function drupal_ftp_ftp_to_file in destionations.ftp.inc was returning FALSE on error and nothing on success... See attacked patch. Not sure it is the primary problem causing this issue but it works for me now, at least.

Best regards.

Korchkidu’s picture

Status: Active » Needs review
Ghostthinker’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +ftp

Reviewed ad tested on 3 site pairs (live and dev), works like a charme. Please include in next release.

ronan’s picture

Status: Reviewed & tested by the community » Fixed

Looks good, thanks!

Status: Fixed » Closed (fixed)
Issue tags: -ftp

Automatically closed -- issue fixed for 2 weeks with no activity.