Unable to create backup file in 5.4.1.1.

Permalink
I need to upgrade a site, but I'm getting the following error message when trying to backup via the Dashboard.

"Unable to create backup file: dbu_1341419544.sql"

I've had a look through the forums and am guessing it's a permissions issue? I've taken the following steps so far: Changed CHMOD to 777 on files; libraries; updates; and tmp. Also, there was no trash folder inside files, so I created that. Not getting anywhere.

I have created a backup of the Database from phpMyAdmin, but want this to also work via the Dashboard.

What should I try next?

Thanks, Karen

grovesk
View Replies: View Best Answer
jero replied on at Permalink Reply
jero
What are the permissions on files/backups? Who is the owner/group of that folder? Do you have a files/backup folder?
grovesk replied on at Permalink Reply
grovesk
I do have that folder but just noticed that the current permissions (755) won't save as 777.

Can't CHMOD with FTP or cPanel. I'm not sure what the problem is.. this is a hosting company I use a lot. Have sent a support ticket to my host but any other ideas?

Also, can you explain what you mean by "who is the owner/group of that folder"? Are you asking if I'm logged into FTP/cPanel as super admin?

Thanks, Karen
grovesk replied on at Permalink Reply
grovesk
UPDATE. It was file ownership issue with my host, (ownership was assigned to 'nobody'). Once they fixed that I was then able to create a backup and upgrade the site with 755 as my file permissions.

Good thing to check on if you run into unexplained problems.
jero replied on at Permalink Best Answer Reply
jero
GLad it's all sorted.

In Unix.Linux, a file has three sets of permissions, owner, group and other. These are typically expressed as rwx-rx-rx or rw-r--r- or 755 644 etc indicating read, write and execute/access. However that's not the full story because the owner of the file, which must be a linux account also needs to be set as does the group. As you've discovered, there's a difference between "nobody", the user that the web server runs as, and the user you have been assigned that you'll use when you upload files.
grovesk replied on at Permalink Reply
grovesk
Great. Thanks for the background info. Always good to understand these situations.

Karen