LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   rsync: how to copy file, "Operation not permitted" (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/rsync-how-to-copy-file-operation-not-permitted-689140/)

nugroho2 12-08-2008 11:47 AM

rsync: how to copy file, "Operation not permitted"
 
I ran file backup using rsync using Mike Rubel's code. All ran well, except that I could not copy many system files because "Operation not permitted".

I was told that some folders, e.g. /proc are virtual. So I excluded it. But what about the other?

Code:

$RSYNC \
-av --delete --delete-excluded \
--exclude-from="$EXCLUDES" \
/lib/ $SNAPSHOT/lib ;

Code:

rsync: chgrp "/media/ACERONE/lib/modules/2.6.23.9lw/usb" failed: Operation not permitted (1)
rsync: chgrp "/media/ACERONE/lib/modules/2.6.23.9lw/usb/media" failed: Operation not permitted (1)
rsync: chown "/media/ACERONE/lib/rtkaio" failed: Operation not permitted (1)
rsync: chown "/media/ACERONE/lib/security" failed: Operation not permitted (1)
rsync: chown "/media/ACERONE/lib/security/pam_filter" failed: Operation not permitted (1)

Does this mean that rsync has that limitation? I had run as superuser.
I have read the manual, but still could not find the way to copy all system files using rsync. I have used dd command successfully to do that.

nugroho2 12-08-2008 12:21 PM

Sorry, everyone, I am a newbie. I have got the answer: I did not set the owner of the destination as root.

colucix 12-08-2008 12:23 PM

Quote:

Originally Posted by nugroho2 (Post 3368279)
Sorry, everyone, I am a newbie. I have got the answer: I did not set the owner of the destination as root.

No need to apologize! :) Nice to see you've figured it out. The syntax of your rsync command is nice.

jmat 04-21-2010 07:57 AM

Quote:

Originally Posted by nugroho2 (Post 3368279)
I did not set the owner of the destination as root.

How you did that?

Thanks


All times are GMT -5. The time now is 04:06 AM.