Comment by krn1p4n1c

1 day ago

tar cf - . | tar xf - -C <dest>

I never bothered to learn -C, instead I use:

    tar -cf - . | (cd <dest>;  tar -xf -)

For doing something like duplicating root of a filesystem you may want --one-file-system.