---
title: "Khôi phục WordPress từ backup"
url: https://phatdev.net/docs/sl-migrations/restore-wordpress-from-backup
lang: vi
updated: 2026-10-17
alternate:
  en: https://phatdev.net/en/docs/sl-migrations/restore-wordpress-from-backup
markdown: https://phatdev.net/docs/sl-migrations/restore-wordpress-from-backup.md
---

# Khôi phục WordPress từ backup

Thuộc bộ tài liệu: [SL Migrations](https://phatdev.net/docs/sl-migrations.md)

> Tổng quan các cách khôi phục và cách chọn mode phù hợp.

Tổng quan các cách khôi phục khi đã có `archive` + `installer.php`.

## Chọn mode phù hợp

| Tình huống | Mode khuyến nghị |
|---|---|
| Site đích trống (server mới) | [Classic Install](https://phatdev.net/docs/sl-migrations/classic-install) |
| Site đích có WordPress, muốn ghi đè | [Overwrite Install](https://phatdev.net/docs/sl-migrations/overwrite-install) |
| Site đích có WordPress, restore vào staging | [Import Install](https://phatdev.net/docs/sl-migrations/import-install) |
| Chỉ muốn restore database | [Database Install](https://phatdev.net/docs/sl-migrations/database-install) |
| Site rất lớn / shared hosting | [Two-Part Install](https://phatdev.net/docs/sl-migrations/two-part-install) |
| Site chính bị hỏng | [Recovery Point](https://phatdev.net/docs/sl-migrations/recover-a-backup) |

## Quy trình chung

1. **Chuẩn bị server đích**:
   - Database trống với user có ALL PRIVILEGES
   - Web root có quyền ghi
   - PHP đủ yêu cầu (xem [Quick Start](https://phatdev.net/docs/sl-migrations/quick-start))

2. **Upload file**:
   - `installer.php` + archive vào web root
   - Hoặc dùng tính năng Import nếu archive đã ở storage

3. **Truy cập `installer.php`** trên trình duyệt

4. **Nhập thông tin database** ở step 2

5. **Verify** ở step 4 → installer tự xóa file tạm

## Sau khi khôi phục

- Đăng nhập wp-admin và kiểm tra site
- Verify permission các file/folder
- Test các page chính, form, checkout
- Kiểm tra email gửi từ site (form contact, đăng ký, …)

## Migration domain

Nếu domain mới khác domain cũ, installer tự search & replace URL trong database. Nhưng cần kiểm tra thêm:

- Hardcoded URL trong theme files
- CDN config
- Sitemap / robots.txt
- Email template
- Plugin có cache nội bộ

Tham khảo: [Migration WordPress](https://phatdev.net/docs/sl-migrations/how-to-migrate-wordpress-site).
