fix/backup-cleanup #1
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/backup-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mit verbesserungsvorschlag
@ -0,0 +10,4 @@[](let [{:keys [retention-days execution-directory]} (:prom-file-config config)snapshot_dir (str execution-directory "snapshots")cmd (str "find " snapshot_dir " -mindepth 1 -maxdepth 1 -mtime " retention-days " -type d -exec rm -rf {} \\;")]wir könnten hier auch
Damit könnten wir die komplizierte logik (parsen / filtern) testen.
Yes stimmt das macht sinn
@ -0,0 +15,4 @@(try(clean-up-prom-snapshots!)warum brauchen wir hier ein try catch ?
Ich dachte falls was beim Löschen schief geht aber vielleicht ist das auch überflüssig
@ -1,4 +1,4 @@FROM domaindrivenarchitecture/dda-backup:5.5.1FROM domaindrivenarchitecture/dda-backup:5.7.0hast du die refactoring übersicht in c4k-common upgedated ?
Oh ne das muss ich noch machen
Eine Frage, sonst gut
@ -0,0 +1,49 @@#!/usr/bin/env bbda brauchen wir hier nicht, ich vermute mal functions sollen nicht executable sein ?
@ -0,0 +37,4 @@(defn remove-files)))funktioniert das mit directories ?