-
Notifications
You must be signed in to change notification settings - Fork 146
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
New: jcp for copying jail to jail #805
New: jcp for copying jail to jail #805
Conversation
tested all options, -r, -j and regular cp. All work as advertised. @yaazkal whenever you can test this one. |
for discussion here are the two options I see to remain consistent. What this pr is currently, cp command with switches for remote copy and jail to jail copy and cp with no switches for normal copy. So cp with all the switches. IF we want to keep rcp and cp then create jcp for jail to jail copy. Those are the two ways we are consistent and still give everyone the jail to jail copy that was requested. |
@tschettervictor I've just rebased |
@tschettervictor can you please rebase as the master branch has changes? Thanks |
Done. |
Thanks! |
#552 asked for jail to jail copy mode.
EDIT
cp stays the same
rcp stays the same
NEW: jcp command added
'bastille jcp jail /path/file jail1 /path' will copy from "jail" to "jail1" or whatever jails are specified.
To test
Make sure cp is functional
Make sure rcp is functional
Make sure jcp is functional
You can cp and jcp to all jails using "ALL". rcp works only on one jail though, as it copies from a jail to host.