Hi

FTP login works, the file is created but it has a size of zero.

Tested manual upload with same ftp user, and that works fine.

Here is the full error message
* FTP Error: Couldn't write to ./Mysitename-2010-11-10T10-20-47.mysql.gz when trying to save file on the ftp server.
* Could not run backup because the file could not be saved to the destination.

Comments

giorgio79’s picture

Also, the file is quite small around 3-400 kb

HAg’s picture

Same issue

# FTP Error: Couldn't write to ./Mysitename-30-01-2011_05-58-23.mysql.zip.aes when trying to save file on the ftp server.
# Could not run backup because the file could not be saved to the destination.

Seems, this is happening, when the ftp account is not the main account.

xaris.tsimpouris’s picture

Same here!
File is created with zero size.

Also, it is created as *.mysql while I have set for gzip compression.

List files, doesn't work either. I have manually uploaded backup files but they are not shown when I click "List Files".

xaris.tsimpouris’s picture

After changing in \sites\all\modules\backup_migrate\includes\destinations.ftp.inc on line 221 from
$put_file = @ftp_put($ftp->__conn, $complete_filename, $source, FTP_BINARY);
to
$put_file = ftp_put($ftp->__conn, $complete_filename, $source, FTP_BINARY);

Also, this is shown to be more spesific!

warning: ftp_put() [function.ftp-put]: Unable to build data connection: Connection timed out in F:\htdocs\projectm\sites\all\modules\backup_migrate\includes\destinations.ftp.inc on line 221.

aireworth’s picture

I don't know if this the same problem but this patch http://drupal.org/node/970120 got rid of this error for me

Colin

beauz’s picture

I was having this issue too, patch mentioned in #5 solves the problem by enabling PASV mode.

Can we have this added as a permanent feature?

Gabriel R.’s picture

Having the same issue over SFTP.

It occurs after an upgrade to PHP 5.3, but I am not 100% sure it's related.

I haven't tried yet the patch from #5.

SchwebDesign’s picture

subscribing, same issue here, i tried patch from #5 but problem persists exactly as described above

sachbearbeiter’s picture

sachbearbeiter

HAg’s picture

# FTP Error: Couldn't write to ./Mysitename-30-01-2011_05-58-23.mysql.zip.aes when trying to save file on the ftp server.
# Could not run backup because the file could not be saved to the destination.

Seems, this is happening, when the ftp account is not the main account.

I was wrong. When the path is set to /myfolder, where myfolder is an existing folder on my ftp account, it works. When the path is set to / I get the error.

HAg’s picture

This is weird

Today I was trying to make a backup to a ftp account. No matter what i did, I got the error above and an empty file was created.
Every time I edited the destination the Destination name was changed to my user name in the form. So every time I was forced to changed it back, before saving.
At last I let the site have its way and let the Destination name be my user name. Now everything works fine.

What am I missing here?

HAg’s picture

After the above, I attended another site running on the same code base. This time my user name didn't work and I did have to use another.
???

HAg’s picture

Later on, running them as scheduled backup, non of them worked.

HAg’s picture

Priority: Normal » Critical

After trying this patch, everything is working fine

HAg’s picture

I am referring to the patch mentioned in #5

nicholas.alipaz’s picture

Status: Active » Closed (duplicate)
HAg’s picture

Status: Closed (duplicate) » Active

#967546 is a duplicate of #967546??? Bullshit!

ronan’s picture

Status: Active » Closed (duplicate)

I believe the duplicate link was simply a mis-paste of: #970120: Add a PASV option for FTP transfers

IamOnStage’s picture

Issue summary: View changes

Can I re-open this issue as I am experiencing the same problem but in the latest version of Backup and Migrate 3.1
Drupal 7.35

FTP Error: Couldn't write to ./[sitename]-2015-09-21T21-43-41.mysql.zip.info when trying to save file on the ftp server.
FTP Error: Couldn't write to ./[sitename]-2015-09-21T21-43-41.mysql.zip when trying to save file on the ftp server.
Could not run backup because the file could not be saved to the destination.