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

Przewodnik dla początkujących: Jak przywrócić WordPress z kopii zapasowej

Uwaga redakcyjna: Otrzymujemy prowizję z linków partnerskich na WPBeginner. Prowizje nie mają wpływu na opinie i oceny naszych redaktorów. Dowiedz się więcej o Proces redakcyjny.

Czy musisz przywrócić WordPress z pliku kopii zapasowej?

Kopie zapasowe pomagają przywrócić twoją witrynę internetową w przypadku, gdy coś pójdzie nie tak. Przywracanie WordPressa z pliku kopii zapasowej nie jest jednak łatwe dla początkujących.

W tym artykule pokażemy, jak krok po kroku łatwo przywrócić WordPress z kopii zapasowej.

Beginner's Guide how to Restore WordPress from Backup

Zrozumienie tworzenia kopii zapasowych i przywracania WordPress

Istnieją różne sposoby tworzenia kopii zapasowych twojej witryny WordPress. Najlepszym sposobem na utworzenie kopii zapasowej jest użycie wtyczki do tworzenia kopii zapasowych WordPress.

Alternatywnie można również utworzyć ręczną kopię zapasową bazy danych WordPress i pobrać twoje pliki WordPress za pomocą klienta FTP.

Przywracanie WordPressa z kopii zapasowych zależy całkowicie od sposobu utworzenia kopii zapasowej. Na przykład kopie zapasowe utworzone za pomocą Duplicatora można przywrócić za pomocą tej samej wtyczki. Podobnie, ręczne kopie zapasowe muszą być przywracane ręcznie.

Wielu użytkowników WordPressa nie tworzy kopii zapasowych całych witryn internetowych. Zamiast tego tworzą kopię zapasową tylko motywu WordPress, katalogu uploads i bazy danych WordPress. Zmniejsza to rozmiar kopii zapasowej, ale zwiększa liczbę kroków potrzebnych do przywrócenia witryny.

Niezależnie od tego, w jaki sposób tworzysz swoją kopię zapasową, podstawowe kroki są takie same.

Przyjrzyjmy się, jak przywrócić twoją witrynę WordPress z kopii zapasowej. Ponieważ omawiamy różne metody przywracania, przejdź do sekcji, która dotyczy Ciebie:

Uwaga: Ten przewodnik dotyczy przywracania witryny WordPress z kopii zapasowej. Jeśli próbujesz przenieść swoją witrynę internetową do nowej domeny, powinieneś zapoznać się z naszym przewodnikiem na temat przenoszenia WordPressa do nowej domeny bez utraty SEO.

Jeśli próbujesz przenieść się z ustawienia regionalnego na konto hostingu Live, postępuj zgodnie z tym przewodnikiem, jak przenieść WordPress z serwera lokalnego na witrynę Live.

Przywracanie WordPressa za pomocą Duplicator Pro

Duplicator to jedna z najlepszych wtyczek do tworzenia kopii zapasowych WordPress. Bardzo ułatwia migrację i tworzenie kopii zapasowych twojej witryny.

Po pierwsze, musisz upewnić się, że masz pełną kopię zapasową twojej witryny WordPress utworzoną przez Duplicator.

Możesz dowiedzieć się więcej, korzystając z naszego przewodnika na temat tworzenia kopii zapasowych witryny WordPress.

Następnie należy pobrać plik archiwum kopii zapasowej na twój komputer. Będzie to kompletna kopia twoich plików WordPress, w tym motywów, wtyczek, ustawień i innych.

Jeśli twoje kopie zapasowe są przechowywane w zdalnej lokalizacji, takiej jak Dropbox, Google Drive lub OneDrive, możesz pobrać pliki kopii zapasowych z tych lokalizacji na swój komputer.

Następnie należy połączyć się z klientem FTP i usunąć wszystkie pliki WordPress. Następnie należy ponownie zainstalować WordPress i logować się do twojej witryny internetowej.

Delete old WordPress files

Następnie należy zainstalować i włączyć wtyczkę Duplicator. Aby uzyskać więcej informacji, zapoznaj się z naszym przewodnikiem na temat instalacji wtyczki WordPress.

Po włączeniu możesz przejść do Duplicator Pro ” Importuj z twojego kokpitu WordPress. Następnie możesz przesłać plik archiwum, po prostu przeciągając i upuszczając lub klikając przycisk „Wybierz plik”.

Import backup archive file

Wtyczka prześle teraz plik archiwum i wyświetli szczegóły.

Możesz przejrzeć szczegóły, a następnie kliknąć przycisk „Kontynuuj”.

View archive file status

Następnie należy ustawić punkt odzyskiwania, aby szybko przywrócić twoją witrynę do wcześniejszej daty.

Gdy to zrobisz, możesz kliknąć przycisk „Ustaw”.

Set a recovery point

Następnie otrzymasz adres URL odzyskiwania, który możesz przechowywać w bezpiecznym miejscu, aby użyć go w przyszłości.

Stąd możesz przewinąć w dół i kliknąć przycisk „Launch Installer”.

Launch installer

Następnie należy wdrożyć pakiet. Wtyczka wyświetli przegląd szczegółów instalacji. Pozwoli wybrać pełną instalację pojedynczej witryny lub przywrócenie pojedynczej witryny.

Możesz wybrać opcję „Przywróć pojedynczą witrynę” i przewinąć w dół, aby kliknąć przycisk „Dalej”.

Deploy the package

Pojawi się nowe okno z potwierdzeniem instalacji.

Możesz kliknąć przycisk „OK”, aby kontynuować.

Installation confirmation

Instalator wyodrębni teraz twoje pliki archiwum kopii zapasowej. Po zakończeniu powinieneś zobaczyć wyniki instalacji.

Możesz po prostu kliknąć przycisk „Admin Login”, aby sfinalizować instalację twojej kopii zapasowej.

Click admin login

Zaloguj się do twojego kokpitu WordPress.

To wszystko. Pomyślnie przywróciłeś swoją witrynę WordPress z kopii zapasowej Duplicator.

Przywracanie WordPressa z pliku kopii zapasowej BackupBuddy

BackupBuddy to popularna wtyczka premium do tworzenia kopii zapasowych WordPress. Jeśli używałeś BackupBuddy do tworzenia kopii zapasowych, ta sekcja jest dla Ciebie.

BackupBuddy oferuje bardzo wygodny sposób przywracania WordPressa z kopii zapasowej. W tym celu należy logować się do twojej witryny internetowej WordPress i przejść do strony BackupBuddy ” Restore/Migrate.

Konieczne będzie pobranie kopii pliku importbuddy.php. W trakcie tego procesu zostaniesz poproszony o podanie hasła do ImportBuddy. Hasło to będzie używane podczas przywracania twojej witryny internetowej.

Download importbuddy

Następnie musisz pobrać kopię twojej kopii zapasowej, jeśli jeszcze tego nie zrobiłeś. Możesz ją pobrać z BackupBuddy ” Kopie zapasowe lub miejsca docelowego, w którym przechowujesz swoje kopie zapasowe.

Po zapisaniu pliku zip z kopią zapasową i pliku importbuddy.php na komputerze, połącz się z twoją witryną internetową za pomocą FTP.

Jeśli masz pełną kopię zapasową witryny internetowej, usuń wszystkie pliki i katalogi z twojego serwera.

Jeśli jednak masz częściową kopię zapasową, musisz najpierw pobrać pliki, których kopia zapasowa nie została utworzona. Po upewnieniu się, że wszystko zostało zarchiwizowane, usuń wszystkie pliki i katalogi z katalogu głównego twojej witryny internetowej.

Delete old WordPress files

Następnie należy przesłać pliki BackupBuddy backup i importbuddy.php do katalogu głównego witryny internetowej.

Gdy oba pliki zostaną przesłane na serwer, przejdź na stronę importbuddy.php w twojej przeglądarce internetowej. Znajduje się on w katalogu głównym twojej witryny internetowej, więc jego adres URL będzie wyglądał następująco:

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

ImportBuddy poprosi teraz o podanie hasła utworzonego podczas pobierania ImportBuddy.

importbuddy password

Na następnym ekranie ImportBuddy wyświetli przesłany plik kopii zapasowej. Jeśli twój plik kopii zapasowej nie został przesłany za pomocą FTP, możesz kliknąć kartę przesyłania, aby przesłać plik kopii zapasowej teraz.

Jeśli twoje kopie zapasowe są przechowywane w usłudze przechowywania iTheme Stash, możesz się z nią połączyć, klikając teraz kartę stash. Po wybraniu twojej bazy danych kliknij „Next Step”, aby kontynuować.

Select your backup file

ImportBuddy rozpakuje twój plik kopii zapasowej i wyświetli komunikat o powodzeniu po wyodrębnieniu plików. Kliknij przycisk następnego kroku, aby kontynuować.

