hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : how do i move accounts from one harddrive to another?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

how do i move accounts from one harddrive to another?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-10-2004, 03:47 PM
neotek neotek is offline
Newbie
 
Join Date: May 2004
Posts: 15

how do i move accounts from one harddrive to another?


The harddrive in my server died tonight and my isp is installing a new one with a new operating system as we speak. I am expected to just copy files across and set everything back up. I have no idea whatsoever how to do that, given that all the accounts on the server were created by cpanel. I have no idea what directories to copy other than /home and I have no idea how to get the new copy of cpanel they'll install on the new harddrive to recognise the accounts I just copied over.

If someone can help me with any of this I will be forever in their debt.

Thanks in advance; please help if you can, I run the risk of losing my entire business because of this.

edit: to clarify, the old harddrive had bad sectors and now refuses to boot in anything but readonly mode. the new harddrive they're installing will become the primary drive, the old harddrive will become the slave. i'll be able to copy files from the old drive directly onto the new drive. they'll both be in the same machine, basically, only the new drive will be the master instead of the old drive being the master, if you catch my drift.

Reply With Quote


Sponsored Links
  #2  
Old 05-10-2004, 03:50 PM
3spades 3spades is offline
Web Hosting Master
 
Join Date: Oct 2002
Location: Brooklyn NY
Posts: 808
If you have backups made by cpanel you can do a full restore from within whm. If not then you will need to manually move stuff into the right dirs and check ownership and permissions.

__________________
Why do they call them fingers? I never seen them fing. Oh, there they go.


Reply With Quote
  #3  
Old 05-10-2004, 10:44 PM
neotek neotek is offline
Newbie
 
Join Date: May 2004
Posts: 15
I can move the accounts over but my question is, how do I get the new copy of cpanel to recognise the accounts and rebuild its index? Or is there a special folder I can move over to copy all of cpanel over as well?

Reply With Quote
Sponsored Links
  #4  
Old 05-11-2004, 10:03 AM
3spades 3spades is offline
Web Hosting Master
 
Join Date: Oct 2002
Location: Brooklyn NY
Posts: 808
Well once you move all the files over they will be in the right places so cpanel will recognise them. What you need to move are all the cpanel user files that belong in /var/cpanel/users and the dns zone files and copy over the old httpd.conf and copy/paste the passwd/shadow entries and all.

__________________
Why do they call them fingers? I never seen them fing. Oh, there they go.


Reply With Quote
  #5  
Old 05-11-2004, 01:15 PM
neotek neotek is offline
Newbie
 
Join Date: May 2004
Posts: 15
Thanks, I'll try that. If it works, I owe you BIG-TIME.

Reply With Quote
  #6  
Old 05-11-2004, 06:43 PM
3spades 3spades is offline
Web Hosting Master
 
Join Date: Oct 2002
Location: Brooklyn NY
Posts: 808
If it works, have backups run atleaste once a month so incase this happens again all you need to do is a full restore and tick off recreate accounts.

__________________
Why do they call them fingers? I never seen them fing. Oh, there they go.


Reply With Quote
  #7  
Old 05-12-2004, 08:11 AM
neotek neotek is offline
Newbie
 
Join Date: May 2004
Posts: 15
It half-worked, but I moved a few other things, played around with some settings, and everything's back online as I write this. Thanks very much, 3spades, you were a big help!

Reply With Quote
  #8  
Old 05-12-2004, 11:18 AM
neotek neotek is offline
Newbie
 
Join Date: May 2004
Posts: 15
Okay, still having a problem with mail accounts. It looks like they haven't survived the migration. Got any ideas on how to get them working again?

Reply With Quote
  #9  
Old 05-12-2004, 11:27 AM
neotek neotek is offline
Newbie
 
Join Date: May 2004
Posts: 15
Okay, this is the weird bit. I can send email to email accounts created by users (ie, testaccount@domain.com) but not the default email account for that account (ie, say the username is bob and the domain is fred.com, bob@fred.com is the default email account for fred.com.) The only account I can send email to the default account for is one that I created myself before moving all the files over, so obviously there's a directory or a file somewhere that I've missed that contains the names of the default email accounts for each account.

That's easily the least understandable thing I've ever written, so if someone out there can understand it and give me a solution they'll be some kind of god.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Advanced Internet Technologies Launches Customer Management System Web Hosting News 2013-05-17 14:35:19
VIDEO: CloudLinux CEO Igor Seletskiy on Hosting Platform Software Whir Tv 2012-11-09 09:36:01
Go Daddy Works with US Secret Service in JotForm Website Takedown Web Hosting News 2012-02-17 13:48:28
Web Host Go Daddy Faces More SOPA Backlash with Dump Day Web Hosting News 2011-12-29 15:55:41
Citigroup Says 160,000 More Accounts Compromised in Hack Web Hosting News 2011-06-17 17:40:15


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?