Answer the question
In order to leave comments, you need to log in
Why doesn't lsyncd work when adding a symlink to exclude?
The situation is as follows. The distribution server has a web/files symlink that I want to exclude from sync. At the same time, on the receiving server, I want this directory to be (I created it in advance). My config:
sync {
-- common
default.rsyncssh,
delete = false, --<== удалять файлы на удаленном сервере.
source="/home/www/productive/current",
host = "94.217.184.112",
targetdir="/home/www/new",
rsyncOps={"-azS", "--rsh=ssh -l root", "--temp-dir=/tmp"},
exclude={
'/.git',
'/web/robots.txt',
'/runtime',
'/web/assets',
'/web/uploads',
'/web/images',
'/web/files',
},
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question