)]}'
{"playbooks/roles/borg-backup-server/files/prune-borg-backups.sh":[{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"ce5d7c2291e5d586178dd8d8023da90fb9934ffa","unresolved":true,"context_lines":[{"line_number":57,"context_line":"    do"},{"line_number":58,"context_line":"       echo \"| $(date) - archive ${prefix}\""},{"line_number":59,"context_line":"      /opt/borg/bin/borg prune --prefix ${prefix} ${BORG_OP} --verbose --list --show-rc ${_prune_flags}"},{"line_number":60,"context_line":"      /opt/borg/bin/borg compact ${BORG_REPO}"},{"line_number":61,"context_line":"    done"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    echo \"| $(date) done!\""}],"source_content_type":"text/x-sh","patch_set":1,"id":"b2b1863d_e6577e1d","line":60,"updated":"2026-08-04 15:16:14.000000000","message":"Borg compact was introduced in borg 1.2. Prior to that pruning automatically compacted at the end of its run and there was no separate compact command. This explains the change in behavior we saw.\n\nIt also means that this change will break pruning on the older backup servers. Maybe we need to check the version before compacting or check if the command is present? Otherwise I think this change is great thanks.","commit_id":"e578d554a67628daa5b1eaeb3097104c56bf7578"}]}
