jFtpMirror : mirrors a remote site with a local site via FTP written in python
Download Files
Changes
- Initial Version
- allow multiple database files (xx.webmirror)
- now do excludes while scanning...faster
- keep track of local date
- fix bug with new directories, new files and deleted files
- add more try-catch around ftp calls
Installation
None.
Notes
jFtpMirror sends only those files that have changed since the last time the utility was run.
It uses FTP as the transport mechanism.
It now supports the following commands:
| sync | update db to the remote site and then send any differences |
| update | db to remote site |
| sendonly | assume the db is up-to-date and send any differences |
| diff | display differences between db contents versus the local directory (no connection required) |
| convert | converts all line endings to unix style without sending files (no connection required) |
and some other options:
| vv | very verbose output |
| v | verbose output |
| q | quiet (no output) |
| unix | converts all line endings to unix style for any sent files |
| force | send all files (consider all files as changed) |
Enhancements
- It does not set permissions on remote files. Don't know if FTP has this capability.
- For crlf -> lf conversions, there needs to be an exclusion list (e.g. exclude .exe's, .zips, etc.). Again some doubt
this functionality belongs in jftpmirror
- If the transfer is aborted (e.g. by ctrl-C), the contents of the database file (xx.webmirror) is suspect. Perhaps I should
auto-detect and auto-correct?
- if an exclude pattern is given for the remote site, should it automatically apply to the local site?
- if there are only files that match excluded patterns in a deleted directory, do we still delete the directory?
- need to allow a response file (e.g. '@file')
Known Bugs
- if the remote file is changed, but the size remains the same, no difference is detected.
- if a remote directory is excluded, still scans the contents
| Contact me about content on this page using john_web-at-arrizza-dot-com |
| For Web Master or site problems contact: webadmin-at-arrizza-dot-com |
| Copyright John Arrizza (c) 2001-2010 |