Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    4

    Question backing up to /home

    I know that backing up to /home is a "very bad idea" as per cpanel help. However that's the only partition where I have space and I have no second disk. So if I back up only a few accounts is it still a no-no?

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,892
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    IIRC, cPanel will not allow it. You can pick up a VPS somewhere very cheap, you could ask your DC to add another drive, you can back up to a home server even, all of those are good ideas. Backing up to the same drive as the accounts are on? Not so good.

    Why bother backing up at all if it's not to a secure location off the drive/server? If someone gets in it could all be wiped in seconds, then where would you be?

  3. #3
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Another thing you could do if getting a second drive is not an option ....

    Reduce the size of your current /home partition and create a new partition with the space such as /backup

    Alternatively, you could use /scripts/pkgacct which backups directly to /home by default

    Very basic script to run 'pkgacct' against all your accounts:
    Code:
    #!/bin/bash
    IFS="$"
    
    /bin/ls -- /var/cpanel/users | /bin/grep -v "\.\|root\|mysql\|nobody\|cpanel" | while read CPUSER; do
       /scripts/pkgacct "${CPUSER}"
    done
    Last edited by Spiral; 10-18-2009 at 01:03 PM.

  4. #4
    Registered User
    Join Date
    Feb 2005
    Posts
    4

    Default

    Thanks for the answers, guys! I think its too late for /home partition resizing - I already have some stuff on it
    I'll try getting some NAS/VPS or backup it to /home Spiral's script and move the backups offsite.

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 03-17-2011, 07:13 PM
  2. Replies: 2
    Last Post: 01-12-2011, 03:33 PM
  3. Help With Home Server Home Page
    By WebDummie in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-14-2010, 04:21 PM
  4. Backing Up To Home Server
    By jeves in forum Data Protection
    Replies: 3
    Last Post: 06-19-2009, 05:33 PM
  5. Backing up to /home
    By pdstein in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-26-2007, 07:02 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube