CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Custom data from db backup
Pages: [1]

Author Topic: Custom data from db backup  (Read 788 times)

kmitz

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 2
Custom data from db backup
February 14, 2010, 08:41:10 pm
Hey,

I had to do a reinstall of both Drupal and Civi.  The original installation had a large number of custom fields that I would like to avoid entering manually.  I have a db dump from the old installation (Civi 3.0.? -> 3.1.2).

After briefly looking at the dump file, it appears that the following tables had applicable data:

* civicrm_contact
* civicrm_import_job_<unique id>
* civicrm_value_primary_1 (primary was the grouping)
* civicrm_value_secondary_2 (secondary was the grouping)

Is it possible, using phpMySQLAdmin, to restore the original data, or at least the custom fields and the mappings?

kmitz

Civi 3.1.2/PHP 5.2/Linux/Drupal 6.15

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Custom data from db backup
February 14, 2010, 08:54:00 pm

if the old install is still around, u can use the "migrate" scripts (bin/migrate/{export,import}.php) to xfer the data

if not around, its a bit more challenging. u might want to look at:

http://svn.civicrm.org/civicrm/branches/v3.1/bin/migrate/export.php

to get an idea of the inter-dependencies. if u r familiar with php/sql, the tables are:

civicrm_custom_group
civicrm_custom_field
civicrm_option_group
civicrm_option_field

lobo

A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

kmitz

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 2
Re: Custom data from db backup
February 15, 2010, 05:17:58 am
Thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Custom data from db backup

This forum was archived on 2017-11-26.