How to synchronize with SSH | Chunhao's Blog - 4 views
-
#!/bin/sh sshfs -o workaround=rename username@sshserver:/path/html/wiki wiki-remote/ echo "Synchronising with sshserver" unison /var/www/dokuwiki/data ./wiki-remote/data \ -fastcheck yes \ -ignore 'Path cache' \ -ignore 'Path locks'
-
Modify it to fit your actual environment. Note that the argument of sshfs command “-o workaround=rename”, this prevents the “renaming problem“.