View Single Post
  #9 (permalink)  
Old 07-23-2004, 09:55 AM
eazistore eazistore is offline
Registered User
 
Join Date: Nov 2003
Location: Singapore
Posts: 72
eazistore is on a distinguished road
restore accounts

Quote:
Originally Posted by br3ach
Is therea script to untar this back into the users directory so it overwrties everything there if you need to restore the files?

Thanks

br3ach
Hi br3ach,

I have sent a post before.
Here I copy and paste for your reference again:

BACKUP
SSH to your server and run this command
/scripts/pkgacct2 username ---> this will tar the user account
cd /home --> change directory to user home
chmod 755 username.tar.gz --> set the permission
mv /home/username.tar.gz /home/youraccount --> move the file to your OWN folder as you wish

Then open a FTP session and you should be able to see the username.tar.gz at your /home/youraccount folder
Download it to your local computer.

------------------

RESTORE
Upload the username.tar.gz to your server.
SSH to your server and run this command.

mv /home/youraccount/cpmove-username.tar.gz /home --> move the file to the home directory
/scripts/restorepkg username --> restore the account fully
rm cpmove-username.tar.gz --> remove the .tar.gz file
Lastly go to WHM and DNS/Name Server (BIND)

Hope this helps.
Reply With Quote