diff --git a/site-modules/profile/files/kopia-backup b/site-modules/profile/files/kopia-backup index 331c09fd..fecbf8c5 100755 --- a/site-modules/profile/files/kopia-backup +++ b/site-modules/profile/files/kopia-backup @@ -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}"