diff --git a/roles/backup/templates/s3backup.sh b/roles/backup/templates/s3backup.sh index 9b373c2..7f96634 100644 --- a/roles/backup/templates/s3backup.sh +++ b/roles/backup/templates/s3backup.sh @@ -39,8 +39,7 @@ DIRS+=("{{ item }}") if command -v ostree > /dev/null 2>&1; then for file in $( ostree admin config-diff 2>/dev/null | \ - grep -e '^[A|M]' | \ - awk '{print $2}' + grep -oP '^[A|M]\s*\K.*' ); do DIRS+=("/etc/$file") done