#1 (permalink)  
Old 07-01-2004, 01:41 PM
Registered User
 
Join Date: Jun 2004
Posts: 40
SecondSight
Smile Complete Backup method ?

Hello !

I'm totally new to managing a server... I want first to learn how to make a backup.

I have only one account.

There is a backup tool in cpanel, but I'm worried about this point : what should I know that is not said ?

I suppose the backup is done automatically, once you have enabled it in "Configure backup/Backup Status". I see it is set as disabled by the person who installed everything on the server... why ?

Once I have enabled it, what should I do ? I suppose I must download the compressed file through my ftp client, and, is this all I have to do to backup ?

I have other questions :
1-What is the use of choosing "Per Accounts and Entire Mysql Dir" instead of "Per accounts only" ? Why should I choose the second (which has been set default) instead of the first ?
2-Should I backup raw access logs ? (I don't know what it is)

Thank you for your help and pieces of advice ! :-)

AJ

Last edited by SecondSight; 07-01-2004 at 01:43 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-01-2004, 02:16 PM
linux-image's Avatar
Registered User
 
Join Date: Jun 2004
Location: India
Posts: 1,175
linux-image is on a distinguished road
by default the backup comes disabled. there is no issue enabling it.

there is no need that you download the whole thing using ftp.

check if you have a folder named /backup.

make backup type to standard and select daily backup.

now check if backup destination is /backup. If yes .. SAVE settings.

you will have daily backup populated at the /backup folder.

Per Accounts and Entire Mysql Dir : will make a backup of the domain database inside a folder named mysql inside the folder homedir at the /backup/cpbackup/username
and also a complete backup of /var/lib/mysql

no need for a raw-access log .. but if u have customers adament about it.. then mayb u should.

lemme know if u have any further questions.

while the other one neglects /var/lib/mysql

i suggest the option
__________________
linux-image
AIM: "tux image"
Msn: "tux_image@hotmail.com"
Yahoo: "masternikx"

http://admin-ahead.com
Open Tickets: https://www.ticketforge.com
FAQ's: http://scriptmantra.info/

Tips: http://tips.admin-ahead.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-01-2004, 07:56 PM
Registered User
 
Join Date: Jun 2004
Posts: 40
SecondSight
It seems like everything is ok.

I have one more question (a matter of language :-) :

>>> there is no issue enabling it.
I don't understand this sentence. In the WHM, I have :
Quote:
Backup Status: Enabled x Disabled Restore
So "Disabled" is checked. Shoudn't I have "Enabled" checked instead ?

Thank you !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-01-2004, 09:07 PM
dianaward's Avatar
Registered User
 
Join Date: Dec 2002
Location: USA
Posts: 103
dianaward
It depends...

If you have a backup drive (second hard drive) on your server, just enable backup.

But...
If you have only one drive, you can still create a directory named backup and enable the backup, especially if you are planning to stick with only a few of your own domains. But if you plan to be a webhost, you may find that the backups fill up your primary partition and hence overload the server. In that event you need to either (1) create a /backup subdirectory in your /home directory and set the backups to go there, or (2) have a second drive installed and a backup directory set up there, depending on how much room is on that partition.
__________________
Diana Ward
http://aqualityhost.com
Sanity calms, but madness is more interesting.
<cite>-- John Russell </cite>
That's why I'm a Web designer/host."
<cite>-- Diana Ward</cite>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-02-2004, 02:24 AM
linux-image's Avatar
Registered User
 
Join Date: Jun 2004
Location: India
Posts: 1,175
linux-image is on a distinguished road
Quote:
Originally posted by SecondSight


>>> there is no issue enabling it.
I don't understand this sentence. In the WHM, I have :



it shld be enabled

by the way am i tht bad in english
__________________
linux-image
AIM: "tux image"
Msn: "tux_image@hotmail.com"
Yahoo: "masternikx"

http://admin-ahead.com
Open Tickets: https://www.ticketforge.com
FAQ's: http://scriptmantra.info/

Tips: http://tips.admin-ahead.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-02-2004, 10:36 AM
Registered User
 
Join Date: Jun 2004
Posts: 40
SecondSight
No, you are not
It's just that I don't understand this word : issue.

I only have one drive and one domain, so it will be saved in the backup directory.

I have enabled the backup( I've checked the "Enabled" radio button).

Thank you for your help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-02-2004, 12:48 PM
Registered User
 
Join Date: Nov 2003
Location: Singapore
Posts: 72
eazistore is on a distinguished road
Quote:
Originally posted by SecondSight
No, you are not
It's just that I don't understand this word : issue.

I only have one drive and one domain, so it will be saved in the backup directory.

I have enabled the backup( I've checked the "Enabled" radio button).

Thank you for your help
Hi SecondSight,

Since you have only 1 hard disk and I suggest you SSH to your server and manaully backup the entire account by this command:

1. /scripts/pkgacct2 username
2. cd /home
3. chmod 755 *.tar.gz
4. mv /home/*.tar.gz /home/username
5. Open a FTP session to your host and download it to your local computer.
6. Make sure you DELETE it after download as you don't want to leave it there.

Hope it helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-23-2004, 09:28 AM
Registered User
 
Join Date: Feb 2004
Location: UK
Posts: 32
br3ach
Quote:
Originally Posted by eazistore
Hi SecondSight,

Since you have only 1 hard disk and I suggest you SSH to your server and manaully backup the entire account by this command:

1. /scripts/pkgacct2 username
2. cd /home
3. chmod 755 *.tar.gz
4. mv /home/*.tar.gz /home/username
5. Open a FTP session to your host and download it to your local computer.
6. Make sure you DELETE it after download as you don't want to leave it there.

Hope it helps.
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
__________________
br3ach
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 07-23-2004, 10:55 AM
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 07-24-2004, 05:54 AM
Registered User
 
Join Date: Feb 2004
Location: UK
Posts: 32
br3ach
Hi m8

Thanks for posting

"Lastly go to WHM and DNS/Name Server (BIND)"

Do you mean:

"Lastly go to WHM and Restart DNS/Name Server (BIND)"

Thanks

br3ach
__________________
br3ach
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 07-24-2004, 07:00 AM
Registered User
 
Join Date: Nov 2003
Location: Singapore
Posts: 72
eazistore is on a distinguished road
Cool

Quote:
Originally Posted by br3ach
Hi m8

Thanks for posting

"Lastly go to WHM and DNS/Name Server (BIND)"

Do you mean:

"Lastly go to WHM and Restart DNS/Name Server (BIND)"

Thanks

br3ach
Hi br3ach,

Thanks for adding the phrase Restart
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 07-24-2004, 08:23 AM
Registered User
 
Join Date: Feb 2004
Location: UK
Posts: 32
br3ach
No probs

I was asking more than correcting you

I guess you did mean restart after all

Cheers
__________________
br3ach
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 09-20-2004, 02:26 AM
Registered User
 
Join Date: Jun 2004
Location: Atibaia/SP, Brazil
Posts: 4
gigli
U can do that on WHM under Backup Functions.

Restore a Full Backup/cpmove file

*Remember to put the backup-....tar.gz file on the indicated directories and type the correct username on the field.
__________________
Hey, take a free time and see us http://wazzzup.com.br!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 09-22-2004, 01:31 AM
Registered User
 
Join Date: Jul 2003
Location: New Mexico
Posts: 79
gunmuse
I backed up ALL accounts and had to reimage the main drive.

So now I have

/drv2/backup/cpmonthly/blah blah


How to I RESTORE cpanel using this.

I am not wanting to do just one user but all 100 users
__________________
Donny J Lairson

http://www.gunmuse.com

He who laughs last thinks the slowest.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:47 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc