mirror of
https://github.com/neocities/neocities.git
synced 2025-07-23 11:06:02 +02:00
add lsyncd config
This commit is contained in:
parent
73adf1f984
commit
6ccabdc5f4
3 changed files with 54 additions and 0 deletions
26
vagrant/fs-primary/etc/lsyncd/lsyncd.conf.lua
Normal file
26
vagrant/fs-primary/etc/lsyncd/lsyncd.conf.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
-- Inotify listener max needs to be turned up. Assume 2KB per directory watched.
|
||||
-- The number of mirrored directories is the relevant variable because a Linux watch is created for each directory.
|
||||
-- It may make more sense to use a SITENAME_FILENAME strategy here instead of directory partitioning.
|
||||
-- The below example is 10 gigabytes / 2 = number of watches for 10GB, which is 5 million directories.
|
||||
-- echo 5000000 > /proc/sys/fs/inotify/max_user_watches
|
||||
-- For /etc/sysctl.conf: fs.inotify.max_user_watches=5000000
|
||||
-- Make sure maxProcesses is below ssh's MaxSessions (default is 10)
|
||||
settings {
|
||||
logfile = "/var/log/lsyncd.log",
|
||||
statusFile = "/var/log/lsyncd-status.log",
|
||||
maxProcesses = 8
|
||||
}
|
||||
sync {
|
||||
default.rsyncssh,
|
||||
delete=true,
|
||||
source="/home/*ACCOUNT*/testone",
|
||||
host="*HOST*",
|
||||
targetdir="/home/*ACCOUNT*/testone",
|
||||
rsync = {
|
||||
compress = true,
|
||||
archive = true,
|
||||
perms = true,
|
||||
owner = true
|
||||
},
|
||||
delay=0
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue