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.

cpbackup and tmp directory

Discussion in 'Data Protection' started by EpicServers, Dec 3, 2005.

  1. EpicServers

    EpicServers Member

    Joined:
    Aug 20, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I had a quick question regarding the whm daily backup, I'm getting this error:

    ----------------------------------------------------------------------------------------------------------------------------------
    Code:
    Done
    Grabbing mysql privs...Done
    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
    Grabbing PostgreSQL privileges...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
    Leaving timeout safety mode
    
    ---------------------------------------------------------------------------------

    Do you have any suggestions on how to change the psql location to something other than /tmp/?

    I've used the changing mount suggestions for security.

    Thanks,

    Jason
     
  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
    That's complaining that it is attempting to do postgresql backups but the file in /tmp that should be created when you have postgresql running are not present. If you don't use postgresql then you can do the following to skip those in the backup process:

    Edit /etc/cpbackup.conf and add the line:

    PSQLBACKUP no
     
  3. EpicServers

    EpicServers Member

    Joined:
    Aug 20, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Lets say I do have postgresql, how would I go about sending it to somewhere other than tmp? (for saving purposes)
     
  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
    That's not an issue for the backup, that how you would configure postgresql and where it is configured to store its PID file. I don't know how you'd go about that with postgres as I've not used it myself.
     
Loading...

Share This Page