[clug] Moving the contents of / to a new filesystem on Ubuntu?

Ben Nizette bn at niasdigital.com
Mon Jul 26 17:48:27 MDT 2010

On 27/07/2010, at 6:58 AM, Craig Small wrote:

> cd /
> tar cf - . | ( cd /newdir ; tar xf - )
> I've used that a lot, especially when drives didn't used to be that
> good.  Make the second tar xvf if you want to see what is going on.

I used to use that too but I couldn't work out what it does that cp -a or rsync -aHAX don't (in fact I think rsync -aHAX might even do a more complete job of preservation than tar).  Anyone know the differences?

Actually tar, cp and rsync will probably all need the --one-file-system option too to keep from recursive badness.


> - Craig
> -- 
> Craig Small      GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
> http://www.enc.com.au/                             csmall at : enc.com.au
> http://www.debian.org/          Debian GNU/Linux, software should be Free 
> -- 
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux

More information about the linux mailing list