LFTP - Deploy an application in command line
Installation
First, we need to install lftp on our system:
Use lftp
Here, we define 3 variables:
$(FTP_USERNAME)
represents the FTP username ; example:alex
$(FTP_PASSWORD)
represents the FTP password ; example:SuperSpiciesMeltingMountains67
$(FTP_HOSTNAME)
represents the FTP host ; example:ftp://alexandre@ftp.cluster473.hosting.domain.net
This line uses lftp
to connect to the ftp server.
The command mirror
is used to synchronize local files and server files together. Here we sync the local ./
directory with the www/
FTP directory.
Manual
If you need more informations, here are the available flags from the manual:
Thank you for reading my post ! I hope it helped !
Practice code with the "Quick Sort" algorithm
Enhance your coding skills by learning how the Quick Sort algorithm works!
The SOLID/STUPID principles
Learn what are the SOLID and STUPID principles with examples
Create a Docker Swarm playground
Let's create Docker Swarm playground on your local machine
Create an Ansible playground with Docker
Let's create an Ansible playground with Docker
HashiCorp Vault - Technological watch
Learn what is HashiCorp Vault in less than 5 minutes !
Setup a Kubernetes cluster with K3S, Traefik, CertManager and Kubernetes Dashboard
Let's setup step by step our own K3S cluster !
How to internationalize an AstroJS website while maintaining good SEO ?
We will see how to create an implementation of i18n with AstroJS
Create a WAMP environment with docker
An easy code to install Apache, MySQL and PHP with Docker !