Usage: ftp_sync.pl [-{d|D}s] [-u[H]] {-S |-f } [-P ] [-x ] [-e dir1[,dir2]] ftp_sync.pl -h ftp_sync.pl -v ftp_sync.pl -P -X Display differences in file lists and file size between remote and local arborescence using ftp. FTP connection information can be set as known profiles (included in the guts of the script, crypted or absent password recommended) or in configuration files. Available profiles in the guts: freebiert and freedunwich A local file which is not in the remote directory is refered as a sterile file, and is uploaded with option -u. A remote file which is not in the local directory is refered as a orphean file, and is deleted with options -u and -d The excluded directories, either specified by -e or in the config file, will be ignored (treated as if already synchronised), but will be created if missing (with option -u). Excluded list should be a list of coma separated subdir, path relative from remote_root or MainDir, without leading './', with '/' ad subdir separator if required. Options: -f: use connection information from config file. Syntax for the config file is (password is optional): remote_host =ftp server remote_user =ftp user remote_pwd =password remote_root =directory to synchronise (use absolute path) MainDir =directory used as reference on local host (use absolute path) exclude =exclude list (see above) -x: with this option, the script assumes that password is crypted with . This options is useful if your config files or script source get distributed, for example if the config file is in the synchronized directory. -u: update. Sterile files will be uploaded. This option is not set as default for safety purposes. -d: delete. Combine with option -u: orphean files will be deleted. This option is not set as default with -u for safety purposes. If the orphean is a directory not empty, it will probably not be deleted unless you use option -D. Remote deltree are not suported by default, mainly bacause of the danger they represent. Most likely, orphean not-empty directories are the result of tree reorganisation and a remote rename is far a better action to perform. -D: include deletion of not-empty directory trees. Only use this option as last chance. If -D is set, option -d is implicit. -H: convert local *.htm{l?} files dos to unix before sending them in binary mode -e: exclude list (see above) -p: specify proxy -X: with this option, encrypt the password given by option -P with and display both. It does nothing else. Use it to set your config files with encrypted passwords. -h: display this help -v: display version -s: mode silent: suppress info, display only warnings and errors Note: As this program is designed and developped on DOS-based platform, local file paths are processed as lower case, and you should only use lower case for remote platform file paths. Results with case-sensitive local platform are unpredictable, and there is no planned upgrade for this restriction as long as I am not able to develop on case sensitive platform. If you need case-sensitive suport, consider this as a chance for you to contribute to the software upgrade. ftp_sync.pl is copyright (c) Baptiste Marcel 2001-2002. ftp_sync.pl is a freeware, you can modify and/or distribute it under the term of the GNU General Public License version 2 or later. It comes with no warranty of any sort. Refer to www.gnu.org/copyleft/gpl.html for the full text of the GNU GPL. Always make sure you use the last version which is available at http://www.dunwich.org/soft Bug reports and feature requests should be sent to author at baptiste@dunwich.org. Refer to http://www.dunwich.org for more contact information about the author. ftp_sync.pl version 2.20