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!

How do I do backup from the tar file from SSH?

Discussion in 'General Discussion' started by chris8lunch, Sep 28, 2006.

  1. chris8lunch

    chris8lunch Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    166
    How do I do backup from the tar file from SSH?

    Please explain or provide links. The WHM feature to transfer files doesn't always work for some odd reason.

    Thanks!
     
  2. celliott

    celliott Well-Known Member

    Joined:
    Jan 2, 2006
    Messages:
    460
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    United Kingdom
    If you mean how to restore a full backup from ssh you can use:

    /scripts/restorepkg backupname.tar.gz

    Chris.
     
  3. chris8lunch

    chris8lunch Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    166
    Someone sent me a file backup, how do I do this?
     
  4. celliott

    celliott Well-Known Member

    Joined:
    Jan 2, 2006
    Messages:
    460
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    United Kingdom
    Assuming its a full cPanel generated backup:

    Move the backup to a location on your server
    cd to that directory
    /scripts/restorepkg backupname.tar.gz

    Should be that simple.

    Let me know if you still don't get it, do you have an MSN contact?

    Chris.
     
  5. chris8lunch

    chris8lunch Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    166
    I did this,

    cd /home

    downloaded the file to there,

    type 'dir' and it was there (font color of it was red?)

    then i do that backup thing and it says i need to download the file in home, home2, ect (and its in home!) but it acts like its not there
     
  6. angelina_holy

    angelina_holy Well-Known Member

    Joined:
    Aug 6, 2006
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    166
    If you need to take backup of user from ssh say userA , login to cd /scripts
    run command ./pkacct userA

    This will create the backup of userA in /home directory by name cpbackupmove-tar.gz


    To restore the backup use
    /scripts/restorepkg cpbackupmove-tar.gz
     
  7. soft-t

    soft-t Member

    Joined:
    Jun 3, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    151
    So How I can take untar backup for account I have an account 180 giga and this command not worked nice with is

    /scripts/pkgacct


    Can I backup it untar file and how I can restore it ?
     
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