Giter Site home page Giter Site logo

Compression of dumps about deployotron HOT 3 OPEN

reload avatar reload commented on September 27, 2024
Compression of dumps

from deployotron.

Comments (3)

kasperg avatar kasperg commented on September 27, 2024

Does this require much more than adding --gzip when running sql-dump?

from deployotron.

xendk avatar xendk commented on September 27, 2024

That would compress it, yes, but then omg would break: https://github.com/reload/deployotron/blob/master/deployotron.actions.inc#L826. Secondly it would make #10 more difficult (tailing an uncompressed file is so much more effective).

One way of fixing this and working #10 into it without wasting the diskspace would be to drop --result-file and pipe the dump though awk or sed with a small script that simply prints a magic message to stderr when seeing the "dump completed" line and piping it's output directly to gzip. Then #10 would be fixed by checking that the command outputted the proper magic message, and we'd have a compressed dump.

from deployotron.

xendk avatar xendk commented on September 27, 2024

Actullly, after careful reading of both master and 6.x branch of Drushs implementation of sql-dump, it turns out that run gzip as an extra command on the file afterwards. They only pipe directly to gzip when not using result-file.

So basically, doing the dump, checking the file for completeness and then gzipping isn't worse off that what it's currently doing.

from deployotron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.