On 2013-12-04 8:07 AM, Peter Humphrey <[email protected]> wrote:
On Wednesday 04 Dec 2013 07:28:18 Tanstaafl wrote:
I've never used the -x option with cp... what exactly is meant by 'stay
on same filesystem’?Should

"Stay on same filesystem" is for the case in which you have another partition
mounted somewhere in the tree below the current working directory. It means
that you want to omit everything in that second file system. If you haven’t any
such complication you don’t need to specify -x.

Ah, ok that makes perfect sense, thanks.

And for the record (you didn't specifically say so), are you in agreement that

cp -a /usr/. /usr.tmp/.

will accomplish the exact same thing as the rsync command I was planning on using?

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

Indeed. I hope you don’t have experience of cp failing to copy what it should.

Right... if it did it would most likely indicate some kind of filesystem corruption...

Thanks again Peter,

Charles

Reply via email to