How to use rsync between hosts with non-standard ssh ports

In order to work between hosts with non-standard ssh ports, rsync syntax should be a little bit different. The command below is pushing all the files from MyLocalProject on the local machine to the RemoteProject directory on the remote machine. If you want to sync from the server to the localhost, just replace their places. Here is how we do it: rsync -vaz -e “ssh -p2222” /MyLocalProject/ username@server:/RemoteProject/ If you want to mirror the destination, use this: rsync -vaz –delete –exclude ‘.*’ –exclude ‘*.bat’ -e “ssh -p2222” /mnt/d/localDir/ user@remote.tld:/home/user/public_html/project/ –delete delete files that don’t exist on the sending side, here… Read moreHow to use rsync between hosts with non-standard ssh ports

How to Install phpMyAdmin on Ubuntu Server 16.04

Here is how to install phpMyAdmin on Ubuntu Server 16.04 First, update repositories and upgrade installed packages: sudo apt-get update && sudo apt-get uprgade Next, install the following packages: sudo apt-get install phpmyadmin php-mbstring php-gettext The installation wizard will start. Every step is self-explained. Follow the wizard to setup phpmyadmin according to your needs. If for some reason the configuration wizard didn’t start, use dpkg-reconfigure phpmyadmin Here is our configuration, as example: Reinstall database for phpmyadmin? yes Connection method for MySQL database of phpmyadmin: Unix socket MySQL database name for phpmyadmin: phpmyadmin MySQL username for phpmyadmin: phpmyadmin… Read moreHow to Install phpMyAdmin on Ubuntu Server 16.04