Default to link-dest on large-file backups #1
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rfinnie/turku-api!1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "spads-spads/main"
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?
We don't use attic for large file backups, and find that link-dest makes a much better default for these.
Leaving snapshot_mode null unless explicitly set by the source was deliberate in my original schema, and I don't think the API should be programatically setting it. (A source's in-db config is basically just a copy of what the agent is sending to it.)
The variable handling of what snapshot mode is picked is already part of turku-storage
process_ping()(which is way too long, ugh; check line ~173). It currently uses mode "none" if eitherlarge_rotating_filesorlarge_modifying_filesare set, if no sourcesnapshot_modeis defined.Switching turku-storage's handling of
large_rotating_filesto link-dest makes sense (but only when combined with --fuzzy from your other PR, which seems fine). However, in my mindlarge_modifying_fileswas envisioned for a situation where, say, you have a source with a 100GB daily database dump. You probably don't want to default to any sort of snapshotting for that (unless you have lots of disk, in which case you could explicitly setsnapshot_mode: link_deston the source).In summary, I think:
snapshot_mode = "none"tosnapshot_mode = "link-dest"forlarge_rotating_fileslarge_modifying_fileslogic shouldn't be changed from defaultsnapshot_mode = "none"(Oh, and BTW, attic mode was removed long, long ago, and everyone was happy)
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.