Command-line utility to upload files via ftp
Download
ftp_dir_diff uses file sizes or names as a condition
to upload files. Typically used to keep your web site up to date.
$ ./ftp_dir_diff.pl -h
ftp_dir_diff: transfer stuff to ftp sites
allan.kelly@gmail.com
usage: ftp_dir_diff <options> site_name
site_name is defined in ftp_dir_diff.xml
Options:
-a
transfer based on suffix match. Can be comma-separated.
Example:
-a html,css
special case ALL == transfer everything
-a ALL
-0 Don't recurse, only process the files in the root dir
-m
transfer pattern: only transfer files matching pattern. Like -a.
-h This message
Example ftp_dir_diff.xml. You can define as many <site>
sections as you need.
<ftp_dir_diff>
<site site_name="AllanKelly.info">
<ftp_server>www.allankelly.info</ftp_server>
<ftp_root>/public_html</ftp_root>
<ftp_user>xxxxxxxx</ftp_user>
<ftp_pass>yyyyyyyy</ftp_pass>
<localdir>/home/akelly/code/perl/xidebar/projects/AllanKelly.info/output/</localdir>
</site>
</ftp_dir_diff>
Dependencies
This is a Perl program, which should run under default Perl
environments. On Windows use ActiveState.
|