On 2013-12-03 8:19 AM, Tanstaafl <tansta...@libertytrek.org> wrote:
Current command I'll be using:

rsync -avHP --numeric-ids /mnt/gentoo/oldusr/ /mnt/gentoo/usr/

I had initially been planning on just using cp, trying now to remember why I decided on using rsync - I think it was someone here who said it would be better.

Anyway, not to start a holy war about which is better, rsync or cp, but someone on the rsync list just posted that using rsync for this was really not the best use of rsync, and that cp was much better suited (would be much faster for one thing, and would not suffer the same potential problem of running out of memory because of too many hard links for another), and I think I agree with them...

<sigh>

So, can someone confirm that this command:

cp -ax /usr/. /usr.tmp/.

would accomplish the same goal?

I've never used the -x option with cp... what exactly is meant by 'stay on same filesystem'? Should I use this seeing as current /usr is reiserfs on LVM, and / is ext3 on simple partition - ie, *not* the 'same filesystem'?

Is the only real advantage of using rsync to do this it's ability to pick up where it left off if there is a problem?

If so, then I imagine I could use the cp command first on the live system to 'prime' it, then use the rsync command after booting to the liveCD to quickly confirm it - but if there were no issues during the initial cp, and nothing changes in between, there shouldn't really be any difference to copy anyway?

Sorry for all the questions, I promise this will be the last one on this subject...

Reply via email to