Copy data from container to host [message #51015] |
Tue, 24 December 2013 06:22 |
bstriker
Messages: 4 Registered: December 2013
|
Junior Member |
|
|
So my google foo is worthless on this topic.
Is there anyway to copy data from a container to the host?
I know you can copy data from the host to the container.
The os is pretty well botched with a few broken packages and no network
tried restoring the network but it has no default routes and I can't seem to add one.
So instead of wasting time to repair I'm hoping there is a clean cut way to just dump the data to the host and make a new container.
Any help is greatly appreciated. This is my first post.
[Updated on: Wed, 25 December 2013 08:57] Report message to a moderator
|
|
|
Re: Copy data from container to host [message #51019 is a reply to message #51015] |
Tue, 24 December 2013 20:41 |
Paparaciz
Messages: 302 Registered: August 2009
|
Senior Member |
|
|
Can you be more specific about "The os is pretty well botched with a few broken packages and no network"??
what kernel and os in HN?
what os in CT?
why not to create new CT, install needed packages, move data?
|
|
|
Re: Copy data from container to host [message #51023 is a reply to message #51015] |
Wed, 25 December 2013 05:04 |
bstriker
Messages: 4 Registered: December 2013
|
Junior Member |
|
|
Thanks for the response. And sure, sorry for not being specific.
I'll try to fetch the kernel info if I get some time, but here's the basics.
It's a debian wheezy container on a debian wheezy host (proxmox 3 to be specific)
The system ran out of free HDD space during a package upgrade.
Some of the core packages like ls were broken. I tried clearing the package cache to increase space not thinking that I could just increase the HDD live. So now I can't do much other than console drop into it using vzctl enter. SCP would have been my first option to transfer data but no net.
[Updated on: Wed, 25 December 2013 05:07] Report message to a moderator
|
|
|
|
|
|
|
Re: Copy data from container to host [message #51029 is a reply to message #51027] |
Fri, 27 December 2013 07:28 |
bstriker
Messages: 4 Registered: December 2013
|
Junior Member |
|
|
dipps wrote on Wed, 25 December 2013 19:31The HN (Hardware Node) is your Debian host. The one that boots from bare metal.
So get a shell prompt on the HN. Look in /var/lib/vz/private/CONTAINER_NUMBER
You'll see the files of the container. You can use the usual cp commands etc to copy files from the container to somewhere on the host. Or the other way, or onto another container.
No homo but I love you. This is what I needed to know. Thanks!
|
|
|