# Checklist sync médias staging → production WordPress

**Plugin :** Media Sync Staging→Prod by Volade v1.0.0  
**Durée estimée :** 30–45 min (premier appairage)

## Phase 1 — Prérequis

- [ ] Staging et production accessibles en HTTPS
- [ ] Structure `wp-content/uploads` identique (même préfixe table si multisite)
- [ ] Plugin installé sur **les deux** environnements
- [ ] Sauvegarde production récente (fichiers + BDD)

## Phase 2 — Appairage

- [ ] Staging : rôle **Staging (source)** — copier la clé de sync
- [ ] Production : rôle **Production** — URL staging + clé
- [ ] **Test connection** → ping OK
- [ ] Vérifier REST : `/wp-json/mssp/v1/ping` (header `X-MSSP-Key`)

## Phase 3 — Dry-run

- [ ] Preset **Dry-run compare only** ou `wp mssp pull --dry-run`
- [ ] Noter le nombre de fichiers manquants
- [ ] Valider avec le client / chef de projet

## Phase 4 — Pull

- [ ] Choisir preset : handoff complet, WooCommerce ou 30 jours
- [ ] Premier run avec batch 25 (défaut)
- [ ] Vérifier pages front — images OK
- [ ] Régénérer miniatures si activé

## Phase 5 — Livrable

- [ ] Export JSON admin
- [ ] Journal de sync archivé
- [ ] Documenter clé + URL dans runbook agence (hors Git public)

---

**WP-CLI :** `wp mssp compare` · `wp mssp pull --preset=recent_30` · `wp mssp export`
