On a new site, I installed the Backup and Migrate module, and configured it to run daily backups.

The strange thing is that if I run cron, I get this warning message for this one module (everything else is fine so far):

warning: unlink(/tmp/backup_migrate_lvy6mI) [function.unlink]: Operation not permitted in /home/gvlpcc0/public_html/gvlpc_main/sites/all/modules/backup_migrate/backup_migrate.module on line 124.

Any thoughts/ideas on what this means and how to fix it?

Comments

gpk’s picture

That's probably this line http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/backup_migr...

For some reason (permissions probably) PHP/Drupal is unable to delete the listed file. You may need to ask your host for help. Once gone it should be gone forever :-)

You may also want to change the tmp directory used by Drupal to one within your account e.g. /home/gvlpcc0/tmp.

gpk
----
www.alexoria.co.uk

kjv1611’s picture

Thanks for the suggestions. I'll see what I can find out, and post back with results.

i25’s picture

Any results on your investigation? I just ran into this error as well.

kjv1611’s picture

I got busy with so many other things during the past year - it's been a roller coaster in so many areas - and so I've hardly touched anything with the sites I've been working on, especially the site I was testing this module on. However, thanks for asking, b/c that reminded me! :0)

I am not going to say this week, but hopefully within the next 2 to 3 weeks, I'll be able to look at it once again - either say what fixed it, or I did nothing, or what.. hopefully this year, I'll find enough time to deal with some more of the drupal specific stuff! I love the stuff, just hard to find the time.

i25’s picture

Thanks for the update.

I updated to the most recent version of the module, and the error has not shown up yet. Hopefully this has solved the problem. If the error resurfaces, I will post again. Thanks.

David Latapie’s picture

I have the same issue. I'm using Drupal 7RC3 with Backup and Migrate 7.x-2.0-rc1.

artik7’s picture

chceck our site pls http://www.poliweglan-plexi.pl

Patroclas’s picture

Is this the reason maybe? (from the module project page)

The module will attempt to check if the destination directory is publicly readable before writing to it, but users are strongly encouraged to confirm this manually by trying to directly download the backup files with a web browser.

nbluto’s picture

I changed the destination of my /tmp file to sites/all/files/tmp and it fixed it. To do this you have to go to administer--> file system and change the destination of your temp directory. You will have to create this directory on the server first before you point drupal to it.