Lsyncd 2.2.2 ownership and permission issue

256 views
Skip to first unread message

Raaz

unread,
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

unread,
Feb 16, 2020, 3:36:06 AM2/16/20
to lsy...@googlegroups.com
its a sample problem about  permissions...

Raaz <jahm...@gmail.com> 于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 lsyncd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lsyncd/a38084a5-c96d-4d07-83fe-6acf309af3e5%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages