Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/scripts/pkgacct with email accounts and without public_html

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

  1. kbs

    kbs Member

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

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,236
    Likes Received:
    384
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. kbs

    kbs Member

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

    kbs Member

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

     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,236
    Likes Received:
    384
    Trophy Points:
    583
    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.

    :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice