BoldGrid / boldgrid-backup

The Total Upkeep plugin.
GNU General Public License v2.0
11 stars 9 forks source link

[Feature] Skip writing 0-byte files on restoration #531

Open jessecowens opened 2 years ago

jessecowens commented 2 years ago

Is your feature request related to a problem? Please describe. In certain cases, like GoDaddy Managed WordPress, core files are owned by root. This leads to a backup file containing 0-byte core files, which fatally fails to restore upon restoration.

Describe the solution you'd like Detect files that had no "read" permissions on backup, and skip writing them on restoration.

Describe alternatives you've considered The user can manually exclude files and folders to which they don't have permission, but if the host ever changes which files aren't owned by the user, restorations will fatally fail on those files.

Additional context This feature came from user feedback in the WordPress.org forums