Drillster / drone-volume-cache

Drone plugin for caching to a locally mounted volume
MIT License
109 stars 42 forks source link

Use `rsync -aHAX --delete` #2

Closed adrienverge closed 7 years ago

adrienverge commented 7 years ago

When creating/restoring cache, the user wants the created files and dir to replace existing ones. This also implies deleting leftover files.

To be clearer, let's take an example with a JS / TypeScript project:

With the --delete flag added to rsync, when creating new caches, files that are not present in source dir are deleted from target dir.

mjwwit commented 7 years ago

Great addition, thanks!