9 lines
244 B
Bash
Executable file
9 lines
244 B
Bash
Executable file
#!/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
|