diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-10-19 14:21:15 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-10-19 14:21:15 +0200 |
commit | 157e94222bc72ebc27a05f694ca8e9558435ab5a (patch) | |
tree | 02e6f982ab5a4093f78a848daf3cd8d1bb4e0cbf /exp/exp.sh | |
parent | e79080490330a0c7d36bd85935c04200c63aa185 (diff) | |
download | dna-backup-157e94222bc72ebc27a05f694ca8e9558435ab5a.tar.gz dna-backup-157e94222bc72ebc27a05f694ca8e9558435ab5a.zip |
update scripts and README
Diffstat (limited to 'exp/exp.sh')
-rwxr-xr-x | exp/exp.sh | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |