Skip to content

Idea: add wildcard support for mgrctl cp #657

Description

@stdevel

Hi folks,
when using mgrctl cp only one file at the same time can be copied, e.g.:

uyuni-server:~ # mgrctl cp a server:/root/a
10:01AM INF Starting mgrctl cp a server:/root/a

It would be handy having the possibility to copy multiple files at the same time. Currently, this is not possible as the cp subcommand only accepts 2 arguments:

uyuni-server:~ # mgrctl cp a b server:/root/
Error: accepts 2 arg(s), received 3

Currently, a shell loop workaround is needed for this, e.g.:

# for i in a b; do mgrctl cp $i server:/root/ ; done
10:05AM INF Starting mgrctl cp a server:/root/
10:05AM INF Starting mgrctl cp b server:/root/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions