OpenVZ Forum


Home » General » Support » *SOLVED* copying files from HN to VEs
*SOLVED* copying files from HN to VEs [message #4799] Wed, 26 July 2006 15:07 Go to next message
jchamilton is currently offline  jchamilton
Messages: 8
Registered: July 2006
Junior Member
In http://forum.openvz.org/index.php?t=tree&goto=717&&a mp;a mp;srch=copy+files+from+host+to+vps#msg_717 kir demonstrates copying a directory from the HN to a VE by first mounting the VE and then copying into /vz/root.

Is it absolutely necessary to mount the VE first or can I just copy from the HN into /vz/private for the particular VE - *provided* the VE is stopped?

Also, is there a method for copying a file(s) from the HN into a *running* VE? (other than scp, ftp...)

jch

[Updated on: Wed, 26 July 2006 23:53] by Moderator

Report message to a moderator

Re: copying files from HN to VEs [message #4804 is a reply to message #4799] Wed, 26 July 2006 20:21 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Quote:

Is it absolutely necessary to mount the VE first or can I just copy from the HN into /vz/private for the particular VE - *provided* the VE is stopped?


No, it isn't necessary and you can copy files to /vz/private.
But I think, there will be some problems with quota (it'll be not right) after that.

Quote:

Also, is there a method for copying a file(s) from the HN into a *running* VE? (other than scp, ftp...)


Just copy needed files to /vz/root/VEID/...
Re: copying files from HN to VEs [message #4806 is a reply to message #4804] Wed, 26 July 2006 21:14 Go to previous messageGo to next message
jchamilton is currently offline  jchamilton
Messages: 8
Registered: July 2006
Junior Member
thanks! jch
Re: copying files from HN to VEs [message #4807 is a reply to message #4799] Wed, 26 July 2006 22:44 Go to previous message
disaster is currently offline  disaster
Messages: 158
Registered: February 2006
Senior Member
You can copy the files to ../private/.. but then the quota is wrong. If you don't care about quota it doesn't matter.

If you want to recalculate - and your VPS is alreaddy stopped (if not, it makes no sense to copy to private instead of root)

you can use vzquota drop VPS_ID

if you start next time - the quota will be recalculated.

Stefan
Previous Topic: *SOLVED* getcwd dows not work on vps after chroot
Next Topic: *SOLVED* error: "kernel.sysrq" is an unknown key
Goto Forum:
  


Current Time: Tue Sep 10 18:20:04 GMT 2024

Total time taken to generate the page: 0.05888 seconds