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.