Multisite Support
Plugin hỗ trợ WordPress Multisite — backup toàn bộ network hoặc một subsite riêng.
Backup full network
Network Admin → SL Migrations → Packages → Create New:
- Tick Include all subsites
- Plugin backup:
- Main site (
wp_*tables) - Tất cả subsite (
wp_2_*,wp_3_*, …) wp_blogs,wp_site,wp_users,wp_usermeta- Toàn bộ
wp-content/uploads/sites/hoặcwp-content/blogs.dir/
- Main site (
Backup 1 subsite
Network Admin → SL Migrations → Packages → Create New → Components:
- Chọn Subsite Only
- Chọn subsite ID từ dropdown
- Plugin chỉ backup table của subsite đó và uploads của subsite
Lợi ích: archive nhỏ hơn nhiều, có thể restore vào site standalone.
Restore subsite thành site standalone
Pattern phổ biến: tách 1 subsite ra thành standalone WordPress riêng.
- Backup subsite (như trên)
- Trên server đích, cài WordPress fresh và plugin SL Migrations
- Import archive
- Installer hỏi "Convert multisite subsite to standalone?" → Yes
- Plugin tự:
- Rename table
wp_2_*→wp_* - Update
wp-config(loại bỏ multisite constants) - Search & replace URL
- Clear cache
- Rename table
Restore standalone thành subsite trong network
Ngược lại — push 1 standalone WordPress vào làm subsite của network:
- Backup standalone (full mode)
- Trên multisite, tạo subsite trống mới (giả sử ID 5)
- Network Admin → SL Migrations → Import
- Upload archive → chọn Import as subsite ID 5
- Plugin rename table →
wp_5_*và updatewp_blogs
Lưu ý
- Domain mapping: nếu network dùng domain mapping, đảm bảo plugin domain mapper cũng được backup
- Network plugins: plugin active ở network level → backup
wp-content/pluginslà OK - Users table: shared across network, không restore lẻ tẻ → có thể vỡ ownership posts