#!/bin/sh

cd /data/off-fr/html
mongodump --collection products --db off-fr
tar cvfz data/openfoodfacts-mongodbdump.tar.gz dump
sha256sum data/openfoodfacts-mongodbdump.tar.gz > data/sha256sum
md5sum data/openfoodfacts-mongodbdump.tar.gz > data/md5sum

#!/bin/sh

cd /data/off-fr/html
mongodump --collection products --db off-fr
tar cvfz data/openfoodfacts-mongodbdump.tar.gz dump
pushd data/ > /dev/null
sha256sum openfoodfacts-mongodbdump.tar.gz > sha256sum
md5sum openfoodfacts-mongodbdump.tar.gz > md5sum
popd > /dev/null

Change directory to avoid server path to be incuded in the *sum files
Change directory to avoid server path to be incuded in the *sum files
