validate-backup-config: fix detection of borg in scripts

Authored by nalvarez on Mar 10 2019, 3:31 AM.

Description

validate-backup-config: fix detection of borg in scripts

The validator was detecting a backup script as using borg if it had a line
starting with "borg create". However, another possible pattern is
"mysqldump -options | borg create" and that wasn't detected.

Check lines starting with "borg" instead. That way "borg prune" calls will
match too.

Details

Committed
nalvarezMar 10 2019, 3:31 AM
Parents
R897:7fcb25ff4f28: Ensure mimi has borg installed
Branches
Unknown
Tags
Unknown