Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENT] bastille copy, much like scp #552

Closed
PythonLinks opened this issue Oct 12, 2022 · 4 comments
Closed

[ENHANCEMENT] bastille copy, much like scp #552

PythonLinks opened this issue Oct 12, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@PythonLinks
Copy link
Contributor

PythonLinks commented Oct 12, 2022

Is your feature request related to a problem? Please describe.
I have a produciton container. I clone it, make changes, and then want to copy those changes back to the production container. Today it was /root/.emacs.d/

Right now I have to type in some ridiculously long "bastille cp" command.

Describe the solution you'd like

I would like to be able to do

bastille copy -r debug:/root/.emacs.d production:/root/.emacs.d

where debug and production are two containers.
Maybe even allow an ALL argument as the target.

I also often want to copy things out of a container to the host system.
Without the : it would assume the file or directory is in the host system.

Basically just like scp but for containers.

Also an alias would be nice
bcp -r debug:/root/.emacs.d production:/root/.emacs.d

Describe alternatives you've considered
I just type in the long commands. I could probably write this as a shell script myself.
It is a good first project for someone who wants to learn how bastille works.

Additional context
If bcp works like scp, it would be easy for people to grok it.

@PythonLinks PythonLinks added the enhancement New feature or request label Oct 12, 2022
@tschettervictor
Copy link
Collaborator

Can't you do bastille copy all ... or do you just want those two jails?
@PythonLinks

@tschettervictor
Copy link
Collaborator

Bastille already has cp (host to jail) and rcp (jail to host)

Have you tried this?

@tschettervictor
Copy link
Collaborator

@PythonLinks plesse test #805. It has what you are asking for.

@bmac2
Copy link
Collaborator

bmac2 commented Jan 13, 2025

#805 implements this feature. Closing this request.

@bmac2 bmac2 closed this as completed Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants