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 via FTP

Discussion in 'Data Protection' started by Host4u2, Apr 2, 2004.

  1. Host4u2

    Host4u2 Well-Known Member

    Joined:
    Mar 24, 2002
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    This appears to be a bug in whm. It's still trying to use a local directory for recovery (restoring) of backups, even though the ftp feature is being used for backups. I need to work around this by manually downloading my backup files from the ftp server, and put them in /backup/cpbackup. This costs twice as much bandwidth, time, and work.
     
  2. Host4u2

    Host4u2 Well-Known Member

    Joined:
    Mar 24, 2002
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    This has become a Feature Request...
     
  3. PbG

    PbG Well-Known Member

    Joined:
    Mar 11, 2003
    Messages:
    241
    Likes Received:
    0
    Trophy Points:
    16
    Add'l modifications needed in cpbackup:

    Errors need to be reported via email to sys administrator or sent to a special log for easy retrieval. Perhaps even set the script to test connection and paths upon enabling and report errors continually until corrected or disabled.

    eg:

    Net::FTP=GLOB(0x819bf64)>>> user cpbackup
    Net::FTP=GLOB(0x819bf64)<<< 331 Password required for cpbackup.
    Net::FTP=GLOB(0x819bf64)>>> PASS ....
    Net::FTP=GLOB(0x819bf64)<<< 230 User cpbackup logged in.
    Net::FTP=GLOB(0x819bf64)>>> TYPE I
    Net::FTP=GLOB(0x819bf64)<<< 200 Type set to I
    Net::FTP=GLOB(0x819bf64)>>> MKD cpbackup
    Net::FTP=GLOB(0x819bf64)<<< 550 cpbackup: Permission denied
    Net::FTP=GLOB(0x819bf64)>>> MKD cpbackup/daily
    Net::FTP=GLOB(0x819bf64)<<< 550 cpbackup/daily: No such file or directory
    Net::FTP=GLOB(0x819bf64)>>> CWD cpbackup/daily
    Net::FTP=GLOB(0x819bf64)<<< 550 cpbackup/daily: No such file or directory

    Additionally the script needs to allow us to override the following message with a simple yes/no:

    Backup is up to date


    We should not have to edit the script to a specific date or wait a another day, week or month simply to force testing.
     
    #3 PbG, Apr 18, 2004
    Last edited: Apr 18, 2004
Loading...

Share This Page