mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 18:19:09 +00:00
hosts/plover: fix Gitea dump cleanup
This commit is contained in:
parent
ef0d3d92cd
commit
dd1b2b0638
@ -115,7 +115,8 @@ in
|
||||
# with 2 dumps.
|
||||
systemd.services.gitea-dump.preStart = lib.mkAfter ''
|
||||
${pkgs.findutils}/bin/find ${lib.escapeShellArg config.services.gitea.dump.backupDir} \
|
||||
-mtime 14 -maxdepth 1 -type f -delete
|
||||
-maxdepth 1 -type f -iname '*.${config.services.gitea.dump.type}' -ctime 21 \
|
||||
| tail -n -3 | xargs rm
|
||||
'';
|
||||
|
||||
# Making sure this plays nicely with the database service of choice. Take
|
||||
|
Loading…
Reference in New Issue
Block a user