Backup files are empty
upperholme - May 26, 2008 - 22:58
| Project: | Backup and Migrate |
| Version: | 5.x-1.0 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | needs review |
Description
Hi
I've installed Migrate and Backup and it seems to work as advertised in every respect other than that my backup files are all 0KB in size, Am I missing something obvious?
Thanks for any assistance with this one.
Graham

#1
Does this happen when you select save to server, download or both?
#2
It is the same for both options. Could it be a permissions issue?
#3
Is this still happening with the latest/greatest version? If so, please post server info, drupal info (including version, file download method, etc.)
You may also want to try turning off all other non-core modules to see if there's some sort of conflict happening.
#4
I have the same problem here and I'm not sure, if this is a bug in the module. I found a similar issue for another module: (#422802: 3gp format files creates flv file with 0kb size) and I have this problem not only with backup migrate, but also with the optimized .css and .js files, drupal creates (#417616: Drupal creates files with a size of 0 kb).
I have all other modules deactivated and it's not a conflict.
Has this module ever worked for you? It worked for me first, but stopped working, maby after the update to D6.10.
Edit:
I checked one of my other drupal sites, where I'm using D6.10 and backup migrate, too: there are no problems. How stable is version 2 of backup migrate? Can we use it without risking loss of data? If so, I'd try the latest dev version to see, if the error is still there.
#5
Good to here the issues are not limited to this module. I hope someone comes up with a solution I can use.
2.0 works quite well, but it is not yet stable. I'm still adding fairly significant features and occasionally break the module in the process. It's probably not ready for production sites.
#6
The same problem.
Duplicates:
#202207: Empty backup files on download.
#408974: Backups have a size of 0 Bytes
My version is 6.x-dev on dedicated linux server.
No apache errors apart of:
[Tue Jul 14 22:48:41 2009] [error] [client 79.170.45.78] client denied by server configuration: .../public/sites/default/files/backup_migrate/scheduled/test.txt
Directory permission are fine and scheduled backup are created without problems.
And some javascript error on admin/content/backup_migrate:
Drupal.settings.backup_migrate is undefined...else{$("div.backup-migrate-save-options"...){$(this).parent().addClass('checked');}
#7
Done.
It happen only on big sql files.
My was around 100MB with already excluded some log and access data tables.
#8
#9
Other thing is that header looks like:
Content-Type: text/html; charset=utf-8Content-Type: text/x-sql
Content-Disposition: attachment; filename="backup_file-2009-07-15T00-16-04.mysql"
There should be only one line with only x-sql, not followed by text/html
Many modules like devel or dtools doing different kind of things when it's text/html that's why somebody put there line:
$GLOBALS['devel_shutdown'] = FALSE;
Because devel still was detecting content as html content, because text/html was in headers.
So other solution is to get rid of text/html
Some proxies could have some limitation of text/html content length, it could cause the problem as well.
#10
I had this same problem, and in my case I believe it was caused by a full /tmp directory. (See Comment #13 in devel_themer leaves files in /tmp.) Once I resolved the full /tmp directory problem, this module started working properly again and the zero-byte backup files problem was solved.