Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions mongodb_consistent_backup/Backup/Mongodump/Mongodump.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ def __init__(self, manager, config, timer, base_dir, backup_dir, replsets, shard
with hide('running', 'warnings'), settings(warn_only=True):
self.version = local("%s --version|awk 'NR >1 {exit}; /version/{print $NF}'" % self.binary, capture=True)

if self.can_gzip():
if self.compression() == 'none':
self.compression('gzip')
elif self.compression() == 'gzip':
if not self.can_gzip() and self.compression() == 'gzip':
logging.warning("mongodump gzip compression requested on binary that does not support gzip!")

def can_gzip(self):
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ if [ -d ${srcdir} ]; then
source ${venvdir}/bin/activate

[ ! -d ${pipdir} ] && mkdir -p ${pipdir}
${venvdir}/bin/python2.7 ${venvdir}/bin/pip install --download-cache=${pipdir} pex requests
${venvdir}/bin/python2.7 ${venvdir}/bin/pip install --cache-dir=${pipdir} pex requests
if [ $? -gt 0 ]; then
echo "Failed to install pex utility for building!"
exit 1
Expand Down