Support

Akeeba Backup for Joomla!

#29035 Exclude subdirectory

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 screengrafixx on Thursday, 25 January 2018 02:26 CST

screengrafixx
Hi,

I tried to exclude subdirectories with name "source" from backup, but it did not work.

this is an example of the directory tree: /media/showtime/storage/2018/01/19/28/source

this is the filter string I have used: #^media/showtime/(.*)source$# (type: "Skip Subdirectories")


Can you please assist me?

thanks
JO

tampe125
Akeeba Staff
Hello,

I think your regex is correct, can you please remove the ^ from your regular expression?
That should do the trick.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

tampe125
Akeeba Staff
I ran some tests and the filter you have created does work and excludes the subdirectories (but not the files) of the media/showtime/....../source directory.

I believe that you are trying to exclude the entire "source" directories, i.e. both their files and their contents. You should change the type of the filter to "Exclude directory" instead. The "source" directories will not appear in the backup, at all.

If, however, you want to include the "source" directory but not its files or filters -in other words, an empty directory- you need to create two identical filters, one Exclude Subdirectories and one Exclude Contents.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

screengrafixx
Hi Davide,
thanks very much, by changing the type of the filter to "Exclude directory" it worked!

THANKS & REGARDS
JO

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!