TritonDataCenter / node-manta-sync

Rsync style command for Joyent's Manta
31 stars 9 forks source link

Implement rsync include/exclude pattern rules #32

Open jperkin opened 5 years ago

jperkin commented 5 years ago

I'd love to use node-manta-sync as a drop-in replacement for rsync when uploading pkgsrc bulk build reports.

pbulk uses rsync filter rules to only include specific files from the full report directory, this can be seen here: https://github.com/NetBSD/pkgsrc/blob/trunk/pkgtools/pbulk/files/pbulk/scripts/report#L80-L110

Essentially I need node-manta-sync to support an equivalent of --exclude-from=- and be able to provide a list of + and - directives on stdin to include/exclude files for uploading.