def compress(path, compress_tar_file)
      Mongolicious.logger.info("Compressing database #{path}")

      system("cd #{path} && tar -cpf#{compress_tar_file ? 'j' : ''} #{path}.tar.bz2 .")
      raise "Error while compressing #{path}" if $?.to_i != 0

      # Remove mongo dump now that we have the bzip
      FileUtils.rm_rf(path)

      return "#{path}.tar.bz2"
    end
def compress(path, compress_tar_file)
      Mongolicious.logger.info("Compressing database #{path}")

      system("cd #{path} && tar -cpf#{compress_tar_file ? 'j' : ''} #{path}.tar.bz2 .")
      raise "Error while compressing #{path}" if $?.to_i != 0

      # Remove mongo dump now that we have the bzip
      FileUtils.rm_rf(path)

      return "#{path}.tar.bz2"
    end
Initialize a ne Filesystem object.

 @return [Filesytem]
 Compress the dump to an tar.bz2 archive.

 @param [String] path the path, where the dump is located.

 @return [String]