aboutsummaryrefslogtreecommitdiff
path: root/exp/exp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'exp/exp.sh')
-rwxr-xr-xexp/exp.sh10
1 files changed, 10 insertions, 0 deletions
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