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

What's the difference between cp and sync -n ? #16

Closed
balthild opened this issue Mar 19, 2019 · 2 comments
Closed

What's the difference between cp and sync -n ? #16

balthild opened this issue Mar 19, 2019 · 2 comments

Comments

@balthild
Copy link

No description provided.

@wchang22
Copy link
Owner

Let's say we have source directory A which contains file x and destination directory B which contains file y.
Let's say x and y are the exact same file.

lms cp is simply a multithreaded version of regular cp -r, where all files in A are copied over to B. This means y in B will be overwritten with the contents of x in A, even though x and y are the same file.

lms sync -n synchronizes B with A, but does not delete any files in B that are not in A, and does not copy any files that are in both A and B. This means that because x and y are the same, y will be left untouched.

@balthild
Copy link
Author

Thanks!

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