On 18/12/2007, at 5:14 PM, Jean-Michel Caricand wrote:
Hi Peter,
I think rsync is the best solution to copy a VE :-)
Example :
# rsync -av -numeric-ids /vz/private/101 /vz/private/102 (on the
same host)
Thanks Jean-Michel that works a treat. You forgot a - though, for the
record the
Peter,
It depends on what you mean by cloning. What exact command/operations
you did?
BTW, do you mean OpenVZ or Virtuozzo?
Thanks,
Kirill
Peter Machell wrote:
After cloning a Debian host, I found everything working except MySQL.
I had to chown its binaries, databases and log folder back
Le lundi 17 décembre 2007 13:40, Peter Machell a écrit :
After cloning a Debian host, I found everything working except MySQL.
I had to chown its binaries, databases and log folder back to mysql
from root.
Is this normal and should I expect other permissions to have changed?
When copying
Le lundi 17 décembre 2007 15:15, Kirill Korotaev a écrit :
Peter,
It depends on what you mean by cloning. What exact command/operations
you did?
BTW, do you mean OpenVZ or Virtuozzo?
Thanks,
Kirill
Peter Machell wrote:
After cloning a Debian host, I found everything working except
On 18/12/2007, at 12:15 AM, Kirill Korotaev wrote:
Peter,
It depends on what you mean by cloning. What exact command/
operations
you did?
vzctl stop xx
cp -R /vz/private/xx /vz/private/xxx
cp -R /etc/vz/conf/xx.conf /etc/vz/conf/xxx.conf
vzctl start xxx
BTW, do you mean OpenVZ or
Peter Machell wrote:
vzctl stop xx
cp -R /vz/private/xx /vz/private/xxx
cp -R /etc/vz/conf/xx.conf /etc/vz/conf/xxx.conf
vzctl start xxx
To have cp preserve permissions, use the -p flag.
I use tar instead of cp, for situation like this. Tar, unlike cp, is
smart enough to handle symbolic
Steve Wray wrote:
tar cf - * | ( cd ../2 ; tar xvf - )
That doesn't need a -p option? ie
I tend to use 'tar --numeric-owner -cf' as well, just in case.
I've never used the -p flag but it's always preserved the numerics just
fine. That's Slackware and Fedora, probably others. Couldn't hurt to
Le lundi 17 décembre 2007 23:50, Peter Machell a écrit :
On 18/12/2007, at 12:15 AM, Kirill Korotaev wrote:
Peter,
It depends on what you mean by cloning. What exact command/
operations
you did?
vzctl stop xx
cp -R /vz/private/xx /vz/private/xxx
cp -R /etc/vz/conf/xx.conf