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

docs: How to gather s3 contents in drenv #1796

Open
nirs opened this issue Feb 3, 2025 · 0 comments
Open

docs: How to gather s3 contents in drenv #1796

nirs opened this issue Feb 3, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation test Testing related issue

Comments

@nirs
Copy link
Member

nirs commented Feb 3, 2025

Adding here until we automate this in kubectl-gather:

for obj in $(mc find dr1/bucket); do mkdir -p $(dirname s3/$obj); mc cat "$obj" > s3/$obj; done
for obj in $(mc find dr2/bucket); do mkdir -p $(dirname s3/$obj); mc cat "$obj" > s3/$obj; done

Note: I tried simpler mc command but they failed:

  • mc cp -r dr1/bucket
  • mc find dr1/bucket --exec "mc cp {} s3/{}"
@nirs nirs added documentation Improvements or additions to documentation test Testing related issue labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation test Testing related issue
Projects
None yet
Development

No branches or pull requests

1 participant