Na następnym ekranie ImportBuddy poprosi o podanie adresu URL witryny i informacji o bazie danych.

Jeśli przywracasz zhakowaną witrynę internetową WordPress lub próbujesz usuwać złośliwe oprogramowanie, nie chcesz korzystać ze starej bazy danych.

Możesz usunąć tabele z twojej starej bazy danych za pomocą phpMyAdmin lub utworzyć nową bazę danych za pomocą cPanel. Po utworzeniu nowej bazy danych lub opróżnieniu starej, podaj szczegóły twojej bazy danych.

Z drugiej strony, jeśli jesteś pewien, że twoja witryna nie została zhakowana, możesz użyć tych samych starych danych bazy danych.

database settings

Kliknij przycisk dalej, aby kontynuować, a ImportBuddy przetestuje teraz ustawienia Twojej bazy danych i zaimportuje Twoje dane. Po zakończeniu kliknij następny krok, aby kontynuować.

Teraz ImportBuddy zaktualizuje adresy URL Twojej witryny, ścieżki itp. Następnie zostaniesz poproszony o przetestowanie twojej witryny. Jeśli wszystko działa poprawnie, twoja witryna internetowa została pomyślnie przywrócona.

Review and cleanup

Na stronie ImportBuddy kliknij przycisk „Wyczyść i usuwaj pliki tymczasowe”. Spowoduje to usunięcie tymczasowych danych w bazie danych i plików utworzonych podczas przywracania.

Przywracanie bazy danych WordPress z kopii zapasowej przy użyciu phpMyAdmin

Podczas przywracania ręcznie utworzonej kopii zapasowej można napotkać dwie możliwości. Możesz albo utworzyć nową bazę danych i zaimportować do niej twoją kopię zapasową, albo opróżnić istniejącą bazę danych i zaimportować kopię zapasową.

Jeśli czyścisz zhakowaną witrynę internetową WordPress, bardzo ważna jest zmiana nazwy użytkownika i hasła MySQL przed utworzeniem nowej bazy danych lub importowaniem jej do istniejącej bazy danych.

Aby utworzyć nową bazę danych, zaloguj się do kokpitu cPanel twojego konta hostingowego WordPress i kliknij ikonkę „Bazy danych MySQL”.

Open MySQL database in Bluehost

Następnie zostaniesz poproszony o podanie nazwy twojej bazy danych.

Gdy to zrobisz, kliknij przycisk „Utwórz bazę danych”.

Create new database

Po utworzeniu nowej bazy danych potrzebny jest użytkownik MySQL powiązany z tą nową bazą danych.

Wystarczy przewinąć w dół do sekcji Użytkownicy MySQL i utworzyć nowego użytkownika.

Add new database user

Następnie należy dodać tego użytkownika do bazy danych MySQL.

Przewiń w dół do sekcji „Dodaj użytkownika do bazy danych”, wybierz użytkownika wraz z bazą danych z rozwijanych menu, a następnie kliknij przycisk „Dodaj”.

Add user to db

Teraz twoja nowa baza danych jest gotowa. Możesz jej użyć do przywrócenia twojej kopii zapasowej bazy danych WordPress.

Przejdź ponownie do kokpitu cPanel, a następnie kliknij opcję phpMyAdmin.

phpmyadmin panel in Bluehost

Następnie należy kliknąć na twoją nową nazwę bazy danych.

Następnie kliknij przycisk „Importuj”.

Choose backup file to import

Wystarczy kliknąć przycisk „wybierz plik”, aby wybrać plik kopii zapasowej bazy danych WordPress, a następnie kliknąć przycisk „przejdź” u dołu strony, aby kontynuować.

phpMyAdmin prześle teraz twoją kopię zapasową i zaimportuje ją do bazy danych. Po zakończeniu zostanie wyświetlony komunikat o powodzeniu.

To wszystko. Pomyślnie importowałeś swoją bazę danych WordPress.

Teraz następnym krokiem jest zainstalowanie WordPressa przy użyciu twojej nowej bazy danych. Jeśli już zainstalowałeś WordPressa, to po prostu utwórz nowe ustawienia bazy danych w pliku wp-config.php i będziesz gotowy do pracy.

Przywracanie kopii zapasowej bazy danych WordPress przy użyciu cPanel

Jeśli ręcznie utworzyłeś kopię zapasową bazy danych WordPress za pomocą cPanelu w twoim hostingu współdzielonym, możesz również przywrócić tę bazę danych za pomocą cPanelu.

Zaloguj się na swoje konto cPanel i w sekcji Pliki kliknij „Kopia zapasowa”.

Go to backup option in cPanel

Na stronie kopii zapasowych przewiń w dół do „Przywróć kopię zapasową bazy danych MySQL”.

Następnie kliknij przycisk „Wybierz plik” i wybierz plik kopii zapasowej z twojego dysku twardego. Po zakończeniu kliknij przycisk „Prześlij”.

Restore database using cPanel

Ręczne przywracanie plików WordPress za pomocą FTP

Jeśli przywracasz WordPressa w celu oczyszczenia zhakowanej witryny, musisz najpierw usunąć wszystkie istniejące pliki i katalogi WordPressa.

Zrób to tylko wtedy, gdy twoja kopia zapasowa jest aktualna i masz wszystko dostosowane, zmienione lub przesłane na twoją witrynę internetową.

Jeśli masz wszystkie wgrane pliki i własne konfiguratory, możesz bezpiecznie usunąć wszystko z witryny internetowej za pomocą cPanel (znacznie szybciej) lub za pomocą FTP.

Aby usunąć wszystkie pliki z twojej witryny internetowej, musisz logować się do cPanelu kokpitu twojego hostingu. Następnie w sekcji Pliki należy kliknąć ikonkę „Menedżer plików”.

Go file manager in cPanel

Wybierz Webroot jako twój katalog i kontynuuj. Interfejs menedżera plików otworzy się teraz w nowej karcie przeglądarki. Będziesz musiał wybrać wszystkie pliki WordPress i usunąć je. Ten sposób jest znacznie szybszy.

Możesz również usunąć pliki za pomocą FTP, ale jest to wolniejsze. Wystarczy połączyć się z twoją witryną internetową za pomocą klienta FTP i wybrać wszystkie pliki w katalogu głównym WordPress, aby je usunąć.

Delete old WordPress files

Następnie należy pobrać świeżą kopię WordPressa ze strony WordPress.org i rozpakować ją na twój dysk twardy.

Uruchom klienta FTP, a następnie prześlij wszystkie pliki WordPress na twój serwer.

Upload WordPress files

Po przesłaniu plików WordPress możesz przesłać plik wp-config.php z twojej kopii zapasowej (tylko jeśli masz pewność, że jest czysty i nie jest zagrożony).

Alternatywnie możesz zmienić nazwę pliku wp-config-sample.php w twoich świeżo przesłanych plikach WordPress na plik wp-config.php. Następnie będziesz musiał edytować plik wp-config.php i wpisz informacje o twojej bazie danych.

Nie zapomnij zapisać pliku i przesłać go z powrotem na twoją witrynę internetową.

Następnie musisz przesłać inne pliki z twojej kopii zapasowej. Zalecamy wgranie twoich obrazków tylko do katalogu /wp-content/uploads/.

Po ich przesłaniu przejdź na twoją witrynę internetową, aby sprawdzić, czy wszystko działa poprawnie.

Następnie musisz logować się do obszaru administracyjnego WordPress i rozpocząć instalację wtyczek, które miałeś na swojej witrynie.

Teraz możesz przejść do instalacji twojego motywu. Jeśli dostosowałeś swój motyw WordPress lub korzystałeś z motywu potomnego, możesz przywrócić go z kopii zapasowej. Upewnij się jednak, że pliki te są czyste.

Na koniec przejdź do Ustawienia ” Bezpośrednie odnośniki i dostosuj ustawienia bezpośrednich odnośników, aby pasowały do twojej witryny, a następnie zaktualizuj bezpośrednie odnośniki.

Rozwiązywanie problemów z przywracaniem kopii zapasowych WordPressa

Istnieje kilka typowych problemów, na które możesz się natknąć podczas przywracania twojej witryny internetowej WordPress.

Dla każdego z nich mamy osobne przewodniki:

Czynności, które należy wykonać po przywróceniu twojej witryny WordPress

Po pomyślnym przywróceniu twojej witryny internetowej zdecydowanie zalecamy poprawę jej zabezpieczeń.

Jeśli jeszcze tego nie zrobiłeś, upewnij się, że regularnie wykonujesz kopię zapasową WordPress za pomocą jednej z tych wtyczek do tworzenia kopii zapasowych WordPress.

Aby zabezpieczyć twoją witrynę internetową, zalecamy natychmiastową zmianę hasła WordPress. Jeśli prowadzisz witrynę internetową dla wielu użytkowników, poproś wszystkich użytkowników o natychmiastową aktualizację haseł.

Można również zainstalować zaporę witryny internetowej. W WPBeginner używamy Cloudflare do zabezpieczenia naszej witryny internetowej. Więcej szczegółów można znaleźć w naszym przewodniku na temat tego, dlaczego przeszliśmy z Sucuri na Cloudflare.

Mamy nadzieję, że ten artykuł pomógł ci dowiedzieć się, jak przywrócić WordPress z kopii zapasowej. Warto również zapoznać się z naszym przewodnikiem krok po kroku dotyczącym zabezpieczeń WordPress a dla początkujących oraz dowiedzieć się, jak uzyskać bezpłatną domenę e-mail.

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.

Ujawnienie: Nasze treści są wspierane przez czytelników. Oznacza to, że jeśli klikniesz na niektóre z naszych linków, możemy otrzymać prowizję. Zobacz jak WPBeginner jest finansowany, dlaczego to ma znaczenie i jak możesz nas wspierać. Oto nasz proces redakcyjny.

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.

Najlepszy zestaw narzędzi WordPress

Uzyskaj BEZPŁATNY dostęp do naszego zestawu narzędzi - zbiór produktów i zasobów związanych z WordPressem, które każdy profesjonalista powinien mieć!

Reader Interactions

91 komentarzyZostaw odpowiedź

  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. 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.

      Administrator

  3. 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.

      Administrator

    • WPBeginner Support says

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

      Administrator

  4. 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.

      Administrator

  5. 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.

      Administrator

  6. 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

  7. 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.

  8. 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!!

  9. 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.

  10. 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?

  11. 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?

  12. 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?

  13. 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

  14. 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 ?

  15. 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.

  16. 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

  17. 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!

  18. 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??

  19. 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

  20. 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.

  21. 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.

  22. 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 .

  23. 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.

  24. 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?

  25. 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.

      Administrator

  26. 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.

  27. 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.

  28. Graceson says

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

    Thanks in advance.

  29. 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?

  30. 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

  31. 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.

      Administrator

  32. 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!

  33. 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.

  34. 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.

  35. 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.

        Administrator

  36. 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

  37. 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.

  38. 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.

      Administrator

  39. 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.

    • 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.

      Administrator

  40. 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.

      Administrator

  41. 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.

  42. 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!

  43. 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.

  44. 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

  45. Brenda says

    I have been able to follow the instructions above for restoring my wordpress database using cpanel by dropping the tables in the current database and replacing them with the backedup database.

    However I can’t work out how to do it if I create a new database – the article says to go into mysql within cpanel and set up a new database, password etc but how do I link the new database to the files that I have reinstalled?

    Thank you

    • WPBeginner Support says

      Brenda, connect to your website using an FTP client like filezilla, download wp-config.php file from your website’s root directory create a backup of it by simply making a copy of it. Open it in a text editor like notepad. and enter your database name, database user name, database password, and host (usually localhost). Save the file and upload it back to your website.

      Administrator

      • Brenda says

        Thanks. I have done that but when I try to access the site I get „Error establishing a database connection”

        I did what you said and replaced the original wp-config file with the new version.

        What else do I need to do to be able to use the new version of the database, rather than the original one?

        • Brenda says

          Sorry, some more information that might clarify what is happening. When I try, as suggested in your article, to access the wp-admin url I get an error message that starts with the following:

          We were able to connect to the database server (which means your username and password is okay) but not able to select the NAME database.

        • Brenda says

          Sorry, some more information that might clarify what is happening. When I try, as suggested in your article, to access the wp-admin url I get an error message that starts with the following:

          We were able to connect to the database server (which means your username and password is okay) but not able to select the NAME database.

          At the bottom it says: On some systems the name of your database is prefixed with your username, so it would be like username_webgyzec_replacewp1. Could that be the problem?

          That is indeed the case. So what do I need to change please to get this to work?

        • Brenda says

          OK I can stop sending messages now. Silly error on my part but now everything is working.

          Thank you SO much for such a helpful article.

Zostaw odpowiedź

Dziękujemy za pozostawienie komentarza. Pamiętaj, że wszystkie komentarze są moderowane zgodnie z naszymi polityka komentarzy, a Twój adres e-mail NIE zostanie opublikowany. NIE używaj słów kluczowych w polu nazwy. Przeprowadźmy osobistą i konstruktywną rozmowę.