Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Bind mounts

14 bytes removed, 16:58, 20 September 2010
simplify two commands
Sometimes it is usefull to have a folder read-only mounted in a VPS, but also be able to put files in that directory. If you want that, just create an other directory and simlink the read only files into that folder:
vzctl exec2 777 "mkdir /addfileshere && vzctl exec2 777 ln -s /home/* /addfileshere/"
Now the /addfileshere folder is fully writable and it even feels like it is possible to delete files (but that are only the simlinks).