Hi,
the module works great through the browser, but when I type drush bam backup I get
Unable to create or write to the save directory [error]
'sites/ollerias/files/backup_migrate/manual'. Please check the file
permissions that directory and try again.
Unable to create or write to the save directory [error]
'sites/ollerias/files/backup_migrate/scheduled'. Please check the
file permissions that directory and try again.
repeated a few times.
Those directories are owned by www-data. They do not have an .htaccess file in them. I upgraded from the stable version of bam.
What permissions should I set the directories at for drush to be able to backup the database, without compromising security?
Cheers.
Comments
Comment #1
ronan commentedI'm no unix file permissions error, but my guess is that the issue is that you are running drush as someone other than the 'www-data' user. The user you are running drush as does not have write permission to those directories and therefore you cannot save the database dumps.
I think the safest way to do this is to put your drush user in the same group as www-data and set group-write permissions on the backup_migrate file directory.
Again, this is not my area of expertise, so consult your friendly neighborhood sysadmin if you need more help setting up permissions properly and safely.
Comment #2
Bobuido commentedNot my area of expertise either really :)
If someone would kindly provide me with some simple steps for Ubuntu I'd really appreciate it
My friendly neighbourhood sysadmin isn't always easy to get hold of
For now I'll have to set aside the power of Drush and go back to clicking on things :)
Comment #3
ronan commentedClosing this in to clean up old tickets. Please reopen if it's still applicable.