#!/bin/bash echo WARNING !!! echo please write correct values below exit 0 currdir=$(pwd) fuser=___SET___ fpass=___SET___ fhost=___SET___ remote_site=$fuser:$fpass@$fhost #local_dir_base=$currdir/vityk_www local_dir_base=/home/{projectUser}/public_html/{projectName}/trunk/www remote_dir_base=/public_html for ld in fckfiles userfile do echo processing $ld local_dir=$local_dir_base/$ld remote_dir_path=$remote_dir_base/$ld lftp -c "open -e \"mirror -R $local_dir/ $remote_dir_path \" $remote_site" done;