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.

Remote FTP backup always read-only...

Discussion in 'Data Protection' started by capinCrunch, Feb 12, 2013.

  1. capinCrunch

    capinCrunch Registered

    Joined:
    Feb 12, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hi guys,

    I'm using the "Configure Backup" in my "WHM VPS Optimized"

    I've set backup to use "Remote FTP Host".

    As far as i can tell -- it's connecting to the remote FTP - but for some reason - WHM is saying my "remote ftp" is read only.

    If i use FTP/filezillia -- it works fine - i can add, remove, delete - and checked that the folder is 777.

    but this is the result from my log with whm backup...

    Code:
    Net::FTP=GLOB(0x195e45c8)<<< 220 bftpd X.X.X at XX.XX.XXX.XX ready.
    Net::FTP=GLOB(0x195e45c8)>>> USER admin
    Net::FTP=GLOB(0x195e45c8)<<< 331 Password please.
    Net::FTP=GLOB(0x195e45c8)>>> PASS ....
    Net::FTP=GLOB(0x195e45c8)<<< 230 User logged in.
    Net::FTP=GLOB(0x195e45c8)>>> TYPE I
    Net::FTP=GLOB(0x195e45c8)<<< 200 Transfer type changed to BINARY
    Net::FTP=GLOB(0x195e45c8)>>> MKD /shares/site-backup
    Net::FTP=GLOB(0x195e45c8)<<< 550 Read Only
    

    The remote ftp is a fat32 pen drive on a netgear router. Using port 21.
    (I'm just assuming that because filezillia can read/write the drive - that the problem is with whm.)



    If anyone can give me some advice on what i could try to get remote backups working - that would be great. Even if there is a plugin to buy with better ftp support.


    Thanks for reading! and thanks for any help! :)
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Try changing the final backup location to the HDD, instead of the USB, and then force a backup. Does that work?

    There's nothing in WHM that would prevent the backup from going to wherever you wish to send it.
     
  3. capinCrunch

    capinCrunch Registered

    Joined:
    Feb 12, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Thanks for the reply infopro.

    I used your advice in another thread -- and used putty to access my whm account -- then ftp into the "remote server" i'm going to use for backup. Doing it this way works fine -- i can add/remove files and directories.

    I think the problem is the remote ftp - "remote directory" path. I don't know how to set it as default for the whm backup.

    Once connected to the FTP -- everything is "read only" until i use a CD command to change to the next directory up -- then i can make a new folder -- as shown here:

    Code:
    root@me [~]# ftp xx.xx.xxx.xx
    Connected to xx.xx.xxx.xx (xx.xx.xxx.xx).
    220 bftpd 1.6.6 at xx.xx.xxx.xx ready.
    Name (xx.xx.xxx.xx:root): admin
    331 Password please.
    Password: . . . .
    230 User logged in.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> mkdir  dd/test
    550 Read Only
    ftp> cd dd
    250 OK
    ftp> mkdir  test
    257 "test" has been created.
    ftp>
    
    Is there any way to make the whm backup start in the "dd" folder so that it can work?

    I've tried all combinations of the "FTP Backup Directory" field. But i think the problem is -- the software/plugin/service -- all try to run the commands from the drive root -- I need it to actually move a folder up -- before trying to run the commands.


    None of these worked:

    Code:
    FTP Backup Directory: /dd/
    FTP Backup Directory: dd
    FTP Backup Directory: /dd
    FTP Backup Directory: dd/
    FTP Backup Directory: /dd/
    FTP Backup Directory: dd
    FTP Backup Directory: /dd
    
    Retrying the backup each time with:

    /usr/local/cpanel/scripts/cpbackup --force


    Thanks again for any help!
     
  4. jdcopelin

    jdcopelin Registered

    Joined:
    Mar 14, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hello capinCrunch,

    I came across this post searching for a solution to the exact same problem that you had. Did you manage to find a working solution?

    Just for reference I am using a HDD connected to a NetGear ReadyShare router. I can FTP files to it from other locations just fine, but "cpbackup" will always complain about it being "read only". If I use FTP from the command line on my server it does the same thing until I "cd" into a directory. I tried all combinations of the remote backup path in the cpbackup options. cpanel log does not show anything because it fails to run - I just get an email telling me that remote FTP backup has been disabled because it could not upload a test file.

    Thanks,
    Jonathan
     
Loading...

Share This Page