Skip to content

Commit

Permalink
Only match hostname at start of line (part 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergwyn committed Oct 31, 2024
1 parent f2d9f5a commit af5fa36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site-modules/profile/files/kopia-backup
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ for repo in ${REPOS} ; do
while read host snap ; do
log_info "Creating snapshot ${snap} in ${repo} for ${host}"
kopia snapshot create ${ARGS} "${snap}" 2>&1 | grep -v 'unknown or unsupported entry type'
done< <( kopia snapshot list --json --max-results=1 | jq -r '.[] | "\(.source.host) \(.source.path)"' | grep $(hostname))
done< <( kopia snapshot list --json --max-results=1 | jq -r '.[] | "\(.source.host) \(.source.path)"' | grep "^$(hostname) ")

day_of_week=$(date +%u)
log_debug "day_of_week is ${day_of_week}"
Expand Down

0 comments on commit af5fa36

Please sign in to comment.