Results 1 to 7 of 7
Thread: Copy everything to new hdd
-
06-07-2005, 12:36 PM #1Web Hosting Guru
- Join Date
- Jan 2005
- Posts
- 268
Copy everything to new hdd
hi everyone
i just added a second hdd for my server . Now i want to copy all my accounts, files, database to new hdd. What is the best way to move everything in that hdd ( which i am using it now ) to second hdd ?
HEre what i do (coorect me if i'm wrong):
/scripts/pkgacct ACCOUNTNAME &
mv cpmove-USER***.tar.gz /mnt/home/
and next will be untar ? ( dont really remember the command )
Here is my 2 hdds:
Disk hde2 (/) DMA+
Disk hdg2 (/mnt) DMA+
thanks
p/s: Centos 3.4 + cpanel. Sorry about this kind of old question, but i have searched around and dont see any best solutions.
-
06-07-2005, 02:57 PM #2Junior Guru
- Join Date
- Oct 2003
- Location
- Long Island, New York
- Posts
- 220
Ugh, no this is very wrong. Please hire a server admin to do this for you. Messing with partitions on a live machine isn't something a novice should try and do. I can't tell from this if you're trying to make backups or if you're trying to set up the other drive as your /home partition.
TWSites.com - Business Web Hosting Solutions & Server Management Since 2003
-
06-07-2005, 06:32 PM #3Web Hosting Guru
- Join Date
- Jan 2005
- Posts
- 268
thank for the advices, but iam broke now.
To everyone
I have moved few account under 4gb to new hdd by this command:
cp -R /home/useraccount /mnt/home
and it works, but when i copy account which is 80gb, when it running for 15 minutes then ssh says timeout, and it kicks me out of ssh. Anyone has anyidea? thanks
-
06-07-2005, 07:21 PM #4WHT Addict
- Join Date
- Dec 2002
- Location
- Egypt
- Posts
- 151
Well you can issue this command with
cp -R /home/useraccount /mnt/home&
Note the '&' to send this job to the background so even if you disconnected , server will continue doing the job.
or you can get a decent SSH client that be able to send NO-OP packets (Anti-Idle Technique)knowledge is Power , Spread it.
www.e-tutankhamun.com
ahmed@e-tutankhamun.com
AIM:AhmedFouad0 , yahooID:xor2004
-
06-07-2005, 07:42 PM #5Web Hosting Guru
- Join Date
- Jan 2005
- Posts
- 268
Thank AhmedFouad
How do you get a decent SSH client that be able to send NO-OP packets (Anti-Idle Technique) ?
I just wanna making sure that when i use this :
cp -R /home/useraccount /mnt/home& , then it will copy all my database's forum also ?
-
06-08-2005, 12:12 PM #6Newbie
- Join Date
- May 2005
- Posts
- 7
Hi
You can use a screen session to do this for you.
screen <normal command>
This will allow the copy to continue even if the login session is closed.
Also I think it will be better to configure backup in whm to your secondary drive so that you can have the latest backup of your data.
Thank you.
-
06-09-2005, 01:56 PM #7WHT Addict
- Join Date
- Dec 2002
- Location
- Egypt
- Posts
- 151
I prefer and use SecureCRT 4.1
knowledge is Power , Spread it.
www.e-tutankhamun.com
ahmed@e-tutankhamun.com
AIM:AhmedFouad0 , yahooID:xor2004