-
Notifications
You must be signed in to change notification settings - Fork 476
Description
Request to know correct way to specify an ssh key file. Thanks.
Running in debug mode, no _extra contents added to exec, so password prompt issued.
Debug command...
lsyncd -nodaemon -log Exec /etc/lsyncd/lsyncd.conf.lua
16:47:06 Normal: recursive startup rsync: /scratch/net8.bizcooker.com/lxc/ -> net11.bizcooker.com:/scratch/net8.bizcooker.com/lxc/./ excluding
wp-debug.log
16:47:06 Exec: /usr/bin/rsync [<] [wp-debug.log] [--exclude-from=-] [--delete] [--ignore-errors] [-gpsoltD] [--temp-dir=/tmp/] [--rsh=ssh -p 22] [-r] [/scratch/net8.bizcooker.com/lxc/] [net11.bizcooker.com:/scratch/net8.bizcooker.com/lxc/./]
16:47:06 Exec: one-sweeped pipe
[email protected]'s password:
Config file...
-- debug: lsyncd -nodaemon -log Exec /etc/lsyncd/lsyncd.conf.lua
settings {
logfile = "/var/log/lsyncd/lsyncd.log",
statusFile = "/var/log/lsyncd/lsyncd.status",
statusInterval = 20,
maxDelays = 10,
maxProcesses = 4,
insist = true,
}
sync {
default.rsyncssh,
source = "/scratch/net8.bizcooker.com/lxc/.",
host = "net11.bizcooker.com",
targetdir = "/scratch/net8.bizcooker.com/lxc/.",
excludeFrom = "/etc/lsyncd/lsyncd.excludes",
rsync = {
archive = true,
compress = false,
whole_file = false,
temp_dir = "/tmp/"
},
ssh = {
port = 22,
_extra = {
"-l", "root",
"-i", "/root/.ssh/backups.rsa",
"-o", "StrictHostKeyChecking=no"
}
}
}