Re: Moving Fedora system to new disk

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

 



Once upon a time, Timothy Murphy <gayleard@xxxxxxxxxx> said:
> I'm planning on saying "rsync -auvz" (which is my usual recipe).
> If anyone can suggest better options I shall be glad to hear them.

For copying the OS, you will also want -HAX to correctly copy
hard-linked files, access-control lists, and extended attributes.  For
disk-to-disk copies, drop -z (don't need to compress).  -u shouldn't be
needed (since you want an identical system, something newer on the
target shouldn't happen, and should probably be replaced if found).  If
the target has possibly been altered (or files have been deleted from
the source), add --delete.

I like adding -P (for --partial --progress); it gives more info during
sync and won't remove any partially-copied files (not usually an issue
for disk-to-disk, but useful for network transfers).

So, "rsync -aHAXvP --delete" would be my recommendation.

Also, unless you've disabled SELinux, you may need to relabel on the
first boot from the copy (not sure if rsync -X will set that correctly
or not; haven't checked in a while).
-- 
Chris Adams <linux@xxxxxxxxxxx>
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux