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 not doing weekly, monthly

Discussion in 'General Discussion' started by hostseeker, Jan 5, 2004.

  1. hostseeker

    hostseeker Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    6
    I was able to get the Cpanel remote FTP backup to work, however it does not send anything but daily. Is this the way it is supposed to work? I need monthly and weekly also.

    If not, is there a script anyone can recommend that will ftp the daily, monthly, and weekly (but will check to see if each is curent before sending because there is no need to resend the weekly and monthly each day)

    Question 3: How do you set up the remote FTP to go to a directory that is not web viewable, such as the directory /backup on the remote server? The way I have it set up now, it goes to an account on my server, which makes it less secure for the data.

    Thanks! (I have searched and read a lot today about this in this forum, but couldn't find any answers)
     
  2. gray25

    gray25 Registered

    Joined:
    Aug 26, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I have the same problem. Does anyone have a solution?
     
  3. parawing742

    parawing742 Member

    Joined:
    Dec 31, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New York
    Same problem here. This seems to be a bug and it needs to be fixed!
     
  4. hostingmetro

    hostingmetro Active Member
    PartnerNOC

    Joined:
    May 30, 2003
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Go to /home/cpbackuptmp/cpbackup in SSH shell and look at the dates of the daily, weekly, and monthly directory. The cpbackup script looks at the dates of those directory. So for example, I'm doing weekly and monthly so the lines:

    if (isolderthen(6,"${basedir}/weekly")) {

    and

    if (! -e "${basedir}/monthly" || isolderthen(29,"${basedir}/monthly"))

    checks to see if the directory is older than 6 days (weekly) or 29 days (monthly), if it is, then the backup runs.

    The only problem I have is the weekly backup ran on 04/04/04 and it updated the weekly directory to that date. But the odd thing is the monthly directory was also updated to that same date so of course it never runs.

    Bug?
     
  5. gsbe

    gsbe Active Member

    Joined:
    Jul 27, 2003
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Nashville, TN
    Any solution to this problem? I'm having the same issue (only backing up daily, not weekly and monthly).

    I have been using the FTP backups for over a month. The backups to the local machine are not running correctly either(hasn't been backing up locally anything but dailies in over a month). I need more help with this feature...thanks in advance.
     
  6. hahomdal

    hahomdal Registered

    Joined:
    Sep 1, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Oslo, Norway
    I've also experienced this problem on three servers doing ftp backups. The daily backups work fine, but weekly and monthly backups aren't done.
    Previous backups using nfs worked fine.

    Looking at the xferlogs, it doesn't seem like the backup-script even tries to check anything related to the weekly and monthly directories. This seems to be supported by the logs when running cpbackup manually:

    Net::FTP=GLOB(0x83aaac4)<<< 220 ProFTPD 1.2.9 Server (ProFTPD) [<obfuscated>]
    Net::FTP=GLOB(0x83aaac4)>>> user <obfuscated>
    Net::FTP=GLOB(0x83aaac4)<<< 331 Password required for <obfuscated>.
    Net::FTP=GLOB(0x83aaac4)>>> PASS ....
    Net::FTP=GLOB(0x83aaac4)<<< 230 User <obfuscated> logged in.
    Net::FTP=GLOB(0x83aaac4)>>> TYPE I
    Net::FTP=GLOB(0x83aaac4)<<< 200 Type set to I

    Net::FTP=GLOB(0x83aaac4)>>> MKD cpbackup
    Net::FTP=GLOB(0x83aaac4)<<< 550 cpbackup: File exists
    Net::FTP=GLOB(0x83aaac4)>>> MKD cpbackup/daily
    Net::FTP=GLOB(0x83aaac4)<<< 550 cpbackup/daily: File exists
    Net::FTP=GLOB(0x83aaac4)>>> CWD cpbackup/daily
    Net::FTP=GLOB(0x83aaac4)<<< 250 CWD command successful.
    Net::FTP=GLOB(0x83aaac4)>>> ALLO 96124729
    Net::FTP=GLOB(0x83aaac4)<<< 202 No storage allocation necessary.
    Net::FTP=GLOB(0x83aaac4)>>> PORT 62,70,XX,XX,216,176
    Net::FTP=GLOB(0x83aaac4)<<< 200 PORT command successful
    Net::FTP=GLOB(0x83aaac4)>>> STOR <obfuscated>.tar.gz
    Net::FTP=GLOB(0x83aaac4)<<< 150 Opening BINARY mode data connection for <obfuscated>.tar.gz
    Net::FTP=GLOB(0x83aaac4)<<< 226 Transfer complete.
    Net::FTP=GLOB(0x83aaac4)>>> QUIT
    Net::FTP=GLOB(0x83aaac4)<<< 221 Goodbye.

    As the previous poster said - this feature is highly desired! Whether this is a bug or a missing feature, I won't decide as of yet, but the least we should be able to expect, is to be informed of the implications of running ftp backups.

    Hans
     
  7. beekeeper

    beekeeper Active Member

    Joined:
    Apr 28, 2003
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Melbourne, Australia
    No Weekly nor Monthly

    I have the same problem; daily backups are fine but no weekly nor monthly backups.

    I rarely get asked to do any account file restores so I have not bothered to check our remote backups server for months.

    The backup server is not a big cost but having only a daily backup without weekly or monthly gives me a pretty limited scope for restores.

    Has anyone managed to configure and realise daily, weekly and monthly backups?
     
  8. beekeeper

    beekeeper Active Member

    Joined:
    Apr 28, 2003
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Melbourne, Australia
    No Weekly nor Monthly

    I have the same problem; daily backups are fine but no weekly nor monthly backups.

    I rarely get asked to do any account file restores so I have not bothered to check our remote backups server for months.

    The backup server is not a big cost but having only a daily backup without weekly or monthly gives me a pretty limited scope for restores.

    Has anyone managed to configure and realise daily, weekly and monthly backups?
     
  9. Angel78

    Angel78 Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    413
    Likes Received:
    1
    Trophy Points:
    16
    same issue here :rolleyes:
     
  10. gsbe

    gsbe Active Member

    Joined:
    Jul 27, 2003
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Nashville, TN
    Please help us if you can...this is not a good problem to have.
     
  11. kiko0123

    kiko0123 Member

    Joined:
    Feb 1, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    I got same thing!!!!!

    Fix the bug plz!
     
  12. telman

    telman Member

    Joined:
    Jun 4, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1

    How did you do that? Even I can not make daily backup work.

    1. Task is not added to cron job,
    2. When I run backup task manually it creates files on temp directory but no data is being sent to remote ftp server.


    Thanks,
    Telman
     
  13. pfmartin

    pfmartin Well-Known Member

    Joined:
    Aug 18, 2001
    Messages:
    167
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    Bug Report

    Has anybody opened this as a bug? This is a major issue to fix.
     
  14. kmsd

    kmsd Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    Same issue here.
    And issue of disk quota exceeded if user doesn't have double his resources available to make the backup.
     
  15. kiko0123

    kiko0123 Member

    Joined:
    Feb 1, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    it would be good also

    that when we need to restore backups and that the backups are on a remote ftp account

    the ability to autotransfert directly from whm the files and to restore

    cause actualy you got to manualy move then to your server and then restaure...
     
  16. webhostau

    webhostau Well-Known Member

    Joined:
    Jan 12, 2003
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Australia
    cPanel Access Level:
    Website Owner
    Same issue here also. :cool:
     
  17. kiko0123

    kiko0123 Member

    Joined:
    Feb 1, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    i just sumbited a bug report in bugzilla hopefully it will be fixed soon...
     
  18. gsbe

    gsbe Active Member

    Joined:
    Jul 27, 2003
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Nashville, TN
    Thank you, kiko0123. I look forward to a fix asap.
     
  19. leec

    leec Active Member

    Joined:
    Aug 19, 2002
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    heck my stuff aint even backing up anymore period
     
  20. pfmartin

    pfmartin Well-Known Member

    Joined:
    Aug 18, 2001
    Messages:
    167
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    What's the bug ID?
     
Loading...

Share This Page