From 157e94222bc72ebc27a05f694ca8e9558435ab5a Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Tue, 19 Oct 2021 14:21:15 +0200 Subject: update scripts and README --- exp/exp.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'exp/exp.sh') diff --git a/exp/exp.sh b/exp/exp.sh index e8f6bd7..6071a46 100755 --- a/exp/exp.sh +++ b/exp/exp.sh @@ -130,6 +130,16 @@ do do log "create $name backup for this version" $DNA_BACKUP commit -v 2 $flags $REPO_PATH $name + + log "create $name export for this version" + export=/tmp/dna-backup-exp-export + rm -rf $export + $DNA_BACKUP export -v 2 $flags $name $export + find $export -type f -exec du -ba {} + \ + | cut -f1 \ + | paste -sd+ \ + | bc \ + > $(printf "%s_export.versions/%05d" $name $i) done fi -- cgit v1.2.3