Closed fuse314 closed 1 year ago
@cschlosser did you have time to test or review this PR?
what is the difference between this and #13 ?
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.
If the new parameter
PLUGIN_ONLY_NEWER
is set totrue
, 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 anPLUGIN_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 🚀