Store Drupal blockconfiguration in SVN.

/ Published in: Bash
Save to your folder(s)

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.

Copy this code and paste it in your HTML
  1. mysqldump -uroot -p -t -n -c --skip-extended-insert --compact database_name blocks | sort > blocks.sql

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.