You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request]: Storage - Add container volume cp command to copy data to and from volumes #895
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.
@PhantomInTheWire Thanks for picking this up! I’d suggest using this thread to discuss your approach and get some feedback before you start implementing, since there might be some caveats. This will make both development and review much smoother :)
hey @realrajaryan i was thinking something where data flow looks like this
Host → Volume
CLI: Create tar of local files → pipe.write
CLI: Dup pipe.read FD → send to XPC
Daemon: Receive FD →uncompress() → extract to volume path
Volume → Host
CLI: Dup pipe.write FD → send to XPC with copyOut request
Daemon: compress() from volume path → write to FD
XPC: Stream tar data back to CLI (through the FD)
CLI: Read from pipe → uncompress() → extract to temp dir → move to destination
for the compress() uncompress() i think extending Archiver.swift with func uncompress(...) and func compress(...) to handle writes to file handle(pipe).
I was wondering if this is enough or should we also support volume to volume copies(i think it would be cool if that could happen but i think we should make that a follow up pr with a separate issue of its own)
Activity
PhantomInTheWire commentedon Nov 19, 2025
i could work on this
realrajaryan commentedon Nov 19, 2025
@PhantomInTheWire Thanks for picking this up! I’d suggest using this thread to discuss your approach and get some feedback before you start implementing, since there might be some caveats. This will make both development and review much smoother :)
PhantomInTheWire commentedon Nov 22, 2025
hey @realrajaryan i was thinking something where data flow looks like this
Host → Volume
Volume → Host
for the compress() uncompress() i think extending
Archiver.swiftwithfunc uncompress(...)andfunc compress(...)to handle writes to file handle(pipe).I was wondering if this is enough or should we also support volume to volume copies(i think it would be cool if that could happen but i think we should make that a follow up pr with a separate issue of its own)
PhantomInTheWire commentedon Dec 20, 2025
hey @realrajaryan i have a pr open for this at #963 could you take a look and help review it? thanks.