The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/scripts/pkgacct with email accounts and without public_html

Discussion in 'E-mail Discussions' started by kbs, Mar 16, 2012.

  1. kbs

    kbs Member

    Joined:
    Jul 27, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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!
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. kbs

    kbs Member

    Joined:
    Jul 27, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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)
     
  4. kbs

    kbs Member

    Joined:
    Jul 27, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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:

     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Glad you were able to find your way to get done what you needed to. Thanks for posting back your findings for others to refer to as well.

    :)
     
Loading...

Share This Page