The backup could not be completed because 1 files could not be read: (public://private).

Created on 18 July 2023, over 1 year ago
Updated 23 March 2024, 9 months ago

I'm on Drupal 9.5.3 and need to clone the site to a development sandbox so that I can to a test (and eventually, final) upgrade to 10.x. Unfortunately, when I try to do a download of the public directory, I get the following:

The backup could not be completed because 1 files could not be read: (public://private).

I'm, stumped here. In web/sites/default/files/private I see several .htaccess files with 444 permissions in several locations, but insofar as the system reports one file, I don't think this is it.

I've never used backup_migrate before (I've always handled things manually), but with all my sites having to migrate to Drupal 10, I'm very anxious to use it - but am dead in the water here. (I don't want to back up to the server in case I run into storage issues - this is a live site.)

Any help greatly appreciated...

πŸ’¬ Support request
Status

Active

Version

5.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States bcobin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bcobin
  • πŸ‡³πŸ‡΄Norway matsbla

    I have the same problem!

  • πŸ‡³πŸ‡±Netherlands Summit

    For me the same problem. Is there a fix?
    greetings,

  • πŸ‡ΊπŸ‡ΈUnited States bcobin

    This looks to have been a permissions issue and my host (Imegeleet.com) was good enough to find a workaround. Note that I was having this issue with Drupal 9 and I haven't yet seen the same thing in Drupal 10.

    Below is what they told me:

    Default "Public Files Directory" option is not working which i suppose will download sites/default/files folder if working, its not pointing to any specific error in PHP logs. I tried resetting permission of all files and folder in installation.

    I added new source for public files specifying public files directory as /[site]/web/sites/default/files naming source as "Public Files Folder", if you use backup source as "Public Backup Folder" and Destination as Download it will work now. You can also use destination as public_files which will store backup on server at /[site]/backups/public which can be downloaded using File Manager. Similarly you can backup any folder even entire site by specifying folder as source.

    To fully restore site or clone it you will need all files from [site] folder, its better to simply backup entire [site] folder by making zip and database backup can be downloaded using this module.

    Hope this helps - good luck!

Production build 0.71.5 2024