Re: cp/scp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



gnu tar by default preserves symbolic links, afaik.
tried on an fc6 and it is so.
You have to force -h option when you create the archive to tell gnu tar to archive the file pointed to and not the link itself
Different thing it could be if you create / extract with different versions of tar (example by AIX to Linux, ecc.)
scp doesn't copy links. For this you can do a sort of

tar zcf - p1 p2 | ssh target "cd target_dir; tar zxf -"

the considerations about gnu tar still are valid, so that if you have to transfer to/from different flavours of Unix systems, you ought to use find + cpio as they should be ok overall

sort of

find p1 p2 | cpio -o | gzip | ssh target "cd target_dir; gunzip | cpio -idmuv"
should preserve link.
then man cpio and man tar run on the arch where you intend to launch the command is your friend, to see link related options.

HIH and not confuses,
Gianluca
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux