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