surgat: make postgressql backups
This commit is contained in:
parent
0dfbe5e35b
commit
68702a27da
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,5 @@
|
|||
{ config
|
||||
, pkgs
|
||||
, lib
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
|
@ -54,6 +53,13 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
services.postgresqlBackup = {
|
||||
enable = true;
|
||||
backupAll = true;
|
||||
compression = "zstd";
|
||||
location = "/var/backup/postgresql";
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue