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

Feature: Cp rcp new functions and documentation #805

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

tschettervictor
Copy link
Collaborator

@tschettervictor tschettervictor commented Jan 12, 2025

Remove rcp command and add -r|--reverse mode in cp

Add jail to jail copy mode. Syntax is '-j|--jail jail:/src jail:/dst'

It makes little sense IMO to include rcp as we can just add a switch to cp to make it act in reverse.

I also added a jail to jail copy mode with the above syntax to allow copying files easily from one jail to another.

#552 asked for jail to jail copy mode.

Removing rcp and having a -r mode just seems way more practical.

To test

Cp a file from host to jail and "all"
Cp -r from a jail to host (all not supported)
Cp from jail to jail (or all) using -j jail:/path jail:/path or all:/path

@bmac2
Copy link
Collaborator

bmac2 commented Jan 14, 2025

tested all options, -r, -j and regular cp. All work as advertised.

@yaazkal whenever you can test this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants