10 lines
244 B
Bash
10 lines
244 B
Bash
|
#!/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
|