I am trying to configure BackupBuddy to transfer a 250MB backup set to Dropbox on a shared host (DreamHost).
DreamHost runs a process monitor that automatically kills any process that exceeds a certain threshold (seems to be somewhere between 128MB and 256MB, from my tests). BackupBuddy uses a PHP oAuth Dropbox API call that requires the entire backup set zip file to be held in memory and transferred in a single call.
Below are the configuration and results of one test case run for two blogs (both failed). A similar test case after increasing memory_limit to 256MB also fails - I believe in that case the host's monitor kills the process.
Any advice on how to get these three vendors (BackupBuddy, DreamHost, Dropbox) to "play nice" together would be much appreciated. Aside from a limited amount of leeway I seem to have in adjusting the memory_limit, I don't think I have anything else I can configure to resolve the failure. The simple answer would be to get a refund of the $100 BackupBuddy purchase, but at least so far that refund request is being denied. BackupBuddy techs are confident that there is a solution within the given constraints but I can't find it.
Configured in phprc (php.ini):
max_execution_time = 60
memory_limit = 128M
Size of backup file: about 35MB
From the BackupBuddy debug log:
[Feb 20, 2012 10:34:52 -5-all] Setting greedy script limits.
[Feb 20, 2012 10:34:52 -5-all] Launching remote send.
[Feb 20, 2012 10:34:52 -5-all] Starting Dropbox transfer.
[Feb 20, 2012 10:34:52 -5-all] About to put object (the file) to Dropbox cron.
From the PHP error log:
[20-Feb-2012 15:34:53] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 35834605 bytes) in /home/xxxx/wp-content/plugins/backupbuddy/lib/dropbuddy/pear_includes/HTTP/Request2/Response.php on line 210
Size of backup file: about 252MB
From the BackupBuddy debug log:
[Feb 20, 2012 10:34:52 -5-all] Setting greedy script limits.
[Feb 20, 2012 10:34:52 -5-all] Launching remote send.
[Feb 20, 2012 10:34:52 -5-all] Starting Dropbox transfer.
[Feb 20, 2012 10:34:52 -5-all] About to put object (the file) to Dropbox cron.
From the PHP error log:
[20-Feb-2012 15:40:35] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 253171937 bytes) in /home/xxxx/wp-content/plugins/backupbuddy/lib/dropbuddy/dropbox_api/API.php on line 336
