ben-z / Silent-Sync

Automatically takes care of the file syncing while you work.
https://atom.io/packages/silent-sync
Other
8 stars 0 forks source link

i would call this mirroring not syncing #3

Open mark-hahn opened 9 years ago

mark-hahn commented 9 years ago

First of all I love this. It really does the job with no thinking.

But I discovered the hard way it wasn't syncing, it was overwriting everything at the destination including deleting files. Now that I know this I can work with it.

Would it be hard to add a sync option that only writes files newer than ones on the destination and never deletes a file without warning, or would this change the architecture of the package? I guess it doesn't read the destination directory. I could imagine it only pushing files modified locally but that has the danger of getting out of sync.

I like this so much I am working on changing my normal workflow to accommodate it. One example is not writing result files and logs into my app folder on the server. (grin)

mark-hahn commented 9 years ago

Oh, and your readme should warn about this so other idiots like me don't get clobbered.

ben-z commented 9 years ago

That's a great point, I will add the option Delete Remote Files in a sec. Awesome suggestions too! I will work on remote to local syncing and diffing files based on date changed the upcoming weekend.

ben-z commented 9 years ago

By the way I'm very sorry of any inconvenience it has cause you. ^ I will be more thoughtful from now on.

ben-z commented 9 years ago

There is now an option called Delete Remote Files in version 1.1.4 :smile:

mark-hahn commented 9 years ago

I'm very sorry of any inconvenience

Zero problem. I appreciate the simplistic approach. It worked first try for me.