Khi cần thực hiện Backup lại website để Restore lại khi có thao tác thực hiện chỉnh sửa website, thay đổi giao diện website thì có thể thao tác thực hiện Backup Restore website. Bài viết hướng dẫn Backup Restore dữ liệu Website WordPress bằng WordPress Toolkit. Show 1. Tìm website cần thực hiệnBước đầu tiên bạn cần truy cập vào Hosting và vào mục WP-toolkit Ở mục Bộ công cụ WordPress nếu website của Quý khách chưa được hiển thị có thể thực hiện thao tác scan để website được hiển thị. Trường hợp thực hiện thao tác Scan không hiển thị được Website bạn có thể thực hiện thao tác tại mục public_html tìm các tệp có tên .wp-toolkit-ignore trong thư mục website và xóa đi. 2. Thực hiện BackupĐể thực hiện Backup bạn có thể thao tác kích chọn vào mục Backup and Restore kích chọn Backup và đợi tiến trình thực hiện hoàn tất. 3. Thực hiện RestoreĐể thực hiện Backup bạn có thể thao tác kích chọn vào mục Backup and Restore và rê chuột vào bản Backup cần khôi phục thực hiện kích chọn vào biểu tượng và kích chọn Restore đợi tiến trình khôi phục hoàn tất. 4. Thực hiện xóa các bản BackupĐể tránh tình trạng các bản backup không còn sử dụng chiếm dung lượng lưu trữ có thể thực hiện thao tác vào mục Backup and Restore và tích chọn vào các tệp backup cần xóa kích chọn Delete. The backup process is one of the most important aspects of data management. It helps you protect your website in case of disaster and avoid the possibility of losing the entire data. Thus, in this tutorial, we will guide you how to backup databases in your WordPress site step by step. Then, we will provide you with steps to restore your website to the previously backed up version. ***Note*** Currently, there are many plugins supporting you to backup database. No matter plugin you use, all basic principles of them share the same logic. But, we strongly recommend you to use BackWPup (FREE) and BackupBuddy (it is one of the best premium backup plugins, but its pricing plan seems expensive). Part I. Backups ExplainedBefore implementing the backup process your WordPress site, you should pay your attention to two following concepts:
In fact, WordPress database contains all content created on your site, including posts, comments, inquiries, etc. If your database gets erased or corrupted, you will face the risk of losing the entire content, whether it is the content that you wrote 3 years ago. All of them will be cleared if you haven’t backed up your site before. There are many reasons for this worse situation that we cannot control, but the only thing that you should do is backup your data regularly. The file contains all contents making up your WordPress site, including theme, plugin, all media files (video, image, document, etc.) uploaded to your site (it’s located in Media section). There is no worse than that a hacker somehow intervenes or logins to your site or FTP and deletes all files, especially these files involved in finance and transactions occurred on your site. Thus, backup your site is really an essential and basic process. It will help you restore the previous version if there are any worse problems. When are backups necessary?
Part II. Taking the backupThe easiest way to implement the backup process is using the plugin. Thus, we will guide you backup your site based on using BackWPup plugin: Step 1: Install and activate BackWPup plugin.
Step 2: Creating Backup Jobs with BackWPup
Step 3: Scheduling Automated Backup Click on Schedule tab and choose how often do you want to backup your site. For beginners users, we highly recommend you to select WordPress Cron option to schedule a daily or weekly backup. Step 4: Settings for database backup
Step 5: Select folder to backup Click Files tab to select what folders you want to backup. We would recommend that you should only backup your wp-content/uploads folder instead of backup core WordPress files. Step 6: Saving WordPress Backups To Dropbox
When should you take a backup?
Part III. Restore the Database from BackupBelow are all required steps helping you to restore the database in case your site is hacked. ***IMPORTANT*** You can ONLY restore the database after implementing backup your site. Step 1: Login to cPanel. Step 2: Go to PHPMyAdmin. It is located in the databases section. Step 3: Choose the corresponding tab that you will be importing your data into. Step 4: Drop (delete) the database that you’ve chosen. ***Note*** All must select and drop all database (database contains a lot of tables). Step 5: Check that you can able to access to your website or not. Step 6: Find the backup files that you’ve implemented in Part II. Step 7: Importing backup file into PHPMyAdmin by click on Import tab. Click on “Choose File” to import database Choose the backup database you want to import Click on “Go” to run the backup file Step 8: Access to your website again to check this database run or not. The above steps are just a particular instance for cPanel. The most important thing of this tutorial is that it will help you prepare for the worst possible situation. In that case, you can restore the database yourself. Part IV. Restore the FilesOne of the most common types of website attacks involved in files is that hacker can insert a malicious code into files with popular formats such as .jpeg. Normally, when users or visitors take whatever actions on this site, they will unintentionally activate and help the viral infection spread out. In most situations, when your website meets this kind of problem, the host providers will automatically email to notify you. Some host providers will also automatically shut down your site as soon as your site is attacked, so you should contact them to log into your site again. Besides, you need to delete all file inserted the malicious code and restore them if you encounter this case (your files get damaged and corrupted). BUT, you have to backup database in advance before carrying out the restore process. ***Note*** The steps described below may differ from the folder structure that you customized. Step 1:
Step 2: Compress file.
Step 3: Download the file that you’ve compressed to your computer. Please note that you should choose the format “site_name_date_backup_zip” for naming your files. “enginetheme_com_2016_12_13.zip” for instance. Step 4: Remove files and folders in the “…wp-content” folder. Please note that you will see the warning that your files and databases will be overwritten before you conduct the restore process. “Restoring files or databases from a backup will overwrite the files or databases currently on your account” is an example being warned by Bluehost. Step 5: Upload the backup file to carry out the restore process.
Click “Select File” button to upload file Select file you want to upload & click “Open” Step 6: Extract file you’ve uploaded. That’s finished. Part V. Lesson SummaryALWAYS run a backup! You should backup your site database whenever you change its design & content to avoid losing all files and data when the nasty happens. There are two things you need to do, including database and files. But DATABASE backup is the most important process since it’s the most difficult element to restore in case your site was lost. You should restore your site by using the management area provided by the host, cPanel for example. Also, you should use the premium backup plugin to backup your site database if possible. ***Note*** This tutorial is the most important tutorial of EngineThemes. So, you should read carefully and step – by – step practice to create full backups of your WordPress site and carry out restoring database & files to avoid unwanted stress. |