1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Restoring a backup using cPanel from tar.gz file

Discussion in 'Site & Server Administration' started by pratik, Nov 23, 2016.

  1. #1
    Hello,
    SEMrush
    Yesterday I accidently over write the WordPress installation of my main website while installing a new WordPress setup.
    My web host company (Hostagator) gave me a backup file of previous day. They kept a tar.gz file in my /home directory.
    I have few queries as to how to restore the same

    1. Do I have to download the file, unzip it and upload the contents manually using FTP?
    2. Will this file also include the database backup and how can I restore it?
    3. Can I restore the back using cPanel?

    Thanks in advance.
     
    pratik, Nov 23, 2016 IP
    SEMrush
  2. dcristo

    dcristo Illustrious Member

    Messages:
    19,747
    Likes Received:
    1,190
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #2
    You just need to restore the home directory backup, which you can do in the cpanel backend.
     
    dcristo, Nov 23, 2016 IP
  3. pratik

    pratik Notable Member

    Messages:
    2,223
    Likes Received:
    101
    Best Answers:
    0
    Trophy Points:
    200
    #3
    So you mean the tar.gz file is the home directory back? What about the database?
     
    pratik, Nov 23, 2016 IP
  4. dcristo

    dcristo Illustrious Member

    Messages:
    19,747
    Likes Received:
    1,190
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #4
    Yes. You restore the home directory files in the Backup section of Cpanel.

    You shouldn't need to restore the database, but if you do, you will need to ask the host for the database backup.
     
    dcristo, Nov 24, 2016 IP
  5. UnderHost_MSA

    UnderHost_MSA Notable Member

    Messages:
    1,191
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    200
    #5
    If you need both restored, you should ask HostGator to do a full account restore from their backup.

    I would first download your own backup on your computer in case they aren't able to restore the backup as we talk about hostgator so you have at least some files.
     
    UnderHost_MSA, Nov 26, 2016 IP