cargo-remote icon indicating copy to clipboard operation
cargo-remote copied to clipboard

How to only transfer certain folders (like src) to remote?

Open theronic opened this issue 5 years ago • 2 comments

I have a bunch of binary resources in my project folder because reasons, which I don't want to transfer to the remote target. How can I exclude them?

theronic avatar Nov 28 '18 11:11 theronic

Thank you for your interest in this project :) rsync has the --exclude flag which allows you to exclude certain files. You could add a flag to cargo-remote that just passes patterns to exclude. I'd be happy to review and merge such a PR, but as I mentioned in your other issue I'm currently not using cargo-remote myself and won't actively develop it for now. It already excludes target, so you can have a look at that.

sgeisler avatar Nov 29 '18 00:11 sgeisler

Haha "first good issue" :). Yeah, no expectations - I'm opening issues partly as capture-the-flag features (and because I have a bad memory) for future Rustaceans. I did hack some changes together to limit syncing, but not PR-ready.

theronic avatar Nov 29 '18 08:11 theronic