Re: Copy EVERYTHING

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

 



On 05Dec2006 15:54, joe@xxxxxxxxxxxxxxxxx <joe@xxxxxxxxxxxxxxxxx> wrote:
| >> On Tue, 2006-12-05 at 10:18 +0800, Hadders wrote:
| >> >  > cd /oldpart;  find . -xdev | cpio -padm /newpart
| >The cpio command doesn't preserve the timestamp on directories.

Who cares? Directory timestamps change all the time:-)

| >The tar version does:
| >cd /oldpart
| >tar cvf - . | ( cd /newpart ; tar xf -)
| 
| I thought, that a "cp -a" would do the same....

True. But a pair of cpios or tars pipes together is faster.
And "cp -a" almost certainly breaks hard links. You'd start with one
file with two names in the original and end up with two separate files
in the copy. Ugh.

BTW, if using "rsync -a", make sure you add "-H" as well; -a does not
include it.
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Heaven could change from chocolate to vanilla without violating perfection.
        - arromdee@xxxxxxxxxxxxxxxxxxxxx (Ken Arromdee)

-- 
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