Support

Akeeba Backup for Joomla!

#32888 Backup specific directory only

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 Saturday, 23 May 2020 17:17 CDT

Ch3vr0n
One of the new sites i'm developing and m using ABP on needs video content. Currently these are added automatically to the default backup profile. These videos are stored in <siteroot>/images/videos. I know i can exclude directories from the main backup profile but i'm not entirely sure what i need to do for the following

* exclude the /images/videos folder from the main backup profile (so the backup size is significantly reduced, a single backup currently runs 1.7GB), pretty big for a daily cron task
* create a new profile that backups ONLY the /images/videos folder (and configure ABP so those types of backups, which i plan to run once a week via cron) only retain 1 backup and no more

Kind regards, and i hope everyone is safe from corona there!

tampe125
Akeeba Staff
Hello,

there isn't an option such as "Include only specific files", that's by design, since you want to include new folders/files that will be created in the future.
However, what you can do, is to exclude everything except such folder, so everything will be skipped until we get into that folder. You can easily do that by selecting all folders in the root directory.
Let me know if that works for you.

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!

Ch3vr0n
I did find a backup type option "Site files only" under Basic configuration don't know if that's very different, but combining that with excluding all root folder (minus the /images one) and excluding all folders except the /videos one in it i pretty much achieved success.

Main profile: normal backup type but /images/videos is excluded > results in a "normal" backup size of around 230MB
Videos profile: backup type: "site files only", All directories exclude except the specific /images/videos one results in a backup of 1.5GB.

Those 2 sizes combined account for the previous 1.7GB so looks like everything is peachy :)

tampe125
Akeeba Staff
Yes, you're right, I forgot to specify to use the Site Files Only backup type.
It does exactly what it says: the backup will include only files, skipping the database.

I'm glad everything is working for you, feel free to open a new ticket if you need further assistance.

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!

Ch3vr0n
Is there anything i need to check / configure profile wise to do the following

Daily backup via cron (obviously at the server level cron command) but:

Default profile (dailies), retain only 1 obsolete entry. Max 30 (+1 obsolete) in total
video's profile (weekly), retain only 1 obsolete entry, Max 1 obsolete entry in total.

tampe125
Akeeba Staff
You have to create two different profiles (like you already did) and set quota management for both of them.
You can find more details here: https://www.akeebabackup.com/documentation/akeeba-backup-documentation/configuration.html#quota-management

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!

Ch3vr0n
that solves tha problem then. Thanks!

tampe125
Akeeba Staff
You're welcome!

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!

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!