Lsyncd 2.2.2 ownership and permission issue

Skip to first unread message


Dec 15, 2019, 5:06:56 PM12/15/19
to lsyncd

I'm having an issue where files are been copied to the remote server except the owner/group of replicated files on the target server is always '1002'. The permissions of the source are respected and replicated correctly on the target. I just can't figure out a way to preserve the owner (and group) of the replicated files.

Lsyncd Version: 2.2.2

my setting below:

settings { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/log/lsyncd/lsyncd.status" }

sync { default.rsyncssh, source="/home", host="1*52.*.15", targetdir="/home/", delete = "running", -- prevents deletion of files on startup (ie when a server comes back online, don't delete files that are new on the backup) delay = 5, -- run every 5 seconds instead of default 20 exclude = { "/home/backup", }, rsync = { archive = true, -- use the archive flag in rsync perms = true, -- Keep the permissions owner = true, -- Keep the owner compress = true, acls = true, xattrs = true, _extra = {"-a"}, -- Sometimes permissions and owners isn't copied correctly so the _extra can be used for any flag in rsync } }

additional errors:

Dec 15 21:42:47 server1.*.* lsyncd[21033]: sending incremental file list
Dec 15 21:42:47 server1.*.* lsyncd[21033]: rsync: failed to set times on "/home/admin/conf": Operation not permitted (1)
Dec 15 21:42:47 server1.*.* lsyncd[21033]: admin/conf/
Dec 15 21:42:47 server1.*.* lsyncd[21033]: sent 5,387 bytes received 160 bytes 3,698.00 bytes/sec
Dec 15 21:42:47 server1.*.* lsyncd[21033]: total size is 2,849,404,839 speedup is 513,683.94
Dec 15 21:42:47 server1.*.* lsyncd[21033]: rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]

tony jim

Feb 16, 2020, 3:36:06 AM2/16/20
its a sample problem about  permissions...

Raaz <> 于2019年12月16日周一 上午6:06写道:
You received this message because you are subscribed to the Google Groups "lsyncd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages