how to copy all files from ubuntu A to ubuntu B,preserving everything,permissions and simlinks.

ziomario

Member
Joined
Apr 24, 2020
Messages
79
Reaction score
5
Credits
670
Hello to everyone.

I would like to copy all files of this kind : *vmware* with the same permissions and simlinks whatever they are on the ubuntu distribution that I have installed on the PC A to a usb stick and from the usb stick to the ubuntu distribution that I have installed on the PC B. Can someone give me some help ? I tried to do something like this,but it didn't work :

Quote:
root@ziomario-I9:/media/ziomario/ACRONIS_MED/vmware/etc/rc2.d# rsync -avz /etc/rc2.d/*vmware* /media/ziomario/ACRONIS_MED/vmware/etc/rc2.d/

sending incremental file list

rsync: symlink "/media/ziomario/ACRONIS_MED/vmware/etc/rc2.d/.K08vmware-USBArbitrator.7003" -> "/etc/init.d/vmware-USBArbitrator" failed: Operation not permitted (1)
rsync: symlink "/media/ziomario/ACRONIS_MED/vmware/etc/rc2.d/.S01vmware.7003" -> "../init.d/vmware" failed: Operation not permitted (1)
rsync: symlink "/media/ziomario/ACRONIS_MED/vmware/etc/rc2.d/.S01vmware-workstation-server.7003" -> "../init.d/vmware-workstation-server" failed: Operation not permitted (1)
rsync: symlink "/media/ziomario/ACRONIS_MED/vmware/etc/rc2.d/.S50vmware-USBArbitrator.7003" -> "/etc/init.d/vmware-USBArbitrator" failed: Operation not permitted (1)

sent 276 bytes received 670 bytes 1,892.00 bytes/sec
total size is 115 speedup is 0.12
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]

thanks.
 




Latest posts

Top