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!

command line backup - specify account

Discussion in 'Data Protection' started by Dhillon, Nov 9, 2014.

  1. Dhillon

    Dhillon Member

    Joined:
    Dec 26, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    When forcing backup via command line, Is it possible to specify the account to be backed ?
    Sometimes I just need to backup one particular account.

    Thanks.
     
  2. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    143
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Kochi, India, India
    cPanel Access Level:
    Root Administrator
    Hello Dhillon,

    Yes, that is possible, you can backup a single account by giving in the following :

    # /scripts/pkgacct username
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Dhillon

    Dhillon Member

    Joined:
    Dec 26, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    Thanks triantect, but this doesn't store the data remotely (ftp, s3).
    but I guess I can cook a bash script with above command to store data remotely.

    Thanks again :)
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    It's not possible to force a backup generation for a single account unless you temporarily disable backups for all other accounts via "WHM Home » Backup » Backup User Selection". Instead, you could use /scripts/pkgacct and manually move it to a remote server (or develop a script that does it automatically).

    Thank you.
     
    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