5
11
Fork
You've already forked tomato
1

Delete backups older than 1 month #144

Merged
edwardloveall merged 2 commits from el-prune-old-backups into main 2026年05月04日 16:04:27 +02:00

This ensures that we don't have an infinitely growing set up backups, but that we do have a month's worth of work in case we need to recover.

This involved installing SolidQueue. We've been needing background jobs for a while. Pruning database backups seemed like a good time to add it.

This ensures that we don't have an infinitely growing set up backups, but that we do have a month's worth of work in case we need to recover. This involved installing SolidQueue. We've been needing background jobs for a while. Pruning database backups seemed like a good time to add it.
edwardloveall force-pushed el-prune-old-backups from 1eb65b6733 to 32ff61b200
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年04月16日 19:38:31 +02:00
Compare
thetizzo left a comment
Copy link

Looks good! Other than cleaning up the puts in the cleanup job this one is gtg.

Looks good! Other than cleaning up the `puts` in the cleanup job this one is gtg.
@ -0,0 +26,4 @@
.map { {key: it.key, version_id: it.version_id} }
puts "removing the following #{deletable.count} backups:"
puts deletable.map { it[:key] }
First-time contributor
Copy link

I think it's a good idea use the logger here if you want to keep this output.

I think it's a good idea use the logger here if you want to keep this output.
@ -0,0 +133,4 @@
t.index ["expires_at"], name: "index_solid_queue_semaphores_on_expires_at"
t.index ["key", "value"], name: "index_solid_queue_semaphores_on_key_and_value"
t.index ["key"], name: "index_solid_queue_semaphores_on_key", unique: true
end
First-time contributor
Copy link

Didn't realize solid queue used 11 tables!! 🤯

Didn't realize solid queue used 11 tables!! 🤯
edwardloveall force-pushed el-prune-old-backups from 32ff61b200
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
to 96f1c18a93
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年05月04日 15:34:11 +02:00
Compare
edwardloveall deleted branch el-prune-old-backups 2026年05月04日 16:04:31 +02:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rootable/tomato!144
Reference in a new issue
rootable/tomato
No description provided.
Delete branch "el-prune-old-backups"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?