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

goat: add ability to upload all blobs in a folder #919

Open
ledlamp opened this issue Jan 24, 2025 · 2 comments
Open

goat: add ability to upload all blobs in a folder #919

ledlamp opened this issue Jan 24, 2025 · 2 comments
Labels

Comments

@ledlamp
Copy link

ledlamp commented Jan 24, 2025

The goat blob export command downloads all blobs of an account into a folder.

The goat blob upload command only accepts one file.

It should accept multiple file arguments, which could be filled by shell glob.

Or it should accept a path to a folder, because there may be too many blobs to put into arguments.

This would be useful for manual PDS migrations.

@bnewbold
Copy link
Collaborator

bnewbold commented Feb 2, 2025

You could use parallel to call goat once for every file in a folder, at least for now.

@ledlamp
Copy link
Author

ledlamp commented Feb 2, 2025

I've been using this on windows

Get-ChildItem | ForEach-Object { goat blob upload $_ & }

but it's really inefficient, makes windows defender use all the cpu, each goat makes a request to refreshSession

@bnewbold bnewbold added the goat label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants