Topics

On this page

Last updated on Nov 3, 2026

ee site sync

Syncs a website from source to an existing website in destination.

Note: ee site sync overwrites the destination site. Files under app/htdocs (except wp-config.php) are replaced, files that don’t exist on the source are deleted, and the database is replaced. Back up the destination first with ee site backup <site-name>.

SYNOPSIS

ee site sync <source> <destination> [--files] [--db] [--uploads]

OPTIONS

<source>
: Name of source website to be synced. Format [user@ssh-hostname:]sitename

<destination>
: Name of destination website to be synced. Format [user@ssh-hostname:]sitename

[--files]
: Sync only files.

[--db]
: Sync only database.

[--uploads]
: Sync only uploads.

EXAMPLES

# Sync site on same host
$ ee site sync foo.com bar.com

# Sync site from remote server
$ ee site sync root@foo.com:foo.com bar.com

# Sync site from remote with same name
$ ee site sync root@foo.com:foo.com .

# Sync site to remote
$ ee site sync foo.com root@foo.com:bar.com

# Sync site from remote. Only sync files and db, not uploads
$ ee site sync root@foo.com:foo.com bar.com --files --db

SUBCOMMANDS

NameDescription
ee site cleanClears Object and Page cache for site.
ee site cloneClones a website from source to a new website in destination.
ee site createRuns site installation with provided site type.
ee site deleteDeletes a website.
ee site disableDisables a website. It will stop and remove the docker containers of the website if they are running.
ee site enableEnables a website. It will start the docker containers of the website if they are stopped.
ee site infoDisplay all the relevant site information, credentials and useful links.
ee site listLists the created websites.
ee site publish

Publishes site online using ngrok.

ee site refreshRe-create sites docker-compose file and update the containers.
ee site reloadReload services in containers without restarting container(s) associated with site.
ee site restartRestarts containers associated with site.
ee site shareShare a site online using ngrok.
ee site ssl

Verifies ssl challenge and also renews certificates(if expired).

ee site ssl-renewRenews letsencrypt ssl certificates.
ee site ssl-verifyCompletes or retries Let’s Encrypt certificate issuance for a site.
ee site updateSupports updating and upgrading site.

GLOBAL PARAMETERS

--sites_path=<path>
    Absolute path to where all sites will be stored.

--locale=<locale>
    Locale for WordPress.

--le-mail=<le-mail>
    Mail-id to be used for letsencrypt.

--env=<env>
    EasyEngine server environment.

--wp-mail=<wp-mail>
    Default Mail-id to be used for WordPress site installation.

--sysctl=<true/false>
    Whether to add sysctl config in docker-compose.

--skip-tty=<true/false>
    Skip tty allocation for remote command execution.

--custom-compose=<custom-compose file>
    Path to custom compose file.

--[no-]color
    Whether to colorize the output.

--debug[=<group>]
    Show all PHP errors; add verbosity to EE bootstrap.

--quiet
    Suppress informational messages.