[Request]: Storage - Add `container volume cp` command to copy data to and from volumes
- Dominant language
- Swift
- Stars
- 49.9k
- Forks
- 1.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 22
Description
### Feature or enhancement request details
Add ability to copy files and directories to and from volumes without requiring a running container. This simplifies volume data management for backups, seeding data, and extraction.
Basic requirements:
* Copy files/directories from host to volume
* Copy files/directories from volume to host
* Preserve file permissions and attributes
* Support recursive directory copying
Example usage:
```
# Copy to volume
container volume cp /path/on/host myvolume:/path/in/volume
# Copy from volume
container volume cp myvolume:/path/in/volume /path/on/host
# Copy directory recursively
container volume cp -r /local/data myvolume:/data
```
This avoids the current workaround of mounting the volume to a temporary container just to copy data in and out.
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Contributor guide
Assessment
This issue has not been assessed yet.