Hacker News new | ask | show | jobs
by silisili 759 days ago
If I'm reading this right, using --no-overwrite-dir should have prevented this, I think.

I'd still extract to a local folder as nonroot, though, so still the right conclusion.

1 comments

--no-overwrite-dir (Preserve metadata of existing directories)

This is a really good point! It solves the main problem. I'll add it to the article.

Although that's what, unfortunately, is set by default (at least in GNU tar):

--overwrite-dir (Overwrite metadata of existing directories when extracting (default).)