Backup and migrate does a great job making backups, but I'm having trouble with permissions on my Plesk VPS account. Plesk runs Apache as user "apache", and backup and migrate creates backups owned by "apache" with 600 permissions. This is the default permission of files created by the "tmpname" function. I can't FTP or rsync these files without logging in as root.

I'd like to see the option to chmod the files to an admin-specified mask in the UI. Would you accept a patch to the 2.x branches?

Thanks!

Comments

ronan’s picture

That's not a bad idea, but hold off on the patch if you could. I'm working on a 'filter' system which will be a series of api hooks that will be called pre and post backup and restore. I'm still hammering out the details of this API, but once it's complete, it will make adding import/export features like this easier and cleaner.

criznach’s picture

Ok, if you think of it, please update this issue when the hooks are ready. I'd really like to use backup and migrate for all of my sites, but I need to work around the permissions problem somehow before it will work.

ronan’s picture

Version: 5.x-2.x-dev » 6.x-2.x-dev
Status: Active » Fixed

This is now in the latest 6.x dev. Let me know if you need me to backport it to 5 and I'll see if I can find the time to do so. I'm slowly phasing out 5 support for new features since the demand for the 5.x version seems to be waning.

R

Status: Fixed » Closed (fixed)

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