I think lftp as a kind of ftp-swiss-knife... and a new blade would be useful!
.: Scene 1: developing your web site :. You have a lot of files which depend on config parameters (e.g. database user, password, ... ) of the machine the website is running on. So you create distinct configuration files for deployment and development, eg. .htaccess ---> development .htaccess-deploy --> deployment config.php ---> development config.php-deploy --> deployment ... development files let your site run on your local box, deployment files let it run on the remote one. .: Scene 2: deploying your web site :. Then, you tell 'mirror' to apply (during the mirroring phase) the regex 's/-deploy//' to local filenames and to override existing filenames (not the files themselves!). So, in this example, 'mirror' consider .htaccess-deploy as .htaccess and mirror it instead of the real .htaccess. Overriding existing filenames could be optional. What do you think about it? Is there any option for the same scenario? Bye, Marco
