Hi, I use lftp called from a Makefile to keep a website up to date. The command I execute is:
mirror -R -r -p -e -X 404* -X .htaccess* -X lftp* -X Make* -x .*~ --verbose=3 --parallel=4 . public_html Points to note: -R = reverse mirror i.e. copy from me to ftp site, -p no permissions. Source files on my local machine have mode 644, but when they get to the ftp machine they have become 664 (which causes Apache to crash). If I transfer using put commends, the files end up with mode 644. The remote directory has umask 022, if somebody 'touch'es a file in the target directory it gets mode 644. Why does reverse mirror behave differently to put? Any comments gratefully received. The latest news as it happens - http://www.tiscali.co.uk/news
