[newbie] Moving /var/www to different drive

2002-11-18 Thread Todd Slater
I have an extra hard drive and I'm thinking about using it for /var/www or
/var/ftp. I already have those on /, obviously. Is there any problem if I
rename /var/www something like /var/www2, then make the 2nd hard drive
/var/www, and copy stuff from the old to the new?

Todd


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Moving /var/www to different drive

2002-11-18 Thread Stormjumper
i think what you suggested works
i was doing that not too long ago,
albeit with a slightly diff method.

1. mount the new hdd in a temp location, eg /mnt/new_hd
2. stop apache and a couple of personal crons that worked 
on /var/www
3. copy the stuff from /var/www to /mnt/new_hd
4. move /var/www to /mnt/backup/www
(which is a backup drive of mine)
5. mount the new hdd at /var/www
6. edit fstab to reflect the changes
7. restart apache and whatever stuff i stopped.

just some potential pitfalls u've to take note:
1. make sure you copy with permissions and ownership preserved
i think it's 'cp -rp' or use 'rsync -az',
but if i were you, i'd make sure.
2. in my case, mdk 8.2, cron needs to pass the hour mark
before it picked up any changes in the crontab.
the alternative was to manually restart cron.
i'm not sure if it's default behaviour, but it certainly
caused me lotsa grief when i started with cron.

hope it helps

On Mon, 18 Nov 2002 20:32:01 -0500
Todd Slater [EMAIL PROTECTED] wrote:

 I have an extra hard drive and I'm thinking about using it for
 /var/www or/var/ftp. I already have those on /, obviously. Is there
 any problem if I rename /var/www something like /var/www2, then make
 the 2nd hard drive/var/www, and copy stuff from the old to the new?
 
 Todd
 
 


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com