Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Beginner’s Guide: Så här återställer du WordPress från en backup

Behöver du återställa WordPress från en backup?

Backups hjälper dig att återställa din website om något går fel. Att återställa WordPress från en backup är dock inte helt enkelt för Beginner.

I den här artikeln kommer vi att visa dig hur du enkelt återställer WordPress från en backup steg för steg.

Beginner's Guide how to Restore WordPress from Backup

Förstå backup och återställ WordPress

Det finns olika sätt att skapa backup för din WordPress site. Det bästa sättet att skapa en backup är att använda ett WordPress backup plugin.

Alternativt kan du också skapa en manuell backup av din WordPress database och download your WordPress files med hjälp av en FTP-klient.

Återställ WordPress från backuper beror helt på hur du skapade backupen. Till exempel kan backuper som skapats med Duplicator återställas med hjälp av samma plugin. På samma sätt måste manuella backuper återställas manuellt.

Många användare av WordPress säkerhetskopierar inte hela sina websites. Istället säkerhetskopierar de bara sitt WordPress theme, uploads directory och sin WordPress database. Detta minskar storleken på backupen men ökar de steg som krävs för att återställa webbplatsen.

Oavsett hur du skapar din backup är de grundläggande stegen desamma.

Låt oss ta en titt på hur du återställer din WordPress site från en backup. Eftersom vi täcker olika metoder för återställning, vänligen hoppa till den section som gäller för you:

Note: Den här guiden handlar om att återställa en site i WordPress från en backup. Om du försöker flytta din website till en ny domän bör du kontrollera vår guide om hur du flyttar WordPress till en new domän utan att förlora sökmotorsoptimering.

Om du försöker flytta från localhost till ett live webbhotell account, följ då denna guide om hur du flyttar WordPress från en lokal server till en live site.

Återställ WordPress med hjälp av Duplicator Pro

Duplicator är ett av de bästa tilläggen för backup av WordPress. Det gör det mycket enkelt att flytta och säkerhetskopiera din site.

Först måste du se till att du har en komplett backup av din WordPress site som skapats av Duplicator.

Du kan lära dig mer genom att följa vår guide om hur du säkerhetskopierar en site i WordPress.

Därefter måste du downloada filen backup archive till din dator. Detta kommer att vara en complete kopia av dina WordPress-filer, som inkluderar themes, tillägg, settings, med mera.

Om dina backuper är lagrade på en fjärrlagringsplats som gillar Dropbox, Google Drive eller OneDrive, kan du downloada dina backup-filer från dessa locations till din dator.

Därefter måste du ansluta till en FTP-klient och ta bort alla WordPress-filer. Efter det måste du installera WordPress igen och logga in på din website.

Delete old WordPress files

Du måste sedan installera och aktivera pluginet Duplicator. För mer detaljer, vänligen se vår guide om hur man installerar ett plugin för WordPress.

Efter aktivering kan du heada till Duplicator Pro ” Importera från din WordPress dashboard. Därefter kan du uploada archive-filen genom att helt enkelt dra och droppa eller klicka på knappen ”Select File”.

Import backup archive file

Plugin kommer nu att uploada archive-filen och visa dig detaljerna.

You can review the details and then click the ’Continue’ button.

View archive file status

Därefter måste du ställa in en återställningspunkt för att snabbt återställa din site till ett tidigare datum.

När det är gjort kan du klicka på knappen ”Set”.

Set a recovery point

Efter det får du en URL för återställning som du kan lagra i säkert förvar för att använda när som helst i framtiden.

Härifrån kan du rulla ner och klicka på knappen ”Launch Installer”.

Launch installer

Därefter måste du distribuera paketet. Tillägget kommer att ge en översikt över detaljerna för installationen. Det låter dig välja en fullständig installering av en enda webbplats eller återställ en enda webbplats.

Du kan välja alternativet ”Återställ en enda site” och rulla ner för att klicka på knappen ”Nästa”.

Deploy the package

Ett new fönster kommer nu att dyka upp med bekräftelse på installationen.

You can click the ”OK” button to continue.

Installation confirmation

Installatören kommer nu att extrahera dina backup archive-filer. När det är gjort bör du se resultatet av installationen.

Du kan helt enkelt klicka på knappen ”Admin Login” för att slutföra installationen av din backup.

