Posted By

berkes on 04/16/09


svn drupal migration Blocks staging

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Store Drupal blockconfiguration in SVN.

 / Published in: Bash

A common Drupal problem: how to save e.g. your blocks configuration without dragging an X Gig database around.

A simple command that dumps a table in a way that it can be inserted into SVN. Every row is dumped as a single line, and they are sorted. Minimising the differences.

This example dumps the data for blocks.

  1. mysqldump -uroot -p -t -n -c --skip-extended-insert --compact database_name blocks | sort > blocks.sql

Report this snippet  

You need to login to post a comment.