#front-matter #archive #id #empty #ghost #quote #false #zola

bin+lib ghost2zola

Migrate a self-hosted Ghost blog's content to Zola

1 unstable release

0.1.0 Oct 24, 2020

#1613 in Web programming

MIT license

802 lines

ghost2zola: migrate a ghost blog to zola


  • Export your entire ghost directory into a tar:
    • The following data formats are supported:
      • ghost.tar
      • ghost.tar.gz
      • ghost.tar.bz2
    • This program analyzes the input file type, so no magic filenames are necessary.
  • Note: unlike ghost's built-in data exports, this preserves media such as images.


    ghost2zola [OPTIONS] <archive-path> <extract-path>

    -h, --help
            Prints help information

    -V, --version
            Prints version information

        --prefix <prefix>
            Relative prefix within the archive

            In cases where the archive contains only a single blog, this is not necessary. When the archive contains
            several blogs, this can be set to any distinct prefix winnowing the selection to a single selection.

            If you're not sure what prefixes might be available, consider using the `find_ghost_db` tool.

            Path to a possibly-compressed tar archiving a ghost blog

            Path to the base directory into which the ghost blog should be expanded.

            Normally, this is the `content/blog` directory of your zola installation.


~745K SLoC