Moving or resetting a Drupal site

Discussion in 'Drupal' started by RogerDodgr, Jun 9, 2010.

  1. #1
    This week I seriously damaged the database on my Drupal website and I don't think I know how to fix it in any reasonable amount of time. I am probably going to get the database and file directory reset by my host, GoDaddy, to the previous day, the day prior to my site's crash.

    Question:
    I think of my Drupal site as having two components: file directory and database. So, if I pay to have the database and file directory restored to a previous state, will that restore the site? I mean, should it function/behave/appear exactly as it did at that restore point?

    I need to learn from this experience, what exactly does it takes to backup a Drupal site? When I did a backup, I got a .sql file. So with my all of my directories and this .sql file can I upload the database and directories to another host? I believe that file directories and database sums it up; but, when I got GoDaddy on the phone, they boggled my mind with technical terms and left me unsure.
     
    Last edited: Jun 9, 2010
    RogerDodgr, Jun 9, 2010 IP
  2. buzza_gts

    buzza_gts Active Member

    Messages:
    199
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #2
    You need the database backup and all the files and folders in the sites directory. You don't need the other files so long as you haven't changed them which you shouldn't have, you can download the latest version of these from the drupal website. When changing hosts just be sure to update settings.php with the new hosts settings.
     
    buzza_gts, Jun 10, 2010 IP
  3. RogerDodgr

    RogerDodgr Well-Known Member

    Messages:
    267
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #3
    Thanks for the tips buzza_gts. I heard about the sites directory somewhere else as well. I think you forgot to mention the themes; I think a lot of people make some minor changes to the page template.
     
    RogerDodgr, Jun 10, 2010 IP
  4. bnandika

    bnandika Well-Known Member

    Messages:
    1,079
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    140
    #4
    Most developers never change Drupal core themes, but they make copy of the themes and make changes on it. So when they move to another web host, they just copy the modified theme to the same directory.
     
    bnandika, Jun 10, 2010 IP
  5. hefe

    hefe Member

    Messages:
    122
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #5
    Yep. There's the file/directory structure, and the database.

    I tend to use mysqldump to dump the database, and tar for archiving the files.

    There's also some hostnames embedded in the config files for database location unless you are pointed at "localhost".
     
    hefe, Jul 5, 2010 IP