Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    50

    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.

  2. #2
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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

  3. #3
    Member
    Join Date
    Jun 2004
    Posts
    50

    Default

    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 :
    Backup Status: Enabled x Disabled Restore
    So "Disabled" is checked. Shoudn't I have "Enabled" checked instead ?

    Thank you !

  4. #4
    Member dianaward's Avatar
    Join Date
    Dec 2002
    Location
    USA
    Posts
    102

    Default 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>

  5. #5
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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

  6. #6
    Member
    Join Date
    Jun 2004
    Posts
    50

    Default

    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

  7. #7
    Member
    Join Date
    Nov 2003
    Location
    Singapore
    Posts
    72

    Default

    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.

  8. #8
    Member
    Join Date
    Feb 2004
    Location
    UK
    Posts
    32

    Default

    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

  9. #9
    Member
    Join Date
    Nov 2003
    Location
    Singapore
    Posts
    72

    Default 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.

  10. #10
    Member
    Join Date
    Feb 2004
    Location
    UK
    Posts
    32

    Default

    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

  11. #11
    Member
    Join Date
    Nov 2003
    Location
    Singapore
    Posts
    72

    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

  12. #12
    Member
    Join Date
    Feb 2004
    Location
    UK
    Posts
    32

    Default

    No probs

    I was asking more than correcting you

    I guess you did mean restart after all

    Cheers
    br3ach

  13. #13
    Registered User
    Join Date
    Jun 2004
    Location
    Atibaia/SP, Brazil
    Posts
    4

    Default

    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.

  14. #14
    Member
    Join Date
    Jul 2003
    Location
    New Mexico
    Posts
    86

    Default

    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.

Similar Threads & Tags
Similar threads

  1. best backup method
    By wgalafassijr in forum Data Protection
    Replies: 3
    Last Post: 01-12-2011, 08:43 PM
  2. Different backup method?
    By jhyland87 in forum Data Protection
    Replies: 9
    Last Post: 06-18-2009, 11:37 AM
  3. Bad backup method !!!
    By Lion4H in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-28-2005, 09:21 AM
  4. Preferred Backup Method
    By neonix in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 08-03-2005, 01:47 PM
  5. Backup method has changed ?
    By pfiev in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-28-2004, 09:57 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube