Skip to content

[Request]: Storage - Add container volume cp command to copy data to and from volumes #895

@realrajaryan

Description

@realrajaryan

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

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    nextItems in scope for the next few milestonesstorageissues and features associated with storage.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions