I'm finding that there are copies of the backup files in the root directory of the website.
Not a big deal as the files are being transferred to my dropbox. I just delete them but if users are unaware of this they may find they accumulate quickly depending on the frequency of backups.

Comments

jdanthinne’s picture

Priority: Normal » Major

Just saw that as well, there were about 100 backups in my root folder… not very good!

danny englander’s picture

I have had this same issue sporadically, I think Backup Migrate Dropbox somehow temporarily puts it in root before it transfers it to Dropbox but I could be wrong about this. I first get this error:

Could not run backup because the file could not be saved to the destination.

... and then I see:

There was a problem when we tried to save the file to Dropbox, the error message was: File '/home/mysite/public_html/mybackup-2012-02-22T14-45-45.mysql.gz' does not exist or is not readable.

-- Note that public_html is synonymous with 'root' in my case.

danny englander’s picture

Looking into my logs further, I also see this error:

Warning: rename(/home/mysite/tmp_files/backup_migrate_mCKmEf.mysql.gz, /home/mysite/public_html/mybackup-2012-02-22T14-43-46.mysql.gz) 

[function.rename]: Permission denied in backup_migrate_destination_dropbox->save_file() (line 28 of /home/mysite/public_html/sites/all/modules/backup_migrate_dropbox/destinations.dropbox.inc).

I am not sure what it means but it implies a permissions error but I think it's a little more serious than that...

danny englander’s picture

I have what I think is a fix for this based on the comment here.

This is the first patch I have made using git so I hope it's ok and that people can test it but it fixed the issue here for me. What happened is that some code from 6.x was inadvertently added to the 7.x branch. This patch addresses that.

variable_get('file_directory_temp', '')

should actually be:

variable_get('file_temporary_path', '')

... in destinations.dropbox.inc

danny englander’s picture

Title: B&M Dropbox leaves copies of files in website root directory » Backup and Migrate Dropbox leaves copies of files in website root directory
pefferen’s picture

thanks highrockmedia the patch in #4 works for me.

wundo’s picture

Status: Active » Fixed

Thanks, pushed to 7.x-1.x branch

Status: Fixed » Closed (fixed)

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