A SERVICE OF

logo

File Synchronization with rsync
BEA AquaLogic Commerce Services Deployment Guide 59
Setup the rsync Client on the Storefront Servers
1. Create a new file /sbin/rsync_alcs as follows (replacing CM_SERVER_IP with the IP address
of the server that will be hosting the Commerce Manager and ALCS_INSTALL_PATH with
the path to the root of the AquaLogic Commerce Services code base).
#!/bin/bash
rsync --verbose --progress --stats --compress --recursive --
times --perms
--links --delete
CM_SERVER_IP::assets/* <ALCS_APP_HOME>/ /assets
rsync --verbose --progress --stats --compress --recursive --
times --perms
--links --delete
CM_SERVER_IP::templates/* <ALCS_APP_HOME>/commerceServices
/template-resources/templates
1. Execute "chmod 744 /sbin/rsync_alcs"
2. Create a new cron job /etc/cron.d/rsync as follows:
1. # run rysnc every 10 minutes
2. */10 * * * * root /sbin/rsync_alcs
Keep in mind that if a large number of files need to be replicated, it may take a
while before they are transferred to each Storefront. If you are planning on
importing a lot of products into a live production catalog, you should first
upload the media files to the Commerce Manager application and let the
replication finish before running the import.
References
Linux rsync Tutorial: http://everythinglinux.org/rsync/