Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change cp with tar #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

change cp with tar #12

wants to merge 2 commits into from

Conversation

auk
Copy link

@auk auk commented Mar 24, 2020

tar is more proper tool for files cloning - it preserves owners, permissions, works better with tons of small files

@felipecrs
Copy link
Contributor

The cp -a also preserves these attributes.

@datocrats-org
Copy link

added justification: docker engine uses tar https://docs.docker.com/engine/reference/commandline/export/ and tar is faster than cp https://superuser.com/a/985080

@harmv
Copy link

harmv commented Feb 17, 2023

take care. cp -a of busybox (which is in alpine base image) does not preserve hard links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants