Hi,

I'm trying to import my Drupal site into a svn repository. When the import gets to the backed up sql files it dies due to a permission denied error. Ideally I'd like to be able to add the sql backups to subversion which gives me a way to store versions of my database. Is there a way to allow the backup migrate module to restrict public access to the sql files, but allow svn to import the files to the repository? I did some searching but couldn't any answers. I'm guessing this is either really easy or really hard, which would explain why there isn't much info about this.

Thanks in advance!

Comments

neyoung’s picture

In the #drupal-support irc channel dekita pointed me in the right direction to get this working. The backup sql files are owned by the apache user. In my case _www. If I chowned the backups to myself then I'm able check the backups into svn. Ideally I'd like to somehow change the owner of these files automatically. dekita recommended looking into hook_chron http://api.drupal.org/api/function/hook_cron/6. I'll post more info if I get a automated solution to work.

asak’s picture

Did you? ;)

ronan’s picture

Status: Active » Fixed

The latest 6.x-2.x branch supports changing file permissions after save. I'm going to mark this as fixed as that should do what you need. If you need this backported to 5.x let me know.

Status: Fixed » Closed (fixed)

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