#!/bin/bash source .env echo Connecting via FTP lftp -c "open ftp://$ftpusername:$ftppassword@$ftpserver \ echo Deleting files from server; \ rm -rf .; \ echo Mirroring; \ mirror -R --parallel=3 $localfolder $remotefolder" echo Done publishing