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 »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Restore Contacts from backup
Pages: [1]

Author Topic: Restore Contacts from backup  (Read 1757 times)

waqluv4tr

  • Guest
Restore Contacts from backup
July 10, 2008, 03:54:01 pm
Hello,

   I want to restore few contact on my life site from backup database. But i don't know how to restored these few contact with all related informtion ( actviities, groups, user accounts on Drupal, relationshops with organizations, notes ,etc)


Any kind of help will be much appericiated.

Thanks in advance

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Restore Contacts from backup
July 11, 2008, 10:42:10 am
I'm not aware of any reasonable way to do this :-( The data is stored in quite a few related tables - so you'd have to use MySQL tools to dump "data only" for the contact records and all the related tables' records.
Protect your investment in CiviCRM by  becoming a Member!

waqluv4tr

  • Guest
Re: Restore Contacts from backup
July 11, 2008, 02:00:22 pm
Thanks you very much for reply ...

is there a way so that i could get all related tables with contacts in civicrm and in drupal so that i could not miss any
information regarding a contact.

Thanks again

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Restore Contacts from backup
July 11, 2008, 03:00:21 pm
Check the 2.0 ERD here: http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+ERD+2.0

I think it's pretty complete... obviously you'll want to test your dump / load with a test copy of your production DB.
Protect your investment in CiviCRM by  becoming a Member!

yasheshb

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
Re: Restore Contacts from backup
July 28, 2008, 06:38:21 am
waqluv4tr:

  you could also create a new civicrm temporary install using the backup database. once you've got the all the civicrm contacts
in the temp install, you could search for the contacts you want to restore in the live install.

  from the search results of the contacts in the temp install, export the contacts and their fields into a csv file and then
use that file to import them into live site.

hth.

yashesh bhatia.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Restore Contacts from backup

This forum was archived on 2017-11-26.