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.

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:
    1
    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:
    145
    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
     
  3. Dhillon

    Dhillon Member

    Joined:
    Dec 26, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page