Support

Akeeba Backup for Joomla!

#19326 RegEx Directory Exclusion

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by jayrigby on Tuesday, 25 February 2014 03:30 CST

jayrigby
Description of my issue:

Hi there,

I have a very large backup at the moment, the cause of this is a large number of source images in K2 articles. So I decided to exclude all the src directories containing large original jpgs from the backups.

I have selected my default profile and chosen RegEx Files and Directories Exclusion

From here I have added a new filter for:

Exclude Directory #/\src$#

The src directories are located in many subdirectories of media/k2/galleries/###/src

My intention is to exclude all src directories and their contents from the backup.

Unfortunately, once the backup has completed the directories and files have not been excluded.

Am I missing something?

I tried excluding all .jpg files with:

Exclude files #\.jpg$#i

And it works perfectly.

How come there is an issue with the directories?

Really appreciate your help.

Best wishes,
Jay

nicholas
Akeeba Staff
Manager
The directory exclusion filter should read:
#/src$#
as the path separator internally used by PHP is the UNIX one (forward slash). Actually, Windows DOES understand the forward slash as a path separator! It always did. Even MS-DOS did. There are historical reasons why MS-DOS and Windows ended up using the backslash as the default path separator, but the UNIX separator was never dropped. Google it :)

Anyway. I believe that your approach is not the correct one. We now have a better solution in Akeeba Backup 3.10.x (you need to upgrade to 3.10.1). Go to the Configuration page. In the File Scanner drop-down select the "Large Site Scanner". It has a better chance to work without excluding the src directories from your site.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jayrigby
Thanks Nicholas,

That did the trick - the backup is 400mb+ smaller now!

I tried your suggestion with the .1 update and the Large Site Scanner - but strangely enough the backup increase in size....

Thanks for the fast reply and your help. Excellent component!

Best wishes,
Jay

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!