Skip to content

Commit

Permalink
Merge #444: haumea/zrepl: create pg checkpoint before taking snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Jun 18, 2024
2 parents 1925a5a + dec2501 commit 3c0a589
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions delft/haumea/zrepl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
type = "periodic";
interval = "15m";
prefix = "zrepl_snap_";
hooks = [ {
# https://zrepl.github.io/master/configuration/snapshotting.html#postgres-checkpoint-hook
type = "postgres-checkpoint";
dsn = "host=/run/postgresql user=root sslmode=disable";
filesystems."rpool/safe/postgres" = true;
} ];
};
pruning = {
keep_sender = [
Expand Down

0 comments on commit 3c0a589

Please sign in to comment.