---
title: "Bắt đầu với SL Migrations"
url: https://phatdev.net/docs/sl-migrations/getting-started
lang: vi
updated: 2026-10-20
alternate:
  en: https://phatdev.net/en/docs/sl-migrations/getting-started
markdown: https://phatdev.net/docs/sl-migrations/getting-started.md
---

# Bắt đầu với SL Migrations

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

> Giới thiệu plugin và cách tạo gói backup đầu tiên.

SL Migrations là plugin **backup, migration và restore** cho WordPress. Plugin đóng gói toàn bộ site (file + database) thành một file archive duy nhất kèm một file installer độc lập, cho phép khôi phục site ở bất kỳ máy chủ nào hỗ trợ PHP và MySQL.

## Cài đặt plugin

1. Vào **Plugins → Add New → Upload Plugin** trong WordPress admin.
2. Chọn file zip của plugin → **Install Now** → **Activate**.
3. Sau khi kích hoạt, menu **SL Migrations** xuất hiện ở sidebar admin.

## Yêu cầu tối thiểu

- WordPress 4.9+
- PHP 7.4+ (khuyến nghị 8.2)
- MySQL 5.6+ hoặc MariaDB tương đương
- PHP extension: `zip`, `openssl`, `mbstring`, `curl`, `mysqli`

## Tạo backup đầu tiên

1. Vào **SL Migrations → Packages** → click **Create New**.
2. Đặt tên cho gói backup → **Next**.
3. **Scanner**: plugin kiểm tra môi trường và kích thước site. Đa số cảnh báo có thể bỏ qua - chỉ cần fix khi thấy lỗi đỏ.
4. **Build**: plugin nén toàn bộ file và xuất database.
5. Khi xong, tải về hai file:
   - File **archive** chứa nội dung site
   - File **installer.php** dùng để khôi phục

## Khôi phục site

1. Upload cả hai file lên máy chủ đích (thư mục gốc của website).
2. Truy cập `https://site-dich.com/installer.php` trên trình duyệt.
3. Nhập thông tin database mới (host, tên DB, user, password).
4. Installer tự ghi đè wp-config, import database, giải nén file.
5. Sau khi xong, site mới sẽ giống hệt site nguồn.

## Bước tiếp theo

- [Quick Start chi tiết](https://phatdev.net/docs/sl-migrations/quick-start)
- [Lên lịch backup tự động](https://phatdev.net/docs/sl-migrations/schedule-backup)
- [Hướng dẫn khôi phục](https://phatdev.net/docs/sl-migrations/restore-wordpress-from-backup)
