The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Backups

Discussion in 'General Discussion' started by GoldenTiger, Jun 25, 2003.

  1. GoldenTiger

    GoldenTiger Member

    Joined:
    Jun 22, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I am going to get a server with 2 hard drives (SCSI). I want to have a backup from drive 1 to drive 2 every night. How do I set it up so that cpanel uses drive 1 as its /home directory for accounts and won't use drive2 at all for accounts, just backups, and how do I make it backup to drive 2 instead of drive 1? The backup option in cpanel just shows destination as /backup, I assume that means it is going to try to backup to drive 1 instead of 2 :(? Thanks!

    cPanel.net Support Ticket Number:
     
  2. Beowulf

    Beowulf Active Member

    Joined:
    Feb 16, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    The hard drive you have as your second drive needs to be labeled /backup when you set your settings for backup it will then when backup runs place those files automatically into the back drive.

    cPanel.net Support Ticket Number:
     
  3. GoldenTiger

    GoldenTiger Member

    Joined:
    Jun 22, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    How do I label it as /backup?

    cPanel.net Support Ticket Number:
     
  4. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    you can modify the fstab and force re-mount.. If you don't know how to unmount, mount...?

    Brenden

    cPanel.net Support Ticket Number:
     
  5. GoldenTiger

    GoldenTiger Member

    Joined:
    Jun 22, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Brand new to Linux, learning on a local machine :).

    cPanel.net Support Ticket Number:
     
  6. GoldenTiger

    GoldenTiger Member

    Joined:
    Jun 22, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Using google I found some info... am I correct in saying that if I want drive #2 mounted as /backup, all I do is (at a bash prompt as superuser in root directory):

    Code:
    mkdir /backup
    
    mount -t ext2 /dev/hdb1 /backup
    
    Then set up cpanel to backup to /backup and I'm done?
     
    #6 GoldenTiger, Jun 26, 2003
    Last edited: Jun 26, 2003
  7. GoldenTiger

    GoldenTiger Member

    Joined:
    Jun 22, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Could someone confirm if I'm right or not?

    cPanel.net Support Ticket Number:
     
  8. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    I'd be interested in knowing the answer as well. Also, does it matter if the second drive uses 'backup' for a dir. name or can anything be used?

    cPanel.net Support Ticket Number:
     
  9. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    That will work as long as it has been partitioned first.

    You can call a directory whatever you want and use it for backup by just specifying the directory name. Just don't call it anything like home2.

    Here is where I found useful info on partitioning and mounting.
    http://tldp.org/HOWTO/Partition/index.html
     
  10. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    Squirrel, I take it you are referring to my question, not the one by GoldenTiger?

    cPanel.net Support Ticket Number:
     
  11. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Both actually.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page