updating remote website using ssh


/ Published in: Bash
Save to your folder(s)

* _HOST_: remote host
* _PORT_: ssh port (default 22)
* _PATH_: remote path to synchronize


Copy this code and paste it in your HTML
  1. rsync -azvv --exclude="*~" --exclude="config.php" -e "ssh -p PORT" . root@HOST:PATH

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.