Возникли проблемы с версией rsync на Mac при использовании его с lsyncd
Я пытаюсь синхронизировать папку на моем Mac с папкой на системе Ubuntu Server 16.06, которую я создал. Проблема в версии rsync. Вот что я сделал. Я создал файл в / var / log / lsyncd / и назвал его lsyncd.conf.lua. Вот его содержание:
settings {
logfile = "/var/log/lysncd/lsyncd.log", -- Sets the log file
statusFile = "/var/log/lsyncd/lsyncd-status.log" -- Sets the status log file
}
sync {
default.rsyncssh, -- uses the rsyncssh defaults Take a look here: https://github.com/axkibe/lsyncd/blob/master/default-rsyncssh.lua
delete = false, -- Doesn't delete files on the remote host eventho they're deleted at the source. This might be beneficial for some not for others
source="/Users/alixchristakaze/Desktop", -- Your source directory to watch
host="", -- The remote host (use hostname or IP)
targetdir="", -- the target dir on remote host, keep in mind this is absolute path
rsync = {
binary = "/usr/local/bin/rsync",
archive = true, -- use the archive flag in rsync
perms = true, -- Keep the permissions
owner = true, -- Keep the owner
_extra = {"-a"}, -- Sometimes permissions and owners isn't copied correctly so the _extra can be used for any flag in rsync
},
maxProcesses = 1 -- We only want to use a maximum of 1 rsync processes at same time
}
Я получаю эту ошибку при запуске этой команды: lsyncd /var/log/lsyncd/lsyncd.conf.lua
Warn: Using /dev/fsevents which is considered an OSX internal interface.
Warn: Functionality might break across OSX versions (This is for 10.5.X)
Warn: A hanging Lsyncd might cause Spotlight/Timemachine doing extra work.
Error: Cannot access /dev/fsevents monitor! (1:Operation not permitted)
Как видите, я добавил эту строку binary = "/usr/local/bin/rsync",
надеясь, что система скажет системе использовать rsync, который я установил через homebrew. Тем не менее, я получаю ошибку выше. У меня последняя версия Mac 10.12.3 и моя версия rsync 3.1.2 . Что я делаю неправильно?