created script to deploy site to production server

This commit is contained in:
eclipse 2025-03-11 21:47:42 +01:00
parent 68bebccff8
commit 9fec0e807f

17
deploy-via-ftp.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# see here: https://stackoverflow.com/a/32235669
#get username and password
USER=username #Your username
PASS=password #Your password
HOST="myftpserver.com" #Keep just the address
LCD="~/Desktop/localfolder" #Your local directory
RCD="/users/user" #FTP server directory
lftp -f "
open $HOST
user $USER $PASS
lcd $LCD
mirror --continue --reverse --delete --verbose $LCD $RCD
bye
"