joun_mp

Registered
Feb 10, 2005
4
0
151
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?
 

Infopro

Well-Known Member
May 20, 2003
17,112
513
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
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?
 

Spiral

BANNED
Jun 24, 2005
2,020
8
193
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:

joun_mp

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