Akeeba Backup for WordPress

#35320 Exclude backup by file type

Posted in ‘Akeeba Backup for WordPress’
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

WordPress version
PHP version
Akeeba Backup version

Is there a way to exclude pdf documents from backup, particularly in the Uploads folder?/


If not, can this be added as a feature.



Akeeba Staff

Yes. This is what the RegEx File and Directories Exclusion does. The documentation of this feature does in fact include an example for excluding files by type.

Since you want to exclude all PDF files from wp-content/uploads you need to create a new RegEx filter of the type Exclude File with the content


This will match all files with extensions .pdf, .PDF, .Pdf and any other upper- and lowercase combinations of the letters of the PDF extension (remember that for your Linux server the files foo.pdf and foo.PDF are two different files, unlike Windows and most macOS installations).

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!

Thanks Nicholas. I would prefer if there was a non developer type option for file exclusions, but this is fine for now :)


Support Information

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

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!