Support

Akeeba Backup for Joomla!

#35370 How to skip files in a directory and its subdirectories older than a certain date?

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 on Thursday, 15 July 2021 20:17 CDT

gba

Hi!

On this page I found the description of how to exclude/skip data from backup:
https://www.akeeba.com/documentation/akeeba-backup-documentation/exclude-data-from-backup.html

And here I found infos on how to exclude/skip data using RegEx:
https://www.akeeba.com/documentation/akeeba-backup-documentation/regex-files-directories-exclusion.html

How can IΒ skip files (ideally using RegEx) older than a certain date in a directory and its subdirectories?
Thank you very much in advance for your valuable help!

Kind regards,
Gerald

nicholas
Akeeba Staff
Manager

There is no such feature. You could have two backup profiles, though. One would back up the entire site without the folder. The other would only back up the folder and have the date filter applied to it. Without knowing more about the use case I can't tell you if it is a convenient method for what you're trying to achieve, though.

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!

gba

Hi!
Thank you very much for your quick reply!
I am sorry, I expressed myself a bit misleadingly:
I did not mean files older than a certain date, but files older than a certain time period (i. e. 3 years, 5 months or 13 days).
How can I skip such files?
Kind regards,
GeraldHi!
Thank you very much for your quick reply!
I am sorry, I expressed myself a bit misleadingly:
I did not mean files older than a certain date, but files older than a certain time period (i. e. 3 years, 5 months or 13 days).
How can I skip such files?
Kind regards,
Gerald

nicholas
Akeeba Staff
Manager

You can't. There is no such feature. At best you could do the two backup profiles approach I explained with the second profile being of the Incremental Files Only backup type but it's still not quite what you seem to be looking for. It is, however, something which does work with most use cases where someone asked something like you did, e.g. a large media folder with a lot of historic content that doesn't get modified after it's created and doesn't make sense to be backing up in every singe backup.

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!

gba

Hi!
Thank you very much for that approach - it sounds very good and I will give it a try.
Kind regards,
Gerald

nicholas
Akeeba Staff
Manager

You're welcome!

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!