Skip to content

Commit

Permalink
feat: new dump, aside the current one (#7968)
Browse files Browse the repository at this point in the history
new dump, aside the current one
  • Loading branch information
CharlesNepote committed Jan 13, 2023
1 parent 8feeec7 commit bac215c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/mongodb_dump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ cd $DIR

mongoexport --collection products --host $HOST --db $DB | gzip > data/$PREFIX-products.jsonl.gz

mongodump --collection products --host $HOST --db $DB --gzip --archive="data/${PREFIX}-mongodbdump.gz"

mongodump --collection products --host $HOST --db $DB
tar cvfz data/$PREFIX-mongodbdump.tar.gz dump
pushd data/ > /dev/null
sha256sum $PREFIX-mongodbdump.tar.gz > sha256sum
md5sum $PREFIX-mongodbdump.tar.gz > md5sum

sha256sum $PREFIX-mongodbdump.gz > gz-sha256sum
md5sum $PREFIX-mongodbdump.gz > gz-md5sum


# Export delta of products modified in the last 24h or since last run of the script
mkdir -p delta
pushd delta/ > /dev/null
Expand Down

0 comments on commit bac215c

Please sign in to comment.