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 to multiple destination directories #24

Closed
stephan-gh opened this issue Nov 29, 2016 · 2 comments
Closed

Sync to multiple destination directories #24

stephan-gh opened this issue Nov 29, 2016 · 2 comments
Assignees

Comments

@stephan-gh
Copy link

Could you add an option to sync a folder to multiple destination directories? Currently I can just run syncy twice, but it would be nice if they could be specified as array:

// Current
syncy(['src/**', '!src/folder/**'], 'dest1')
syncy(['src/**', '!src/folder/**'], 'dest2')

// Directly with multiple destination directories
syncy(['src/**', '!src/folder/**'], ['dest1', 'dest2'])
@mrmlnc mrmlnc self-assigned this Nov 29, 2016
@mrmlnc
Copy link
Owner

mrmlnc commented Nov 29, 2016

Yeap, this is possible, and I see two ways:

  1. Once read the source directory and compare it with the destination directories.
  2. Just give the ability to specify multiple destination directories and run Syncy many times.

In the first case we can save 200-300ms on each iteration (destination directory) (figure taken from https://github.com/mrmlnc/syncy#tests).

Well, now i have no free time for this case, but I can start work on it at the end of the week.

@mrmlnc
Copy link
Owner

mrmlnc commented Dec 10, 2016

Resolved by syncy@2.2.0.

@mrmlnc mrmlnc closed this as completed Dec 10, 2016
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