cschlosser / drone-ftps

Deploy to FTPS server from Drone CI build
https://hub.docker.com/r/cschlosser/drone-ftps/
Apache License 2.0
20 stars 16 forks source link

Only transfer newer files #31

Closed fuse314 closed 1 year ago

fuse314 commented 1 year ago

If the new parameter PLUGIN_ONLY_NEWER is set to true, only changed/newer files are transferred to the destination directory (closing #12 and #13 ). Any files/folders not present in the source directory will be removed from the destination (closing #24 ). If you need to keep certain files in the destination, add them as an PLUGIN_EXCLUDE . (also documented in README.md)

I have been using this script for several weeks now, cutting the deployment time of one of my projects from 5 minutes to 12 seconds 🚀

fuse314 commented 1 year ago

@cschlosser did you have time to test or review this PR?

morvy commented 1 year ago

what is the difference between this and #13 ?

fuse314 commented 1 year ago

what is the difference between this and #13 ?

They are basically the same. #13 adds a second (ignored) "-R" parameter and does not warn about the "delete" behavior on the server, if there are files on the server that do not exist locally.