appleboy / drone-scp

Copy files and artifacts via SSH using a binary, docker or Drone CI.
MIT License
142 stars 29 forks source link

Support following symbolic links #112

Closed bibekg closed 1 year ago

bibekg commented 4 years ago

I have a use case where some of the files I want to SCP over are symbolic links. Since this plugin uses the tar command to package up the source files before transferring, the symlinks stay symlinks when they reach the destination. However tar supports following symlinks by passing the -h option. Perhaps this plugin could add a Boolean parameter (follow_symlink) that supplies the -h option to tar.

Or, a more generally useful although possibly dangerous solution might be to have a param that lets a consumer specify any options to tar they wish

theonedemon commented 3 years ago

up, any news?

appleboy commented 1 year ago

I will take it.