
これを行うには、inotifywatchなどを使用する必要があることを知っています。また、rsyncを使用できることも知っています。セキュリティを強化するにはSSH経由で接続する必要があることを知っていますが、わからないことがあります。どこから始めるべきですか?
次のようなロジックを実装したいと思います。
私のラップトップに
if (any of the file in the watched folder (locally on my laptop) changes && the laptop is connected to my home wifi && my desktop is accessible through SSH) {
run rsync and and some ssh command to access my desktop and update the folder on my desktop
}
私のデスクトップに
if (any of the file changes in the watched folder (locally on my desktop) and my laptop is accessible with SSH) {
run rsync and and some ssh command to access my laptop and update the folder on my laptop
}
私はKDE Neonを使って2台のコンピュータをインストールし(ほぼ)同じ設定をしています。