Click admin login

Gå vidare och logga in på din WordPress dashboard.

Nu är allt klart. Du har utan problem återställt din WordPress site från en Duplicator backup.

Återställ WordPress från BackupBuddy Backup-fil

BackupBuddy är ett populärt premium WordPress plugin för backup. Om du använde BackupBuddy för att skapa backuper är detta section för dig.

BackupBuddy erbjuder ett mycket bekvämt sätt att återställa WordPress från en backup. Du måste logga in på din WordPress website och gå till BackupBuddy ” Restore/Migrate page.

You will need to download a copy of the importbuddy.php file. Under processen kommer du att bli ombedd att ange ett password för ImportBuddy. Detta password kommer att användas när du återställer din website.

Download importbuddy

Därefter måste du downloada en kopia av din backup om du inte redan har gjort det. Du kan downloada den från BackupBuddy ” Back ups eller den destination som du använde för att store dina backups.

När du har backup-zip-filen och importbuddy.php lagrade på din dator ansluter du till din website med FTP.

Om du har en completed backup av din website, så delete all files and folders från din server.

Men om du har en partiell backup måste du först downloada de filer som du inte har säkerhetskopierat. När du är säker på att du har säkerhetskopierat allt, fortsätt med att ta bort alla filer och foldrar från din websites root directory.

Delete old WordPress files

Därefter måste du uploada dina BackupBuddy backup- och importbuddy.php-filer till din websites root folder.

När båda filerna har laddats upp till servern besöker du importbuddy.php i din web browser. Den ligger i din websites root directory, så dess URL kommer att vara något som gillar:

http://www.example.com/importbuddy.php

ImportBuddy kommer nu att be om det password som du skapade när du downloadade ImportBuddy.

importbuddy password

På nästa vy kommer ImportBuddy att visa den backup-fil som du uploadade. Om du ej uppladdade din backup-fil med FTP, kan du clicka på tabben upload för att ladda upp backup-filen nu.

Om du har dina backups lagrade på iThemes Stash lagringstjänst, kan du ansluta till den genom att klicka på stash tabs nu. När du har valt din database klickar du på ”Next Step” för att fortsätta.

Select your backup file

ImportBuddy packar upp din backup och visar ett success message när den har extraherat filerna. Klicka på knappen Nästa steg för att fortsätta.

På nästa vy kommer ImportBuddy att be you att ange webbplatsens URL och information om databasen.

Om du återställer en hackad WordPress website eller försöker remove skadlig kod, då vill du inte använda din gamla database.

You can either drop tables from your old database using phpMyAdmin or create a new database using cPanel. När du är klar med att skapa en new database eller tömma den gamla, ange dina database details.

Å andra sidan, om du är säker på att din webbplats inte har hackats, kan du använda samma gamla database details.

database settings

Klicka på nästa knapp för att fortsätta, så kommer ImportBuddy nu att testa dina inställningar för databasen och importera dina data. När det är gjort klickar du på nästa steg för att fortsätta.

Nu kommer ImportBuddy att updating your site URLs, paths, etc. Efter det kommer du att bli ombedd att testa din site. Om allt fungerar som det ska har du utan problem återställt din website.

Review and cleanup

På ImportBuddy page, click the ”Clean up and remove temporary files” button. Då borttages temporära data i databasen och filer som skapats under återställandet.

Återställa WordPress Database från backup med hjälp av phpMyAdmin

När du återställer en manuellt skapad backup kan du stöta på två möjliga val. Du kan antingen skapa en new database och importera din backup till den, eller så kan du tömma din befintliga database och importera backupen.

Om du rengör en hackad WordPress-webbplats är det mycket viktigt att ändra ditt MySQL användarnamn och lösenord innan du skapar en ny databas eller importerar den till en befintlig databas.

För att skapa en new database loggar du in på cPanel-instrumentpanelen på ditt WordPress-webbhotell account och clickar på ikonen ”MySQL Databases”.

Open MySQL database in Bluehost

Därefter kommer du att bli ombedd att ange ett namn för din database.

När detta är gjort klickar du på knappen ”Create Database”.

Create new database

När du har skapat den nya databasen behöver du en MySQL-användare som är associerad med den nya databasen.

Rulla bara ner till MySQL users section och lägg till en ny användare.

