/scripts/pkgacct with email accounts and without public_html

kbs

Member
Jul 27, 2011
10
0
51
Hello to everybody

I have 4 WHM servers and they are all working very well, i have the servers making backups all weekends and transfering those backups to the others servers.

But i'd like to have a local backup in my office of all my customers, but I don't want to backup too much data. So I was thinking to make a backup with skip-homedir, but with that flag the mail accounts don't back up, and that's not good for me. So:

I want to backup all my accounts but WITHOUT public_html, WITH email accounts, and WITHOUT emails

How can I do that?

Thanks!
 

kbs

Member
Jul 27, 2011
10
0
51
Hello and thank you for your answer

I'm playing with that file and I found that /scripts/pkgacct does not obey cpbackup-exclude.conf, you have to use /scripts/cpbackup, but the thing is that that script makes a backup of ALL accounts ... (or at least I could'nt find the way to make a backup from just one account yet)
 

kbs

Member
Jul 27, 2011
10
0
51
I found it, you have to use the following command:

/scripts/pkgacct <username> <destination_dir> --backup

that way pkgacct do obey /home/<username>/cpbackup-exclude.conf

I'm using the next cpbackup-exclude.conf:

*/tmp
*/.spam
*/.Drafts
*/.Junk
*/.Trash
*/.trash
*/error_log
*/cur