logoalt Hacker News

jhallenworld • yesterday at 9:41 PM • 0 replies • view on HN

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.