From 540fcd68c8eda404cc98faa3992ceed43f8901fb Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Wed, 10 Nov 2021 01:11:39 +0100 Subject: paragraphe de l'export + vraies donnes daily & weekly --- exp/Makefile | 2 +- exp/exp.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'exp') diff --git a/exp/Makefile b/exp/Makefile index 673b1b0..70682f2 100644 --- a/exp/Makefile +++ b/exp/Makefile @@ -50,7 +50,7 @@ GITC := git -C $(REPO_PATH) SPACE := $() $() DNADIRS := $(DNA_4K) $(DNA_8K) DNAEXPORT := $(DNADIRS:%=%_export) -DATADIRS := $(DNADIRS) $(DNAEXPORT) $(DIFFS) $(NOPACK) $(BORG) $(TARGZ) $(REAL) +DATADIRS := $(DNAEXPORT) $(DIFFS) $(NOPACK) $(BORG) $(TARGZ) $(REAL) SIZEFILES := $(DATADIRS:%=%.size) SUMMARY := summary.$(RANGE).$(MAX_VERSION) diff --git a/exp/exp.sh b/exp/exp.sh index 10d6cc8..8026304 100755 --- a/exp/exp.sh +++ b/exp/exp.sh @@ -56,6 +56,15 @@ then # Init borg dir borg init -e none $BORG fi +if [ -n "$DNA_PARAMS" ] +then + # Clean dna backups for this version + while read name flags + do + rm -rf $name + done < $DNA_PARAMS +fi + # "empty tree" commit prev="4b825dc642cb6eb9a060e54bf8d69288fbee4904" -- cgit v1.2.3