-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwpdb-import-example-multisite.conf
More file actions
62 lines (50 loc) · 2.19 KB
/
Copy pathwpdb-import-example-multisite.conf
File metadata and controls
62 lines (50 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# ===============================================
# WordPress Database Import Configuration - Multisite Example
# ===============================================
# This is an example configuration file for WordPress Multisite installations.
# Copy this file to your WordPress root directory as 'wpdb-import.conf'
# and customize the settings for your project.
#
# File Location: Place in the same directory as wp-config.php
# Usage: wp-db-import will automatically detect and use this configuration
[general]
# SQL file to import (relative to WordPress root or absolute path)
sql_file=multisite-production.sql
# Main production domain (usually the network admin domain)
old_domain=admin.example.com
# Main local development domain
new_domain=example.test
# Include all database tables (recommended for complete imports)
# Set to false to only process WordPress core tables
all_tables=true
# Run in preview mode without making actual changes
# Set to true for testing, false for actual imports
dry_run=false
# Automatically clear post revisions before search-replace
# Improves performance by reducing database size
clear_revisions=true
# Automatically setup Stage File Proxy plugin for media management
# Allows using production media files without downloading them
setup_stage_proxy=true
# Skip confirmation prompts and proceed automatically
# Set to false for safer, interactive operation (recommended for multisite)
auto_proceed=false
[site_mappings]
# Format: blog_id:old_domain:new_domain
# Each line represents one site in your multisite network
#
# Example mappings for a typical multisite setup:
# Main site (ID 1) - Network admin
1:admin.example.com:example.test
# Subsites - Map each production subdomain to local subdirectory
2:blog.example.com:example.test/blog
3:shop.example.com:example.test/shop
4:news.example.com:example.test/news
5:support.example.com:example.test/support
6:docs.example.com:example.test/docs
# Alternative: Subdomain to subdomain mapping
# 2:blog.example.com:blog.example.test
# 3:shop.example.com:shop.example.test
# Note: If your database contains sites not listed here,
# the tool will prompt you to configure them during import
# and automatically add them to this file for future use.