• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Move vhosts and keep links

RossProactive

New Pleskian
Hi all - I have a Plesk 10.3 server running on CentOS 6.

I am running out of space on the current drive, and have installed a new disk to hold my vhosts folder.

I need to run the transvhosts.pl script to move the vhosts folder; so:

1 Can someone please advise what the command should be?
2 Does it matter what I mount the new drive as?
3 And most importantly, will this process mean the paths to /var/www/vhosts/mysite are still valid? I have lots of scripts which refer to files by the full path, so if the path changes, they will all require a rewrite.

Many thanks experts

Ross
 
Thinking about ( I am not the world's greatest Linux brain) do I actually need to run the Plesk command at all? Can't I just mount the new drive as /var/www/vhosts somehow, and move files over?
 
Have you tried to read carefully output of this command with --help option?
 
Thanks Sergey, I think this is more of a Linux issue rather than a Plesk issue, but would this be the process:

Format the new partition
Stop apache
Rename var/www/vhosts to vhosts_old
Create var/www/vhosts and mount /dev/sd1a to this point
Rsync data from var/www/vhosts_old to var/www/vhosts
Start apache

Am I on the right track?

Thanks for your help.
 
Yes, I think that's right approach. If there are other people accessing Plesk, I would also stop Plesk to prevent any changes while moving data.

/etc/init.d/psa stop
 
Back
Top