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 via ssh and on my pc

Discussion in 'General Discussion' started by black&white, Aug 1, 2006.

  1. black&white

    black&white Well-Known Member

    Joined:
    Aug 10, 2004
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    0
    Can anyone please tell me how to get backup from all my accounts via ssh?

    Then i would want to save the backup file on my pc. is it possible?

    Please help me

    Thank you
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You would need to configure the WHM > Backup Configuration and set that up as you need it to create backups locally. These will then be done at the frequency you specify in those settings. You can then download the resultant backups by whatever means you want from your server, how you do it is up to you.
     
  3. black&white

    black&white Well-Known Member

    Joined:
    Aug 10, 2004
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    0
    Via ssh is possible?

    I can't enter WHM becayuse my server has been hacked :-(

    Thanks
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You'd have to setup the backups by hand if you don't already have them configured by editing /etc/cpbackup.conf and then running:

    /scripts/cpbackup
     
  5. black&white

    black&white Well-Known Member

    Joined:
    Aug 10, 2004
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    0
    I have this message:

    tar: Removing leading `/' from member names
    tar: Removing leading `/' from hard link targets

    Grabbing PostgreSQL databases............
    psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
    psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
    Done


    what does it mean?

    Can you tell me also in which way i can trasfer it (all backup) to another server with cpanel?

    Thank you
     
    #5 black&white, Aug 1, 2006
    Last edited: Aug 1, 2006
Loading...

Share This Page