Files to include

Dennis Hermannsen shared this idea 6 years ago
Completed

There's a feature to exclude files, but not include files.

Let's say I want to exclude all folders starting with /cache/ - except the directory /public_html/app/cache/.


There's no way to do this at the moment without listing _all_ cache directories manually.

Replies (6)

photo
25

Hi,


Thank you for your feedback.


In JetBackup 3.3 we add the ability to include and exclude directories.

JetBackup 3.3 is on edge tier at this moment.


Thanks,

JetApps team.

photo
19

Hi,


This was implemented on stable tier as well :)


Thanks,

JetApps team.

photo
24

How do we setup an include filter?

photo
22

I don't really understand how it works. As far as I understand, this lets us choose whether or not to backup an account. It's not what we want - we want to backup all accounts, and always include some files.


Let's say we have a filter that excludes */cache - this exludes every folder called /cache.

But, if we want to also include /public_html/app/cache, we have a problem since this is excluded.


Have I misunderstood how this works?

photo
19

Hey,


There is no way, at this moment, to include specific folder, in a accounts backup job, for several reasons - the primary reason is security.

Although, there is several solutions for your request :

1. You can exclude the specific cache folders and not exclude the required folder.

2. We are using the Linux Glob for the exclude patterns - you can build a pattern that exclude \ include the folders for your own needs.

3. You can create a Directories backup job and backup the specific cache folders - you can schedule this job to run right after the accounts backup job.

4. You can use the Hooks engine to manipulate the specific required cache directory - before and after backup job or even before and after a specific account backup.


For more guidance, you are more then welcome to open a support ticket.


Regards,

Ofir - JetApps Team.

Leave a Comment
 
Attach a file