fixed forgejo dump
This commit is contained in:
@@ -78,10 +78,11 @@
|
|||||||
oauth2.JWT_SECRET = lib.mkForce config.sops.secrets."forgejo/jwt_secret".path;
|
oauth2.JWT_SECRET = lib.mkForce config.sops.secrets."forgejo/jwt_secret".path;
|
||||||
server.LFS_JWT_SECRET = lib.mkForce config.sops.secrets."forgejo/lfs_jwt_secret".path;
|
server.LFS_JWT_SECRET = lib.mkForce config.sops.secrets."forgejo/lfs_jwt_secret".path;
|
||||||
};
|
};
|
||||||
# dump = {
|
dump = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# interval = "12h";
|
type = "tar";
|
||||||
# };
|
interval = "*-*-* 00/12:00:00";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
postgresql = {
|
postgresql = {
|
||||||
@@ -90,6 +91,14 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# https://forgejo.org/docs/latest/admin/command-line/#dump
|
||||||
|
systemd.services.forgejo-dump.serviceConfig.ExecStart = lib.mkForce ''
|
||||||
|
${lib.getExe config.services.forgejo.package} dump --verbose \
|
||||||
|
--type ${config.services.forgejo.dump.type} \
|
||||||
|
--database postgres \
|
||||||
|
--work-path ${config.services.forgejo.dump.backupDir}
|
||||||
|
'';
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
let
|
let
|
||||||
systemctl = lib.getExe' pkgs.systemd "systemctl";
|
systemctl = lib.getExe' pkgs.systemd "systemctl";
|
||||||
|
|||||||
Reference in New Issue
Block a user