Results 1 to 15 of 15

Thread: Backup in /home2 a bad idea?

  1. #1
    Member
    Join Date
    Jul 2011
    Posts
    62

    Cool Backup in /home2 a bad idea?

    Is daily backup in home2 a bad idea? If it is.. Could I do home2/backup ? Do I have to setup a folder? if so how do I go about doing that? Or will cpanel do it for me automatically?

    thanks


    this is what I saw in the bottom line in settings.. - Backup Destination (this should be a directory/NFS/Coda mount with at least twice the space of all your /home* partitions. Setting this to /home is a very bad idea.)

    Thats why i am wondering about home2/backup ? and if i have to create the folder or if i can just type it in..

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Backup in /home2 a bad idea?

    If you are using /home2 for account creation, then using /home2 for your backup would be a bad idea. Any partition being used for newly created accounts would mean that you've just used the same mount point as some of your accounts.

    The idea behind backing up data to a different mount point is that if the current /home directory becomes read only or corrupted, you have your backup data in another directory. If you have your backup in the same directory as accounts, then you no longer have reliable backups that will be able to be used if /home2 becomes read only or corrupted.

    I would highly suggest mounting another drive called /backup or using remote FTP backups to have data in a different mount or on a different machine.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Jul 2011
    Posts
    62

    Default Re: Backup in /home2 a bad idea?

    Currently no one is using home2/ I was going to use it for my backup... How do I turn home2/ into a backup? OR how how would I add a backup drive? I have plenty more room for plenty more drives.

    thanks

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Backup in /home2 a bad idea?

    If you aren't using /home2 for accounts, I would ensure that WHM > cPanel & WHM Basic Setup has nothing listed for the following option:

    Additional home directories matching the following value will also be used for new home directory creations. (Leaving this value blank disables the feature.) This option only takes one value.
    If it has home listed, then /home2 will automatically be used for new accounts whenever it has less disk space used than the /home partition. By setting that to blank, then only /home will be used for new accounts.

    Next, is /home2 a different drive or mounted separately? If not, then I would highly suggest contacting your datacenter, NOC or provider for assistance in that portion. Any commands I noted here might wipe out your existing file system if done improperly.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #5
    Member
    Join Date
    Jul 2011
    Posts
    62

    Default Re: Backup in /home2 a bad idea?

    Its a completely different drive. Ok... I formated it did all that jazz.. then went to nano /etc/fstab/ made my changes but then i get

    I added - /dev/sdb1 /backup ext3 defaults 1 2 - into fstab

    saved...
    it also says - /dev/sdb1 /home2 ext2 defaults,usrquota 1 2 ??? is that correct I no longer have a home2/




    I type - mount /dev/sdb1



    mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
    missing codepage or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so

    Any ideas?
    Last edited by webstuff; 01-02-2012 at 03:11 PM.

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Backup in /home2 a bad idea?

    What does running "fdisk /dev/sdb1 -l" show? Also, did you check "dmesg | tail" as it suggested?
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #7
    Member
    Join Date
    Jul 2011
    Posts
    62

    Default Re: Backup in /home2 a bad idea?

    strange.... I wondering what i did wrong


    Disk /dev/sdb1: 160.0 GB, 160039240704 bytes
    255 heads, 63 sectors/track, 19456 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Disk /dev/sdb1 doesn't contain a valid partition table

  8. #8
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Backup in /home2 a bad idea?

    You might review the following thread:

    [SOLVED] Disk /dev/sdh doesn't contain a valid partition table

    If that doesn't help, I'd suggest using a search engine for the error "doesn't contain a valid partition table" as this is outside the control panel itself.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  9. #9
    Member
    Join Date
    Jul 2011
    Posts
    62

    Default Re: Backup in /home2 a bad idea?

    ok.... I did miss something.. now im getting this

    mount point /backup does not exist

  10. #10
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Backup in /home2 a bad idea?

    Did you create the mount point?

    Code:
    mkdir /mnt/backup
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  11. #11
    Member
    Join Date
    Jul 2011
    Posts
    62

    Default Re: Backup in /home2 a bad idea?

    i think im missing something... I tried mkdir /mnt/backup

    then i on the next line i typed mount /dev/sdb and I still got mount point /backup does not exist

  12. #12
    Member
    Join Date
    Jul 2011
    Posts
    62

    Default Re: Backup in /home2 a bad idea?

    wait i think i got - ah- mount /dev/sdb /mnt/backup


    mkdir /mnt/backup
    mount /dev/sdb /mnt/backup

  13. #13
    Member
    Join Date
    Jul 2011
    Posts
    62

    Default Re: Backup in /home2 a bad idea?

    ok this may seem like a really sutpid question but... how do I know its working correctly?


    ok... thanks again.. somtimes i just love to rush.. For anyone who is wondering... - then it will show up in current disk usage...


    mkdir /backup

    then

    mount /dev/sdb /backup
    Last edited by webstuff; 01-02-2012 at 03:49 PM.

  14. #14
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Backup in /home2 a bad idea?

    If you were able to mount it and then it works for putting backups there, and it shows up when you issue "mount" and "df -kh" commands, it should be working.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  15. #15
    Member
    Join Date
    Jul 2011
    Posts
    62

    Default Re: Backup in /home2 a bad idea?

    yes i was... thank you again so much... I'm so excited. I love it! I love cpanel..

Similar Threads

  1. Is it a bad idea
    By lamp in forum New User Questions
    Replies: 2
    Last Post: 11-27-2004, 02:17 PM
  2. TOMCAT: good or bad idea
    By Secret Agent in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 11-08-2004, 01:31 AM
  3. Interchange Cart - Bad Idea?
    By chadi in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 05-06-2004, 12:09 AM
  4. I have /home and /home2.. can I backup both to /home2?
    By fog in forum cPanel & WHM Discussions
    Replies: 10
    Last Post: 10-27-2002, 01:23 AM