On 4/9/24 22:18, Jessica Clarke wrote:
On 10 Apr 2024, at 04:29, Colin Percival <cperc...@freebsd.org> wrote:
+disc1-disc1 disc1-memstick: disc1
+ mkdir ${.TARGET}
+ tar -cf- -C disc1 . | tar -xf- -C ${.TARGET}

What’s wrong with cp -a?

A couple decades of muscle memory using tar -c | tar -x.  I would have
used cp -Rl, but that breaks with noschg files.

Besides, shouldn’t this use -p if using tar?

That's the default if we're running as root.  And if we're not running
as root then we get permissions/flags/etc from the METALOG, I believe?

And -f- is the same as nothing.

When did that change?  I thought the default was to use the tape device.

--
Colin Percival
FreeBSD Release Engineering Lead & EC2 platform maintainer
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid

Reply via email to