Revolving around the core of technology
I have 30+ environments of the same website in a folder, each with their own data folder containing uploaded files:
Websites
Alpha
bin
css
data
Beta
bin
css
data
...
In the files/folders to backup, I selected the website folder. How do I specify the selection filter so that only the data folders get backed up? I expect to add more environments in the future and I don't want to manually have to select the data subfolder every time I do that. I have already tried the following:
*/data/*
*/data/
data/
Websites/*/data/
But none of these filters seem to work.
Hi,
A better filter to write in such a scenario is an "exclusion" filter rather than "inclusion". This means rather than including the "data" folder, try excluding "bin" and "css" using the following syntax:
^bin/|^css/
I say this because Syncrify navigates through the folder tree using these filters. For example, it starts /var/wwwroot/Websites . It will only find "Alpha" and "Beta" in that folder, which does not match with "data". Since neither match, it will not go any further, and nothing will get transferred.
Inclusion filters are better if you only want to transfer a single file type, such as *.png. They don't work well with folders.
Hope this helps.