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.

Backup whole account

Discussion in 'Data Protection' started by dolphinuk, Feb 28, 2009.

  1. dolphinuk

    dolphinuk Member

    Joined:
    Oct 11, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I want to do 6 hourly whole backup for one account and then rsync it to another server.

    I need to know the name of the script I need to run to backup the whole account, which I think is in the /scripts/ folder in SSH
     
  2. JPC-Shaun

    JPC-Shaun Well-Known Member

    Joined:
    Oct 29, 2008
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    /scripts/pkgacct <Cpanel Account username>

    will generate the full Cpanel backup of the account.
     
  3. dolphinuk

    dolphinuk Member

    Joined:
    Oct 11, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Where will the backup be placed ?
    Thanks :)
     
  4. arunsv84

    arunsv84 Well-Known Member

    Joined:
    Oct 20, 2008
    Messages:
    373
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    127.0.0.1
    cPanel Access Level:
    Root Administrator
    The backup will be generated in the /home directory as cpmove-username.tar.gz

    :)
     
  5. dolphinuk

    dolphinuk Member

    Joined:
    Oct 11, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Thanks, is it possible to get it to save to a different location, if so how ?
     
  6. arunsv84

    arunsv84 Well-Known Member

    Joined:
    Oct 20, 2008
    Messages:
    373
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    127.0.0.1
    cPanel Access Level:
    Root Administrator
    By default it will save to home directory. Im not sure whether we can define any path:( . You can move it by

    Code:
    mv /home/cpmove-USERNAME.tar.gz destination
    You can restore using the following command

    Code:
    /scripts/restorepkg USERNAME 
     
  7. dolphinuk

    dolphinuk Member

    Joined:
    Oct 11, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Thanks :)

    I have put together something that works for me.
    Thanks for all your help :)
     
Loading...

Share This Page