IS_EVOBACKUP_EXCLUDE_MOUNT with new version of evobackup #148
Labels
No Label
bug
bullseye
discussion
duplicate
enhancement
help wanted
invalid
question
suggestion
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: evolix/evocheck#148
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Withe th enew version of evobackup and the way we declare excludes, evocheck can't verify that mount-points are excluded.
Hey, I've got some ideas to fix this issue.
Firstly, I think we should use command sed because, here, we try to capture all values of variable "RSYNC_EXCLUDES" and sed can do it like on this example below :
sed -n '/RSYNC_EXCLUDES="/,/"/p' "${evobackup_file}
Above, we can see that sed catch content between RSYNC_EXCLUDES=" and the last " moreover /p will print all of this content, even the beginning and the ending of the variable.
To only obtain the content of this variable, we will add a new command sed which will delete on the output the beginning and the ending.
sed -n '/RSYNC_EXCLUDES="/,/"/p' "${evobackup_file}
| sed '1d;$d'Secondly, I was thinking, how can we add this command on the function check_evobackup_exclude_mount :
Minus 3. Idea of version can be complicated because there is some server which have script zzz_evobackup which hasn't a variable version
Hope, this idea will help to solve this issue.