Which folders are skipped from a DirectAdmin backup?

Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"

Top Level » DirectAdmin » Backup & Restore Process

Which folders are skipped from a DirectAdmin backup?Last Modified: Apr 2, 2015, 2:00 am
A new feature has been added to DirectAdmin 1.47.1 which allows the User to specify their own paths to skip, voiding the need for the guide below:

There are certain folders within the /home/username directory that will be skipped during the backup procedure.   This is because they would either cause loops (backing up the backup) or for the case that an account is inside a chroot jail and does not need all of the copied binaries and libraries to be included.

The list of skipped folders from the User's home directory is as follows:


Data within these folders (eg: /home/user/var/*) is not included in the backup.   This can be used to your advantage if you wish to have data in the User's home but do not wish to include that data in the backups. You could create a symbolic link to it from within the public_html, for example.


- We have the folder:


- This images folder is very large, and we don't want it to be included in the backups.
- We'll put it in /home/fred/var/images to do this, and link to it.

1) Create the var folder:

cd /home/fred
mkidr var
chown fred:fred var

2) Move the images folder to the var folder

cd /home/fred/domains/domain.com/public_html
mv images ../../../var/

3) Create a link to it from the old location:

ln -s ../../../var/images ./images
chown -h fred:fred images

It's important to ensure that the files/folders are all chowned correctly to the User, else Apache will complain if the link owner does not match the owner of the folder it points to.  This functionality relies on the SymLinksIfOwnerMatch option, which should already be enabled... but if not, add the following to an .htaccess in your public_html folder:

Options +SymLinksIfOwnerMatch

Related Helpfiles
How to setup jailed ssh/cron/php
Backup creation is slow due to large file sizes

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST