I have a folder like this:
dir 2020-10-16
dir 2020-10-17
dir 2020-10-18
symlink latest -> 2020-10-18
in my filters file, I have this:
+latest
+latest/
+latest/*
-*
I want to backup ONLY the most recent folder (the symlink called latest points to it)
However, it backs up nothing, because 2020-10-18 (or whatever latest points to) is excluded by -*
So, now I’m using a script to modify filters file before every run to specifically backup whatever the newest folder is.
Is there a better way to go about this?