diff options
author | Jochen Topf <jochen@topf.org> | 2014-05-13 22:50:24 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-05-13 22:50:24 +0200 |
commit | 61324f3d2933767890ce0c95c5e220b3c91b72ec (patch) | |
tree | 58bd6b28ee81330f71daaf242f149363a2c232c3 /sources | |
parent | e8bd31b15ee35d4089d5fbd1a865ad9dc4abaaa4 (diff) | |
download | taginfo-61324f3d2933767890ce0c95c5e220b3c91b72ec.tar taginfo-61324f3d2933767890ce0c95c5e220b3c91b72ec.tar.gz |
Do packing of databases with bzip2 in parallel.
Diffstat (limited to 'sources')
-rwxr-xr-x | sources/update_all.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sources/update_all.sh b/sources/update_all.sh index fd698b8..2b01dcc 100755 --- a/sources/update_all.sh +++ b/sources/update_all.sh @@ -71,16 +71,16 @@ cd master ./update.sh $DIR cd .. +echo "=====================================" +echo "`$DATECMD` Running bzip2 on all databases..." for source in $SOURCES_CREATE; do - echo "=====================================" - echo "Running bzip2 on $source..." - bzip2 -9 -c $DIR/$source/taginfo-$source.db >$DIR/download/taginfo-$source.db.bz2 - echo "Done." + bzip2 -9 -c $DIR/$source/taginfo-$source.db >$DIR/download/taginfo-$source.db.bz2 & done +sleep 5 # wait for bzip2 on the smaller dbs to finish +bzip2 -9 -c $DIR/taginfo-master.db >$DIR/download/taginfo-master.db.bz2 & +bzip2 -9 -c $DIR/taginfo-search.db >$DIR/download/taginfo-search.db.bz2 & -echo "Running bzip2..." -bzip2 -9 -c $DIR/taginfo-master.db >$DIR/download/taginfo-master.db.bz2 -bzip2 -9 -c $DIR/taginfo-search.db >$DIR/download/taginfo-search.db.bz2 +wait echo "Done." echo "=====================================" |