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.

FTP Backups not working

Discussion in 'General Discussion' started by rodpascoe, Aug 12, 2012.

  1. rodpascoe

    rodpascoe Registered

    Aug 12, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I have tried to use the remote FTP backup but am getting the following problem.

    The FTP username and password are correct and I can FTP with an FTP client and make folders and move files in etc but I get the following when I try and use FTP backup from cPanel.

    The logs show it logging in to the FTP account fine like this :-

    root@server1 [/]# more /usr/local/cpanel/logs/cpbackup/1344357397.log
    Net::FTP>>> Net::FTP(2.77)
    Net::FTP>>> Exporter(5.58)
    Net::FTP>>> Net::Cmd(2.29)
    Net::FTP>>> IO::Socket::INET(1.29)
    Net::FTP>>> IO::Socket(1.29)
    Net::FTP>>> IO::Handle(1.25)
    Net::FTP=GLOB(0xa0116a4)<<< 220 ProFTPD 1.3.2e Server (ProFTPD) [ip address was in here]
    Net::FTP=GLOB(0xa0116a4)>>> USER usernamewashere
    Net::FTP=GLOB(0xa0116a4)<<< 331 Password required for usernamewashere
    Net::FTP=GLOB(0xa0116a4)>>> PASS ....
    Net::FTP=GLOB(0xa0116a4)<<< 230 User usernamewashere logged in
    Net::FTP=GLOB(0xa0116a4)>>> QUIT
    Net::FTP=GLOB(0xa0116a4)<<< 221 Goodbye.
    [cpbackup] Started at Tue Aug 7 17:36:37 2012
    [cpbackup] Starting full MySQL database backups
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: /var/lib/mysql/mysql.sock: socket ignored
    [cpbackup] The following backups will be updated: monthly
    [cpbackup] Running account backup with target : /home/cpbackuptmp/cpbackup/month
    pkgacct started.
    pkgacct version 10 - user : first - tarball: 1 - target mysql : default - split:
    0 - incremental: 0 - homedir: 1 - archive version: 3 - running with uid 0
    pkgacct working dir : /home/cpbackuptmp/cpbackup/monthly/first
    Copying Reseller Config...Done
    Copying Suspension Info (if needed)...Done

    This went on for the whole process backing up all the accounts and then the last bit of the log shows :-

    Storing ssl domain......Done
    Copying password.......Done
    Copying shell.......Done
    Creating Archive ....Done
    pkgacctfile is: /home/cpbackuptmp/cpbackup/monthly/lbrill.tar.gz

    size is: 17965657

    homesize is: 20127744
    Net::FTP=GLOB(0xa022c28)<<< 220 ProFTPD 1.3.2e Server (ProFTPD) [ipaddresswashere]
    Net::FTP=GLOB(0xa022c28)>>> USER usernamewashere
    Net::FTP=GLOB(0xa022c28)<<< 331 Password required for usernamewashere
    Net::FTP=GLOB(0xa022c28)>>> PASS ....
    Net::FTP=GLOB(0xa022c28)<<< 230 User usernamewashere logged in
    Net::FTP=GLOB(0xa022c28)>>> TYPE I
    Net::FTP=GLOB(0xa022c28)<<< 200 Type set to I
    Net::FTP=GLOB(0xa022c28)>>> MKD cpbackup
    Net::FTP=GLOB(0xa022c28)<<< 550 cpbackup: Permission denied
    Net::FTP=GLOB(0xa022c28)>>> MKD cpbackup/monthly
    Net::FTP=GLOB(0xa022c28)<<< 550 cpbackup/monthly: No such file or directory
    Net::FTP=GLOB(0xa022c28)>>> CWD cpbackup/monthly
    Net::FTP=GLOB(0xa022c28)<<< 550 cpbackup/monthly: No such file or directory
    Net::FTP=GLOB(0xa022c28)>>> ALLO 17965657
    Net::FTP=GLOB(0xa022c28)<<< 202 No storage allocation necessary
    Net::FTP=GLOB(0xa022c28)>>> PORT 78,129,180,168,160,226
    Net::FTP=GLOB(0xa022c28)<<< 200 PORT command successful
    Net::FTP=GLOB(0xa022c28)>>> STOR lbrill.tar.gz
    Net::FTP=GLOB(0xa022c28)<<< 550 lbrill.tar.gz: Permission denied
    Unable to connect to remote FTP server.
    [cpbackup] Completed at Tue Aug 7 18:02:09 2012
    root@server1 [/]#

    Does anyone have any clue why it's failing??

    I'd really appreciate some help!

    Thanks in advance

    #1 rodpascoe, Aug 12, 2012
    Last edited: Aug 12, 2012
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please ensure that "FTP Backup Passive Mode" is enabled via:

    "WHM >> Backup >> Configure Backup"

    If the issue persists, it sounds like there is an issue with the permissions for the FTP user on the remote FTP server. We can try to reproduce the issue on a support ticket:

    Submit A Ticket

    You can post the ticket number here and we can track the issue for you.

    Thank you.

Share This Page