/var/backup/postgresql is not on persistent data #259

Closed
opened 2024-05-11 10:46:25 +01:00 by JakeHillion · 0 comments
Owner

This is the intermediate store before getting backed up with restic. I don't think having this on tmpfs creates any correctness issues because the real data is on the remote, but it does use ~7GiB of valuable tmpfs space that will only grow over time.

Perhaps it makes sense to put some explicit directories in a non-tmpfs root that gets set back to zero? We could add a subvolume like /data/current-boot that gets reset to an empty snapshot each boot but otherwise stores data on the SSD, as an extension to the tmpfs. This would feel nicer than replacing the tmpfs with an empty snapshot while bringing the benefits of larger space for specific files/directories. It would be a particular improvement if these sql dumps were on a compressed filesystem, though tmpfs+zram swap does poorly emulate this.

This is the intermediate store before getting backed up with `restic`. I don't think having this on `tmpfs` creates any correctness issues because the real data is on the remote, but it does use ~7GiB of valuable `tmpfs` space that will only grow over time. Perhaps it makes sense to put some explicit directories in a non-tmpfs root that gets set back to zero? We could add a subvolume like `/data/current-boot` that gets reset to an empty snapshot each boot but otherwise stores data on the SSD, as an extension to the `tmpfs`. This would feel nicer than replacing the `tmpfs` with an empty snapshot while bringing the benefits of larger space for specific files/directories. It would be a particular improvement if these sql dumps were on a compressed filesystem, though tmpfs+zram swap does poorly emulate this.
JakeHillion added the
bug
label 2024-05-11 10:46:25 +01:00
Sign in to join this conversation.
No Label
bug
feature
No Milestone
No project
No Assignees
1 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: JakeHillion/nixos#259
No description provided.