how to copy all files from ubuntu A to ubuntu B,preserving e

If none of the more specific forums is the right place to ask

how to copy all files from ubuntu A to ubuntu B,preserving e

Postby marietto » 2020-06-06 22:36

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 :

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.
marietto
 
Posts: 56
Joined: 2014-07-13 16:30

Re: how to copy all files from ubuntu A to ubuntu B,preservi

Postby CwF » 2020-06-06 23:10

marietto wrote:rsync error: some files/attrs were not transferred (see previous errors)

The file system of the usb thing matters.
CwF
 
Posts: 721
Joined: 2018-06-20 15:16

Re: how to copy all files from ubuntu A to ubuntu B,preservi

Postby p.H » 2020-06-07 07:08

Specifically, FAT does not support symlinks and Unix permissions. But you can (and IMO should, regardless of the filesystem type) create an archive (tar, ar, cpio...) instead of copying individual files.
p.H
 
Posts: 1423
Joined: 2017-09-17 07:12

Re: how to copy all files from ubuntu A to ubuntu B,preservi

Postby marietto » 2020-06-07 09:56

thanks. formatting the usb stick with ext4 fixed the problem. again thanks.
marietto
 
Posts: 56
Joined: 2014-07-13 16:30


Return to General Questions

Who is online

Users browsing this forum: No registered users and 18 guests

fashionable