Cosmic Consulting  www.cosmicconsulting.com

Downloads

SyncUpSite: Synchronize a Remote Website with Your Local Via FTP

Version 1.0, February 14, 2004

Download the program archive   |   Documentation   |   Read the license

Summary

SyncUpSite is modeled after sitecopy and FTPSync.pl. Written in Perl, it is a tool to assist website creators/maintainers in synchronizing their remote copy of the website with the working local copy using FTP. SyncUpSite lets the user manage multiple websites easily. It allows for RegExp selection of files to exclude from the operation. SyncUpSite is optimized for low-bandwith connections.

Documentation

Documentation is presented in the POD format inside the Perl code. You can also read the documentation online here.

Example Configuration File

Here is an example of a configuration file .SyncUpSiterc. This would be located in the user's home directory.

site default # make a hash for every k of transfer hashmarks 1024 # This speed is medium dial-up modem speed xferspeed 3000 # These are directories important to the webserver and not for client use. exclude ^stats exclude ^etc exclude ^bin exclude ^lib32 # Some graphics programs create image previews in this directory exclude .*\.xvpics\/.* # Don't upload emacs style backup files that end in ~ exclude ~$ # These web password files can cause trouble if they are unintentionally uploaded. exclude \.htaccess$ exclude \.htpasswd$ site cosmicconsulting local /Users/trhays/Sites/cosmicconsulting remote . server ftp.cosmicconsulting.com user cosmicweb # The user will be prompted for the password each time. site mywebsite local /Users/trhays/Sites/mywebsite remote . server ftp.mywebsite.com user myweb # For convenience, this password will be here and not prompted each time. password secret123 # All files/directories in this directory will be excluded. exclude ^privatedir