Open garlick opened 1 year ago
It is appealing to use flux bcast
since that would allow this command to be written in Python or the shell, making some of possible boilerplate a little less onerous. It would also make the command more accessible to extensions/enhancements/improvements if necessary.
Problem: using the proposed file broadcast toolset in #4789, it is somewhat error prone to set up replication of a directory to identical /tmp paths across an instance.
Example: replicate flux-core source tree across an instance
It's too easy to get this wrong. Missing the
-x 0
would extract over the top of the source. Failing to unmap might result in SIGBUS crashes or hash errors if the rank 0 content is modified while it is still mapped. Therefore, it may be useful to provide a single command that takes care of everything for this use case, e.g.or maybe