Exclude paths from admin backups

cbolt

Verified User
Joined
Feb 6, 2008
Messages
28
Hi, I'm having an issue with admin backups and hope someone can help out please.

Is there a way to exclude certain paths from backups created using the "Admin Backup/Transfer" tool?
I tried adding a /home/username/.backup_exclude_paths as described here https://www.directadmin.com/features.php?id=1737 but that didn't do anything at all.
So I assume it only works for backups that the user creates and I need to add this to the backups created by admin.

Reason for this is that when my backups run each night I regularly get an email saying that an error occurred, and it is usually an issue with just a couple of customers who's sites have a tmp folder that stores cache or session data. The data in these folders either changes during the backup process or has permissions DA can't access (such as apache 700).

I was hoping to simply exclude these folders from the backup since it is not necessary to backup their temporary cache or session data.

I see errors such as:

Error Compressing the backup file user.reseller.username.tar.gz : /bin/tar: domains/domain.com/public_html/files/tmp/sess_91eab66cf1bafadb64431f6cf900dd87: Cannot open: Permission denied
/bin/tar: Exiting with failure status due to previous errors

Error copying /home/username/domains/domain.com/public_html/silverstripe-cache/apache/cache/zend_cache---cacheblock01b6bf5e64f35e69aa81aa8020daf2adeffce355_693c7dcc84ed202065baf3153db86fbd909ec4b4_a36f271685d4397de82b129fd73f8bbb45996e8b_1 to /home/adminuser/admin_backups/username/non_readable_files/domain.com/public_html/silverstripe-cache/apache/cache/zend_cache---cacheblock01b6bf5e64f35e69aa81aa8020daf2adeffce355_693c7dcc84ed202065baf3153db86fbd909ec4b4_a36f271685d4397de82b129fd73f8bbb45996e8b_1: lstat(/home/username/domains/domain.com/public_html/silverstripe-cache/apache/cache/zend_cache---cacheblock01b6bf5e64f35e69aa81aa8020daf2adeffce355_693c7dcc84ed202065baf3153db86fbd909ec4b4_a36f271685d4397de82b129fd73f8bbb45996e8b_1): No such file or directory

Any help or suggestions would be much appreciated.
 
Back
Top