I run Ubuntu 20.04 locally and have VPS mirror images of numerous websites.
In order to simplify updating from localhost to online servers I have the following Command Line alias:
alias upci4="rsync -avz /var/www/domainName.tld/ -e ssh firstname.lastname@example.org:/var/www/domainName.tld/"
After localhost modifications “upci4” is called from the Command Line, followed by the password. Only modified files are updated and they are even zipped then unzipped remotely. Updates takes seconds
It certainly beats using FileZilla and is far, far quicker.
I’m curious to know if this technique could be improved.