aboutsummaryrefslogtreecommitdiff
path: root/exp/exp.sh
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-11-10 01:11:39 +0100
committern-peugnet <n.peugnet@free.fr>2021-11-10 01:11:39 +0100
commit540fcd68c8eda404cc98faa3992ceed43f8901fb (patch)
treed2fcfe0620c1bde24d32aad28dd713bf1180db91 /exp/exp.sh
parent54f7629864c1ccf5b569a065b1b3142025c69838 (diff)
downloaddna-backup-540fcd68c8eda404cc98faa3992ceed43f8901fb.tar.gz
dna-backup-540fcd68c8eda404cc98faa3992ceed43f8901fb.zip
paragraphe de l'export + vraies donnes daily & weekly
Diffstat (limited to 'exp/exp.sh')
-rwxr-xr-xexp/exp.sh9
1 files changed, 9 insertions, 0 deletions
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"