apt-get -y install unison openssh-server ssh nano
 
ssh-keygen -t dsa
 
ssh-copy-id -i $HOME/.ssh/id_dsa.pub root@192.168.0.101
 
# ssh-copy-id -i $HOME/.ssh/id_dsa.pub root@192.168.0.101
 
 
root@server2:/home/administrator# cat $HOME/.ssh/authorized_keys
 
# run interactively
unison /var/www ssh://192.168.0.101//var/www
 
# run batch configuration
nano /root/.unison/default.prf
 
# Roots of the synchronization
root = /var/www
root = ssh://192.168.0.101//var/www
 
 
## we can run Unison without any arguments:
unison
 
## syncronize every 5 minutes
crontab -e
*/5 * * * * /usr/bin/unison &> /dev/null
 
## test syncronization
echo "Test 1" > /var/www/test.txt
## should appear on server 2
## now test new file on server2

Notice: Undefined variable: browserName in /var/www/taziomirandola.it/lib/Visitors.php on line 86

Notice: Undefined variable: browserName in /var/www/taziomirandola.it/lib/Visitors.php on line 96

Deprecated: strripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/www/taziomirandola.it/lib/Visitors.php on line 96

Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /var/www/taziomirandola.it/lib/Visitors.php on line 39

Fatal error: Uncaught TypeError: Argument 1 passed to safe_text() must be of the type string, null given, called in /var/www/taziomirandola.it/lib/Visitors.php on line 39 and defined in /var/www/taziomirandola.it/lib/Visitors.php:162 Stack trace: #0 /var/www/taziomirandola.it/lib/Visitors.php(39): safe_text() #1 /var/www/taziomirandola.it/lib/Visitors.php(124): Visitors::getData() #2 [internal function]: Visitors::log() #3 {main} thrown in /var/www/taziomirandola.it/lib/Visitors.php on line 162