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.
Sunday, 30 May 2021 20:55 CDT
[email protected]

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


If not, can this be added as a feature.



Custom Fields

WordPress version (in x.y.z format) 5.7.0
PHP version (in x.y.z format) 7.4.0
Akeeba Backup version (x.y.z format) 5.8.0
Monday, 31 May 2021 02:50 CDT

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

Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Thursday, 03 June 2021 02:16 CDT
[email protected]

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


This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

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!