Skip to main content

File Synchronization

Real-time file sync keeps WordPress files identical on both servers.

What's Synced

  • WordPress core files
  • Themes
  • Plugins
  • Uploads (media files)
  • Web server configurations (nginx/apache)

What's NOT Synced

  • wp-config.php (contains server-specific settings)
  • Cache directories
  • Log files
  • .git directories

How It Works

  1. inotify watches for file changes on master
  2. Changes batched for 5 seconds (prevents rapid-fire syncs)
  3. rsync transfers changed files to slave
  4. Web server configs validated before applying

Monitoring

Dashboard shows:

  • Sync service status
  • Monitored directories
  • Last sync timestamp
  • Monitored config paths