rsync permission errors

asked Apr 11, 2012 in General by Donald (2,780 points)
edited Apr 11, 2012 by Donald

I have  VPS I used rsync to backup of my full server on a remote space. I ran the command ;
rsync -avz --exclude=/proc -e ssh / my-backup-server-address
 While running rsync job, many system files were  ignored due to Permission Errors and I got many errors such as ;
rsync: send_files failed to open "/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-0:1.0/usbdev5.1_ep81/uevent": Permission denied (13)

rsync: read errors mapping "/sys/class/net/lo/statistics/multicast": No data available (61)
WARNING: sys/class/net/lo/statistics/rx_bytes failed verification -- update discarded (will try again).

How can I fix this?

2 Answers

0 like 0 dislike
answered Apr 11, 2012 by TopNet (10,360 points)
/sys is a virtual file system, and it's not meant to be backed up. You can add a --exclude=/sys to your Rsync command if you don't like to see the error messages.
0 like 0 dislike
answered Apr 11, 2012 by moon_tag (1,380 points)
hi there
You should not backup a whole file system like that. You have to first choose what you need to backup.
If you are going for a full machine backup,  there is usually a server-wide based backup in most VPS services in the management systems.