Add new database user

Därefter måste du add den här användaren till MySQL-databasen.

Bläddra ner till ”Add user to database” section, select användaren tillsammans med databasen från dropdown menuerna och klicka sedan på ”Add” knappen.

Add user to db

Nu är din new database klar. Du kan använda den för att återställa din WordPress backup av databasen.

Head över till cPanel dashboard igen och klicka sedan på phpMyAdmin alternativet.

phpmyadmin panel in Bluehost

Därefter måste du klicka på namnet på din new database.

Därefter klickar du på knappen ”Importera”.

Choose backup file to import

Klicka bara på knappen ”choose file” för att select your WordPress database backup file, och klicka sedan på go-knappen längst ner på sidan för att fortsätta.

phpMyAdmin kommer nu att uploada din backup och importera den till din database. Du kommer att se ett success message när det är completed.

Nu är allt klart. Du har importerat din WordPress Database utan problem.

Nu är nästa steg att installera WordPress med din nya database. Om du redan har installerat WordPress är det bara att add to din wp-config.php-fil med inställningarna för den nya databasen, så är du klar.

Återställa backup av WordPress Database med hjälp av cPanel

Om du manuellt skapade en backup av WordPress database med hjälp av cPanel på ditt delade webbhotell, kan du också återställa databasen med hjälp av cPanel.

Logga in på ditt cPanel account, och under Files section, click on ’Backup’.

Go to backup option in cPanel

På sidan backups rullar du ner till ”Restore a MySQL database backup”.

Därefter klickar du på knappen ”Choose File” och väljer backup-filen från din hårddisk. När du är klar klickar du bara på knappen ”Upload”.

Restore database using cPanel

Återställ WordPress-filer manuellt med hjälp av FTP

Om du återställer WordPress för att rensa upp en hackad site måste du först ta bort alla befintliga WordPress-filer och -directories.

Gör detta endast om din backup är uppdaterad och du har allt som är customize, ändrat eller uploadat på din website.

Om du har alla dina uploads och customizes kan du säkert ta bort allt på din website med hjälp av cPanel (mycket snabbare) eller med FTP.

För att ta bort alla filer från din website måste du logga in på cPanel i din dashboard på webbhotellet. Sedan klickar du på ikonen ”File Manager” under sektionen ”Files”.

Go file manager in cPanel

Gå vidare och välj Webroot som din directory och fortsätt. Gränssnittet för filhanteraren öppnas nu i en new tabs i webbläsaren. Du måste välja alla WordPress-filer och ta bort dem. Det här sättet är mycket snabbare.

Du kan också delete filer med FTP, men det går långsammare. Anslut bara till din website med en FTP-klient och välj all filer i din WordPress root directory för att ta bort dem.

Delete old WordPress files

Därefter måste du downloada en ny kopia av WordPress från WordPress.org och extrahera den till din hårddisk.

Starta din FTP-klient och uppladdare sedan all WordPress-filer till din server.

Upload WordPress files

När du har uppladdat WordPress-filer kan du ladda upp en wp-config.php-fil från din backup (endast om du är säker på att den är ren och inte har äventyrats).

Alternativt kan du byta namn på wp-config-sample.php-filen i dina nyligen uppladdade WordPress-filer till wp-config.php-filen. Efter det måste du edit filen wp-config.php och enter din database information.

Glöm inte att save filen och uploada den tillbaka till your website.

Därefter måste du uploada andra filer från din backup. Vi rekommenderar att du bara uploadar dina images i /wp-content/uploads/ directory.

När du har uppladdat dessa, besök din website för att kontrollera att allt fungerar som det ska.

Därefter måste du logga in på ditt WordPress admin area och börja installera de tillägg du hade på din webbplats.

Nu kan du gå vidare till att installera ditt theme. Om du har customize ditt WordPress-tema eller använde ett barntema, kan du återställa det från en backup. Se dock till att dessa filer är rena.

Slutligen går du till Settings ” Permalinks och justerar permalänksinställningarna så att de matchar din site och uppdaterar sedan permalänkar.

Felsökning av problem med återställning av WordPress Backup

Det finns några vanliga problem som du kan stöta på när du återställer din WordPress website.

Vi har separata guider för var och en av dem:

Saker att göra efter att du återställt din site i WordPress

När du har återställt din website utan problem rekommenderar vi starkt att du förbättrar säkerheten på din website.

Om du inte redan har gjort det, vänligen se till att du har en regelbunden WordPress backup med ett av dessa WordPress backup tillägg.

För att säkra din website rekommenderar vi att du omedelbart ändrar ditt WordPress password. Om du runar en website med flera användare ska du be all användare att omedelbart update sina password.

Du kan också installera en firewall för din website. På WPBeginner använder vi Cloudflare för att skydda vår website. För mer details, you can see our guide on why we switched from Sucuri to Cloudflare.

Vi hoppas att den här artikeln hjälpte dig att lära dig hur du återställer WordPress från en backup. Du kanske också vill se vår ultimata Step-by-Step WordPress säkerhetsguide för nybörjare och hur man får en gratis email domain.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

92 kommentarerLämna ett svar

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Jiří Vaněk says

    Thank you for the guide using Duplicator. I started using it, set up automatic backups to Google Drive, and I was still unclear on how to perform a restoration in case of a problem. This is described perfectly here, and now I can finally be at ease knowing my website backups are taken care of.

  3. Bajrang says

    Let’s suppose, I am restoring 2 days ago file backup, then is it mandatory to restore database backup of the same date also in order to sync both??

    • WPBeginner Support says

      It would depend on what file you’re restoring from and for what reason as some backup plugins include database information.

      Administratör

  4. Daniela says

    Hello. If I install a backup, will I lose all the changes I made and plugins I installed after the backup? Thanks!

    • WPBeginner Support says

      It depends on the backup tool used but normally, yes you would lose any changes not backed up.

      Administratör

    • WPBeginner Support says

      You will be missing some things but you will have the ability to restore a good amount of your content.

      Administratör

  5. KylieM says

    We’ve only just realised that a page was permanently deleted (not in trash) that we need to recover. We completely updated our website a few months back and believe the page was deleted then. We did do a full back up before changes. Only want to recover the one page and not do a full restore which would replace all of our new content.

    How would we do this?

    • WPBeginner Support says

      It would depend on what you used to create the backup but the simplest method may be to create a local installation for your site, restore your site on to your local install, then export the page you want on your live site so you can import it.

      Administratör

  6. bhanuka says

    I was referring to uploading via FTP method. But my old files did not load. Only a blank page came. With some nail biting hours I realised that the wp-config.php file includes following important settings to be set with old site values.
    1. database prefix. I had a custom prefix. If you dont change, WP upgrade will recreate all tables with ’wp’ prefix while your old data are in old prefix tables.

    2. Authentication Unique Keys and Salts settings must match the old values

    Then it worked

    • WPBeginner Support says

      Thank you for clarifying, glad you were able to find the root of your issue and resolve it.

      Administratör

  7. Pawan Sharma says

    I was hosting my website through hostinger free hosting. Now i moved to another service provider. I took backup from hostinger and uploaded the same in new provider c panel under public_html. But my website not displayed. I’m getting below Error and Warning.

    Warning: require(/home/test/public_html/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php): failed to open stream: No such file or directory in /home/test/public_html/wp-settings.php on line 232

    Fatal error: require(): Failed opening required ’/home/test/public_html/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php’ (include_path=’.:/usr/share/php’) in /home/test/public_html/wp-settings.php on line 232

    And don’t find any wp-settings.php file under the root folder piblic_html.

    Please help to solve this problem.

    Thanks all

  8. glenda says

    I’m not a beginner, but am desperately trying to find out how to get past the first screen if I can’t remember my importbuddy.php password. The last WP Core update broke one of my sites and the most recent backup had a fatal error so I had to go back to an old, old backup. iThemes support used to be good, but now it sucks.

    Found your explanation for using BackupBuddy and it’s a good one.

  9. ted says

    Thank you for the article.
    I have a ”different” problem:

    I have only the httpdocs directory and the
    wordpress_d database directory (located at var/lim/mysql)
    How can I restore the site with these 2 directories?

    Thank you!!

  10. Kawsar Siddik says

    Backupbuddy is the best WordPress restore/migration tool while working on client’s website. It saves time. Thanks for sharing this tutorial.

  11. Clever Peterson says

    Hello, I backed up my WordPress site with Drop box for WordPress but I’m still confused of where to upload the back up files I have downloaded. Would you please help me?

  12. Eddy says

    I successfully restored my WordPress using phpmyadmin. However when I try to install WordPress using the new database info it says the db already exists, use another name. What do I do?

  13. Roxanne says

    I delete my wordpress site, but I made a back-up before I deleted it. Now I want to re-open the website. Is there a way to just upload the back-up and get everything back to the same way it was?

  14. Vikas says

    Hi I am trying to restore my wordpress site from bck but after I click upload on restore MySQL database option….dead white screen comes up and nothing happens! Any suggestions? Thanks

  15. Vikas says

    I have not taken any backup of my site. And my site is displaying ”Access Denied”. And my hosting provider states that my files in that website have been attacked by malware. Is there any method to recover all the data from the hosting ?

  16. joseph says

    I am new to blogging. I want to say thanks for your simplified tutorials, it is helpful. I already bookmarked your site so I can always come back. Once again i say thank you.

  17. nicolas blake says

    can you please tell me how i can access a backup i made with backwpup and I chose ”folder” .I once was a programmer now I’m just a duffer

  18. Nate says

    I just got a cpanel full backup from a client. They are now using Godaddy WordPress managed hosting. How in the heck do I restore the site and database to Godaddy from the TAR.zip file?

    Thanks guys!

  19. Hari Kumar says

    My blog is live and can login to admin dashboard. but none of my post is available, and I cannot update my previous post. Plus new post added are not found… while opening.. it says —- a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Any Solution??

  20. Jamie says

    Thanks for the information. Just a question: I have a SQL database backup for my blog saved as a .SQL file. What information does this contain? Does it have the theme customised layout? Blog articles? Pictures?

    Many thanks

  21. Mr. Karmaker says

    My website has been hacked. I have made earlier backup zip file in cPanel FileManager. Zip file size is more than 99MB and it can not upload.
    How to restore my site ?
    Any suggestion please.

  22. dana says

    Hi, We recently moved some but not of our blog content from a standalone site to the company website. The posts that we didn’t think we wanted are now in FTP — I’d like to import them to a new wordpress site. Trying to locate specific content within FTP Is a huge pain. Is there any way to export that content into a new wordpress site so I can access it? Thank you.

  23. Prudhvi Raj says

    Good.
    I’ve backed up Home Directory and restoring it, and also uploaded the whole website. it’s like 20 minutes it is saying ”restoring files…” . How long does it takes? File is of 1.45GB . Thanks .

  24. Mufaddal says

    Hi there, I want to change my hosting plan from hostgator(HG) to Digitalocean(DO). I have done the setup of DO successfully, how can I get my backup uploaded?
    I have taken a backup of WP site(the file was around 32mb) I m not sure its the whole backup, now my HG plan has expired(not deleted, I can renew it to get my site back) but now what should I do to upload the data, on adminMyPhp it is showing some error while uploading data. I want my site back as it was, on DO server, I dont want to renew my HG plan again, Please guide me, Thank you in advance.

  25. Keesjan says

    hi,
    do you know how to restore a backup when the admin interface is broken?
    Then its not possible to use the interface.

    Is in that case only the phpadmin method the way to go. Or are there any cloud service out there that help me ’push’ teh bakcyp back to my site, without loggin in mt wp admin?

  26. Mahriya says

    Thanks, what if I had backed up my whole WordPress site(tags, posts media etc…) but only wanted to restore the Media only. Is there any way to do this? I appreciate the help!

    • WPBeginner Support says

      It depends on what method you used to create a backup. Most WordPress backup plugins store all your WordPress files in a zip file. You can extract that file to your computer and then upload the wp-content/uploads folder.

      Administratör

  27. Belinda says

    Hello,
    Total beginner here.
    Started building my first WordPress site for a client on my local drive. Used the theme Avada.
    Long story short, I needed a new hard drive in my Mac.
    – Backed up my failing hard drive with time machine.
    – Starting fresh on my computer with a new hard drive.
    – Reinstalled WordPress and MAMP.
    – Moved the website files from time machine applications/MAMP/htdocs to the same place on my computer.

    Reading above I need to do something with the database. But I am completely lost on this.

    Please help as soon as possible!

    Thank you in advance.

  28. tonythanh says

    The problem when we restore wordpress is all image will not display. I have already got this trouble and it made me 3 days for resolve. Here is the way I solve for my site

    1. Install fresh copy of wordpress with new database
    2. Drop all database in phpmyadmin
    3. Import database that you back up lastime
    4. Your site will not work and It need reinstall. Don’t worry.
    5. Login Cpanel, find the wp-config.php file, open, change the prefix wp_ with your new prefix of your last database.
    6. Import your images correct to the folder in uploads.
    7. Done, your site will work well with full images.

    I hope you will get no trouble like me.

  29. Graceson says

    Can you please assist me to restore backedup files using ”BACKUPWORDPRESS” in my local drive?

    Thanks in advance.

  30. Tushar says

    Is the method of using FTP to restore your website valid/useful if the main error in FTP is ”552-Quota exceeded” . I contacted the host, he says that some malicious plugin has caused this sort of error to occur and complete restoration of the site will be required. I planning to begin from a clean slate by uploading new wordpress and redesigning the entire site: But will this work with above mentioned error?

  31. Angel says

    Thanks a lot for the article! You saved my life helping me to restore a site, easy and simple!
    All the best, Angel

  32. Paul says

    Hi, just a (probably) silly question: can I Re-install now from the wordpress dashboard without losing any settings etc on my site?

    • WPBeginner Support says

      You can go to Dashboard -> Updated and click on reinstall now button. That will download a fresh copy of WordPress and replace your old files. It will not change your WordPress settings as those are stored separated in database.

      Administratör

  33. Ben Dixon says

    Hi guys, very informative read, thanks for that!

    I have a backup of my SQL database which was created with a plugin and emailed to me. Unfortunately I’ve lost all other files, I’ve contacted my host and they have no backup.

    I’ve installed WordPress and will install the appropriate theme. I can’t recall all the plugins I used.

    I’ve obviously lost all my images, but what else have I lost? Is a restore of my site feasible in your opinion?

    Many thanks for any help at all.

      • Ben Dixon says

        Thanks for that, I’ll give it go. Maybe I can look at the database to help me remember what plugins were there before.

        Cheers guys!

  34. Ali Sajjad says

    Hi, i have done everything and my site is running fine. but i have problem with images all over the site. i don’t know why, because there is no error display during restore process.

  35. Zamby says

    Somewhat complicated question. A few days ago, I updated the wordpress version my site was using. This then made the site fail, and I couldn’t even log in to wordpress due to a fatal error. I then replaced the site with my most recent backup from Feb. 2nd, and things were fixed. However, there is a lot of data from Feb. 2nd that I would like to access if possible.

    This data must have been saved somewhere, but I’m wondering where? Or is it all completely lost and innaccessible in the Cpanel after a backup?

    • WPBeginner Staff says

      It actually depends on how you restored your backup. If you created a new database to restore your backup into and did not delete any files from your webserver then you can get access to your posts by opening the old database using phpmyadmin. You can also find the files you uploaded on your webserver by connecting to your site using an FTP client. These file uploads will be stored in /wp-content/uploads/ folder.

      On the other hand, if your restoration process involved deleting old database by emptying it, and if you deleted old files from server as wel, then you cannot access those files on your own.

      Another possibility to recover that data is by requesting your web host and ask them if they have a backup for your site on the specific date when you deleted all old data. If they have the backup, then they can send it to you.

  36. WPBeginner Staff says

    Simply click on Appearance » Themes and click on the activate button on the theme that you had previously installed. In case you can’t figure out which theme you had previously installed, then you will need to activate them one by one and preview your website until you get the right theme.

    • Urgent help needed @ WPBEGINNER SUPPORT says

      Good day Wpbeginner,

      This is my terrible situation. I made a mistake and i lost my site. and then i requested my Host gator India to give back file for which i paid. They send me in TAR.Zip file. I don’t know how to go about it. They told me to long CP panel and upload and extract. But it didn’t work. Then one rep who helped me and my site came alive. However, if i click any one of the posts it was throwing 403 error. She couldn’t solve it. and another rep said i need to contact my developer…what is this? Develper,!!!(lol)

      and then i moved another host. I tried uploading my back up file. but no use and nothing working. So i had 3 months back up files which i downloaded from WordPress XML. Now it is working except images and the current template is different than the previous.

      I have the back up file from Hostgator and if you could help me how to go with it…i really appreciate.

      Best regards,
      Ramesh.ramaiah

      • WPBeginner Support says

        You can extract the backup file on your own computer using a program that is able to extract .tar and .zip archives like 7zip. After that you can browse the files and upload them to your web server using an FTP client.

        Administratör

  37. Timothy says

    I was wondering how to recover a WordPress theme, it wasn’t deleted I just hit active on a new on by accident

  38. Gary says

    Hello, I just stumbled upon this post and was wondering if you could help. I switched hosting plans within godaddy and went from managed wordpress to cpanel. I used a plugin to backup the site before switching, which saved all files including the .sql file. Restoring the site via the plugin did not work so I am trying it the hard way. I have completely removed the site including all files. Then I created a new database and gave it the same name as database_name in the .sql file. Afterwards I uploaded the .sql file from the backup into this database. Then I reinstalled wordpress via cpanel and chose the new database I created. Then I uploaded the rest of the files(themes, plugins, uploads) via ftp. But for some reason this did not do anything. When I logged into wordpress nothing looks different. None of the pages I created or anything was there. The plugins were there and the theme I uploaded was there. However, I can’t access the images from the media button even though they are in the uploads folder. I can’t figure out where I went wrong. The database names match up, I can’t think of anything else. The only thing I can possibly think of is the hostname in my .sql backup file is not localhost. Could that be the issue? I can’t figure out what I am missing. Any help would be greatly appreciated.

    • DFPhoenix says

      If your database was correctly restored, you won’t even need to install wordpress again. Asking you to install means, your database isn’t correctly restored. Just my guess.

  39. Dill says

    Hi… I was wondering how to restore my wordpress site if all I have is a complete download of everything that was there. I downloaded everything (everything!) from my host using FTP and didn’t do any fancy backups of databases. Can I just upload that entire backup as is and get the site back? I’m also switching hosts (but not domain names), so I do know I’ll have to edit a file or two also.

    • WPBeginner Support says

      If you only copied everything from FTP then you probably only have your WordPress files and not the database. Without the database backup you can not restore your site. If you have access to your host, then please create your database backup.

      Administratör

  40. Kyle says

    Hi,
    Thanks for all your tutorials, I find myself here often. I had a question, is there any way to retrieve the subscribers from a backed up .sql file? The plugin used to collect subscriptions was Subscriber 2.

  41. Bruno says

    Your site is great. Can you write a guide how to restore a backup created with BackWPup? That would be great.

    • WPBeginner Support says

      Sure we will try to do that. Meanwhile, here is how to restore your backup created with BackWPUp plugin. Download your backup file and extract it. Inside it your will find a .sql file along with other files. .SQL file is your database backup and you can import it using phpMyAdmin. Upload rest of the files using FTP.

      Administratör

  42. Raji says

    This post is extremely helpful as it has helped me (a newbie) to restore my site….or almost. When i try to login, it takes me to a page that says i should install wordpress again…. the famous 5minutes install. please help.

    • WPBeginner Support says

      It seems WordPress is unable to connect to the database. Or it connected to the database which is currently empty. You have restored your WordPress files but you probably didn’t restore your WordPress database backup successfully.

      Administratör

  43. Md Jafrul Islam says

    Thank you very very much. By this info post detail. I can make my site again restore. Thanks Man. Just awesome update more amazing info.

  44. Chris says

    When doing a backup, which backup do I need most frequently? I am offered three choices on the cPanel (full cPanel backup, home directory, database). Would you say it is more important to backup the database file, as long as I have a fairly recent backup of the home directory?

    Thanks for your time!

  45. Bas says

    Thanks for the great guide(s). I had to move 2 sites from 1 server to a new server, and using your manuals it went like clockwork.

    Making the backup via BackWPup was quick and restoring it manually the same.

    I was up and running again in 15 minutes.

    BTW. The version of BackWPup I use (3.0.13) only showed the Dropbox feature after creating, saving and running the backup job.
    I had to change something, when the sites where moved, and there it was.

  46. Naik says

    Hi,
    I recently shifted my blog from one hosting to another in Godaddy. I have the backup of my blog in .sql format. I am trying to import using MySQL, it shows an error ”Script timeout passed, if you want to finish import, please resubmit same file and import will resume.” Please help

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.