Override files in rotating gitea dump service

This commit is contained in:
2026-03-05 11:12:26 +01:00
parent 768a717a8b
commit 83579c729a

View File

@@ -55,7 +55,9 @@
};
script = ''
${exe} dump --type ${cfg.dump.type} --file "gitea-dump-$(date +%a).${cfg.dump.type}"
name="gitea-dump-$(date +%a).${cfg.dump.type}"
${exe} dump --type ${cfg.dump.type} --file - >"$name.tmp"
mv "$name.tmp" "$name"
'';
};