|If you see an error similar to the following:|
Error Compressing the backup file user.reseller.user.tar.gz : /bin/tar: domains/domain.com/public_html/tmp/sess_d45bb7726853c683567449c9910b749f: Cannot open: Permission denied
With the strict backup permissions enabled (which they are by default), backups are run as the User.
This means any file that are not readable by the User (eg: apache owned files) must be accounted for in a different manner.
The way DA does this is by figuring out which files are not readable prior to the backup, copying them to a different location (with User ownership) and backing them up that way. The issue is that if you have a system the creates/modifies files on a regular basis, it's possible that the apache owned files are created after DA has done the check, but before the backup is actually created, giving you the error.
There are several different solutions for the issue:
1) Use a php system that runs php scripts as the User, and not apache. These include suPhp, fastcgi, php-fpm, or mod_ruid2+CLI.
Note that php CLI without mod_ruid2 is where php runs as "apache", which is likely what you're already using, giving you this error.
2) Quick/easy option, without changing the php system is to ignore the new files if they cannot be read:
3) The last resort is to disable the strict backup permissions, but this is less secure.
© 2018 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST