node-ssh icon indicating copy to clipboard operation
node-ssh copied to clipboard

Question: Any way to skip unmodified files from being uploaded to server?

Open markcellus opened this issue 2 years ago • 1 comments

Thanks for creating this package. I'm using it to upload files to my server when I'm deploying my site.

I've found that it takes longer and longer to deploy the files as the amount of files on my project grows. Is there a way to perhaps skip uploading files that are already on the server and that haven't changed? I'd imagine this would cut down on the files being uploaded and would make deployments a lot faster.

This may be out of the scope of the package, but just wanted to ask to see if anyone had any ideas or information on how they usually handle this case.

Thanks in advance!

markcellus avatar Jul 20 '23 13:07 markcellus

It’s possible to build this capability into options.validate. Good idea!

I am open to building this as a first class feature but that has the problem of how do we determine what files have changes? Looking at size may be enough in some cases while other cases may require hashing entire file contents.

Thoughts?

steelbrain avatar Jul 20 '23 18:07 steelbrain