-
Notifications
You must be signed in to change notification settings - Fork 59
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
Deleting files on up
file sync
#149
Conversation
* added `--delete` to remove files on destination that don't exist on source * added `--copy-links` to copy _content_ of symlinks as files, rather than preserving links * removed `--keep-dirlinks` to preserve symlink directories as links This is a **potentially breaking change**
up
file syncup
file sync
As this could potentially break sites that rely on preserving remote symlinks, it should be merged and released with care. I don't recall why this behavior was different for up than down, but I checked and Evolution does not have this issue. Pinging @ericclemmons to see if it rings any bells for him |
For background, we're needing this delete/sync capability in order to remove files in folders that aren't committed to repos, namely the |
The original logic was:
I agree with @ericrasch that there needs to be a way to have a "clean slate", but I'm not 100% sure what that would be. Each deployment technically starts "fresh" with a new I honestly don't know what the best solution is. We trust Any ideas? |
What about keeping everything as-is, so |
👍 Great suggestion! |
Thumbs down? |
Implemented! |
up
file syncup
file sync
Deleting files on `up` file sync
@ericrasch Fixed copy-links bug as of v0.2.60 |
Thanks, @EvanK, works great! |
It appears that, on sync from remote to local, we are removing any destination files that don't exist on source.
However, on sync from local to remote, we are not.
/cc @ericrasch