aboutsummaryrefslogtreecommitdiff
path: root/exp/exp.sh
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-10-19 14:21:15 +0200
committern-peugnet <n.peugnet@free.fr>2021-10-19 14:21:15 +0200
commit157e94222bc72ebc27a05f694ca8e9558435ab5a (patch)
tree02e6f982ab5a4093f78a848daf3cd8d1bb4e0cbf /exp/exp.sh
parente79080490330a0c7d36bd85935c04200c63aa185 (diff)
downloaddna-backup-157e94222bc72ebc27a05f694ca8e9558435ab5a.tar.gz
dna-backup-157e94222bc72ebc27a05f694ca8e9558435ab5a.zip
update scripts and README
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