LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2016, 06:44 PM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 473

Rep: Reputation: 29
rsync permissions errors


hi guys,

getting a lot of rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1165) [sender=3.1.1]

on many files and directories

which account is at fault? the local administrator account? i wouldnt think so as it is absolute on the server...should the account on the other side be named the same etc?

whats the best way to remedy this?
 
Old 03-15-2016, 12:52 AM   #2
Beryllos
Member
 
Registered: Apr 2013
Location: Massachusetts
Distribution: Debian
Posts: 326

Rep: Reputation: 124Reputation: 124
Apart from the error messages, did the transfer succeed?

Seriously, rsync gives messages like that if the destination filesystem does not support the attributes you have asked rsync to copy, which are many attributes if you use the -a option.

Example: Here I copy some files to a USB flash drive with a FAT32 filesystem:
Code:
$ rsync -av temp/ /media/beryllos/temp/
sending incremental file list
created directory /media/beryllos/temp
./
rsync: chgrp "/media/beryllos/temp/." failed: Operation not permitted (1)
file1
file2
file3
file4
rsync: chgrp "/media/beryllos/temp/.file1.8Avitt" failed: Operation not permitted (1)
rsync: chgrp "/media/beryllos/temp/.file2.GxzqL3" failed: Operation not permitted (1)
rsync: chgrp "/media/beryllos/temp/.file3.EeMu4D" failed: Operation not permitted (1)
rsync: chgrp "/media/beryllos/temp/.file4.rFGTne" failed: Operation not permitted (1)

sent 2742 bytes  received 91 bytes  5666.00 bytes/sec
total size is 2479  speedup is 0.88
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1070) [sender=3.0.9]
It failed to set the group id (which is not supported in FAT32), but the files were transferred just fine.

You can avoid the error message by omitting the attribute, as with --no-g in this example:
Code:
$ rsync -av --no-g temp/ /media/beryllos/temp/
sending incremental file list
created directory /media/beryllos/temp
./
file1
file2
file3
file4

sent 2733 bytes  received 91 bytes  5648.00 bytes/sec
total size is 2479  speedup is 0.88

Last edited by Beryllos; 03-15-2016 at 12:58 AM. Reason: forgot the remedy
 
Old 03-15-2016, 08:44 AM   #3
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 473

Original Poster
Rep: Reputation: 29
thanks will give it a go
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync to ask permissions before overwriting alaios Linux - Software 2 01-23-2013 12:05 PM
rsync errors Cpare AIX 6 05-18-2012 10:37 PM
Rsync Not Retaining Permissions carlosinfl Linux - Software 3 01-31-2011 10:39 AM
3 rsync errors at once sunethj Linux - Software 4 04-10-2007 11:18 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM


All times are GMT -5. The time now is 09:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration