Use lsyncd to push files to gitlab pages server

Server itself in future commit
This commit is contained in:
Jake Howard
2020-09-05 16:24:47 +01:00
parent 1487915bbc
commit e579edc758
4 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,19 @@
settings {
logfile = "/tmp/lsyncd.log",
statusFile = "/tmp/lsyncd.status",
}
sync {
default.rsyncssh,
source = "/mnt/pages",
host = "user@{{ wireguard.clients.walker.ip }}",
targetdir = "/config/pages",
delay = 10,
rsync = {
archive = true,
compress = true
},
ssh = {
port = 8222
}
}