Override files in rotating gitea dump service

Reviewed-by: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
This commit is contained in:
2026-03-05 11:12:26 +01:00
committed by Rodrigo Arias Mallo
parent 2654b9fdd9
commit 56ab099017

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"
'';
};