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
- Select either [website] or [blog] from the navigation menu at the top of the page.
- Select [Settings] -> [Content Sync] from the side menu.
- Check [Enable content synchronization] to activate.
The following information is required for an external web server FTP connection. Remember to click the [Save changes] button after entering all necessary information.
Enter the destination server address
Enter the destination server’s FTP server port number
Check SSL in order to connect to the server using SFTP rather than FTP
Enter the username part of the credentials for the FTP server connection
Enter the password part of the credentials for the FTP server connection
Enter the top-level directory to be selected when the FTP server connection is established
Content can be scheduled to be synchronized automatically at a pre-set date and time.
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
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.
- Enable Content Sync
- Register a destination and save
- Click the [Sync Now] button
The Rsync Option is only available when Movable Type Advanced is installed.
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.
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.
Enter the absolute file system path for the Rsync destination directory
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
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: firstname.lastname@example.org:/var/www/htdocs/test
Example 2: email@example.com:/home/yourwebsitename/public_html/test
- 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.