Not a developer? Go to MovableType.com

Documentation

Content Sync

About Content Sync

With Content Sync, content generated through Movable Type can be sent to an external web server for publication. Movable Type does not need to be installed on this web server.  This greatly reduces security risks, such as unauthorized access to Movable Type and the database server.

By syncing content to an external server, the web server where Movable Type Advanced is installed can be used instead as a staging environment or to store content from the Production environment as a warm standby server.

Content Sync also allows blogs and websites to published to multiple servers.  Similarly, Content Sync can be used to publish blogs and websites on the same web server that actually originate on separate instances of Movable Type Advanced.

Both FTP and Rsync are supported as distribution methods.  However, the Rsync Option must be installed before content can be synced using Rsync.

Using Content Sync

Activating Content Sync

  1. Select either [website] or [blog] from the navigation menu at the top of the page.
  2. Select [Settings] -> [Content Sync] from the side menu.
  3. Check [Enable content synchronization] to activate.

Registering a Destination

FTP Sync

The following information is required for an external web server FTP connection. Remember to click the [Save changes] button after entering all necessary information.

Sync Type

Select [FTP]

FTP Server

Enter the destination server address

Port

Enter the destination server’s FTP server port number

SSL

Check SSL in order to connect to the server using SFTP rather than FTP

Username

Enter the username part of the credentials for the FTP server connection

Password

Enter the password part of the credentials for the FTP server connection

Start Directory

Enter the top-level directory to be selected when the FTP server connection is established

Scheduled Sync

Content can be scheduled to be synchronized automatically at a pre-set date and time.

Sync Date

Enter the day and time to synchronize content with the external server

Recipient for Notification

Enter the email address to be notified when the synchronization is completed

Receive Error Notification Only

If checked, a notification email will only be sent if the synchronization attempt fails

Sync Now

If the [Sync Now] option is used, content will be synchronized right away.  One or more valid server locations must be registered in order to successfully use this option.

  1. Enable Content Sync
  2. Register a destination and save
  3. Click the [Sync Now] button

Using the Rsync Option

The Rsync Option is only available when Movable Type Advanced is installed.

Installing the Rsync Option

The file with the following directory structure can be accessed after unzipping the Rsync Option package file. Copy the directory from [addons] along with the file and paste them into the Movable Type Advanced startup directory.

MTA6-Rsync-Option

addons/

Sync.pack/

lib/

MT/

FileSynchronizer/

Rsync.pm

Using Rsync to synchronize content on the local server

If you are using Rsync to synchronize content to another location on the local server, in the operating system services required to enable Rsync must also be installed and running.  Write permission in the file system is required when Movable Type accesses the “Rsync Destination” directory. 

Sync Type

Select [Rsync]

Rsync Destination

Enter the absolute file system path for the Rsync destination directory

Using Rsync to synchronize content to a remote server

If you are using Rsync to synchronize content to a remote server, the operating system services required to enable Rsync must be installed and running.  Also, the SSH public key must be exhanged between the source and destination servers.

The RsyncOptions configuration directive must be set in mt-config.cgi (or the file containing your Movable Type configuration) before synchronization is attempted.  The required information is listed below:

RsyncOptions -a —delete -e SSH

Sync Type

Select [Rsync]

Rsync Destination

Enter the Rsync target directory for the destination server along with the host name / Fully Qualified Domain Name or IP address.  In some cases, the username also will need to be specified before the host name.

Example 1: username@192.168.0.100:/var/www/htdocs/test

Example 2: username@rsync.yourprovider.com:/home/yourwebsitename/public_html/test

Restrictions / Notes

  • Content created using Dynamic Publishing or plugins that create dynamic content cannot be synchronized to other servers in this fashion.
  • Comments and trackbacks received will not be synchronized to the destination server.
  • Content in the [mt-static] directory will not be synchronized to the destination server.
Back