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

Sync multiple folders #10

Open
nickdima opened this issue Nov 17, 2014 · 2 comments
Open

Sync multiple folders #10

nickdima opened this issue Nov 17, 2014 · 2 comments

Comments

@nickdima
Copy link

Is it possible to sync multiple folders at once?

@andrewrk
Copy link
Owner

Not currently possible. I'm not convinced that it's valuable, either. As is, syncing a single directory uses a connection pool to saturate your upload bandwidth completely. Syncing directories in serial would hardly make a difference.

What syntax might you imagine for syncing multiple directories at once?

@nickdima
Copy link
Author

Maybe something like sync first/dir;second/dir.
Another useful thing would be to have the headers set in the config file.
My need comes from cleaning this up a little bit:

{
    "cdn:assets": "s3-cli --config config/s3.cfg -P sync cdn s3://bucket/path --add-header='Cache-Control':'max-age=315360000, no-transform, public'",
    "cdn:build": "s3-cli --config config/s3.cfg -P sync build s3://bucket/path --add-header='Cache-Control':'max-age=315360000, no-transform, public'",
}

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

No branches or pull requests

2 participants