Hi,
I think a problem about rsync sits better here, rather than in the (more general) application forum. Sorry if it isn’t…
So, on to my problem:
I have a PC with OpenSuse, now updated to the latest 13.1 (previous there were 12.3, and earlier verions)
Installing was as a fresh install (after backing up all necessary files in the old 12.3).
Unfortunatelly, after setting up rcyncd with the old settings that worked OK in 12.3, in the new 13.1 things does NOT work 100%.
Usually I get to run (with cron) some rsync command from 2 other linux PCs). Now, in my new 13.1 system I get these verry annoying errors:
rsync: chgrp … failed: Operation not permitted (1)
Let’s be more specific:
rsync: chgrp “/backups/.etc–2013_11_17.tar.gz.4u31GL” (in backups_router) failed: Operation not permitted (1)
rsync: chgrp “/backups/.etc–2013_11_24.tar.gz.52XrGz” (in backups_router) failed: Operation not permitted (1)
If I simply remove those files and force rsync from the remote machine, the files does get copied OK, but still have the same annoying error about chgrp comes again:
rsync: chgrp “/backups” (in backups_router) failed: Operation not permitted (1)
backups/
backups/etc–2013_11_17.tar.gz
backups/etc–2013_11_24.tar.gz
rsync: chgrp “/backups/.etc–2013_11_17.tar.gz.Uh0iQN” (in backups_router) failed: Operation not permitted (1)
rsync: chgrp “/backups/.etc–2013_11_24.tar.gz.zfR7ol” (in backups_router) failed: Operation not permitted (1)
As you can see, first the files are copied (as normal, right ?) and then the error about chgrp appears (both in the remote machine console while executing rsync, and in my local machine’s rsyncd.log file)
When executing rsync at remote machine again I get these errors again:
rsync: chgrp “/backups/var–2013_11_24.tar.gz” (in backups_router) failed: Operation not permitted (1)
rsync: chgrp “/backups/var–2013_12_01.tar.gz” (in backups_router) failed: Operation not permitted (1)
So … what’s intriguing is that “temporary” file that reports this error (WHY is that .etc-2013_11_17.tar.gz.Uh0iQN" there, and what it has to do with anything ?!? (other than internal temporary file management of rsync))
After copying the files, in my local machine I see they have permissions 600 (while I expected them to be 644…)
The /etc/rsyncd configuration file is like this:
gid = users
read only = false
use chroot = true
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
###hosts allow = trusted.hosts
##slp refresh = 300
##use slp = false
[backups_router]
path = /CORNEL/SALVARI/ROUTER
comment = salvari ale backup-urilor de pe ROUTER
uid = cornel
gid = users
hosts allow = 192.168.0.1
Command executed at the remote machine is like this:
rsync -avz /backups cornel@192.168.0.199::backups_router
So … the files get the user/group settings OK, but for some reason permission gets to be 600 – which I don’t get were is set elsewhere.
If I execute rsync at my local end (with the proper parameters modified: rsync -avz 192.168.0.1:/backups /CORNEL/SALVARI_VIGRA/ROUTER ) things works smooth (and files are copied OK, with permisions 644 !!) – tested both after removing the files in order to force sync-ing , and after an already done sync (in which case the command reports that nothing is to be done – as expected)
So … does anyone clue me about where I should look in order to get rid of this annoying error about chgrp ?
I prefer to let the things as they are (and as they worked OK years before this update to Opensuse 13.1 !!! – older versions of rsync in previous Opensuse versions worked OK with the same settings ! )
Well if nothing can be done, I suppose I could change cron as to execute rsync from my local machine instead of executing it in the remote one, but still … I like to understand where’s my mistake (if any) and (if it’s the case) what changed in rsync to have this error now.
Thanx,
Cornel
P.S. Maybe it’s important: the path /CORNEL is from a sepparate partition (not directly into / – actually a symlink to the folder /lucru/CORNEL, where /lucru is the folder where that partition is mounted) … but that folder has permisions 775, and underneath it the other folders have the same permissions (775) so, I think this is not a problem here…)