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.

backups

Discussion in 'General Discussion' started by nickb, Apr 25, 2005.

  1. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hi folks,

    How to disable weekly and monthly backups?
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    whm
    Backup
    Backup Retention uncheck weekly & monthly
     
  3. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    One more problem..........

    backup configuration on one of my servers is not working properly, measn if i have 500 hundred domains then only 200 are backed up....same configuration on other servers is working absolutely fine...all the user dirs are properly selected from WHM for back up....what the hack is going on......any ideas...
     
  4. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    these are the entries in /etc/cpbackup.conf

    BACKUPACCTS yes
    BACKUPDAYS 0,1,2,3,4,5,6
    BACKUPDIR /backup
    BACKUPENABLE yes
    BACKUPFILES yes
    BACKUPFTPDIR
    BACKUPFTPHOST
    BACKUPFTPPASS
    BACKUPFTPPASSIVE no
    BACKUPFTPUSER
    BACKUPINC no
    BACKUPINT daily
    BACKUPLOGS no
    BACKUPMOUNT no
    BACKUPRETDAILY 1
    BACKUPRETMONTHLY 0
    BACKUPRETWEEKLY 1
    BACKUPTYPE normal
    DIEIFNOTMOUNTED no
    MYSQLBACKUP accounts
    BACKUPCHECK yes
    BACKUP2 yes
     
  5. beekeeper

    beekeeper Active Member

    Joined:
    Apr 28, 2003
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Melbourne, Australia
    Try to determine which is the last account that gets backed up properly and then check the next account for any irregularities which may be hanging the backup process.
     
  6. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    what is the backup logs location.......It seems that logs are not generated.
     
  7. beekeeper

    beekeeper Active Member

    Joined:
    Apr 28, 2003
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Melbourne, Australia
    I get an email report on the completion of the process so I have never looked for this log. You could easily enough just list the backup files and sort them by date ls -latr
     
  8. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    thanks beekeeper.

    Can you please elaborate more....please tell me the exact path of backup logs....and the HOW-TO about generating a email report after completion of backup process.
     
    #8 nickb, May 7, 2005
    Last edited: May 7, 2005
  9. stephem

    stephem Member

    Joined:
    Apr 25, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    But what if something goes wrong? Then the email report isn't generated and just looking at the backup files will only tell you which one has gone wrong but not why. So if there are any log files then I would be very interested in knowing where they are as well.
     
  10. nitin bansal

    nitin bansal Member

    Joined:
    Apr 27, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    please tell me the exact path of backup logs....and the HOW-TO about generating a email report after completion of backup process.
     
  11. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The backups don't generate a log, AFAIK. You should always get an email from the /scripts/cpbackup root crontab jo emailed to the root account and then forwarded to whereever you have root's email forwarded to, or if you have set a separate MAILTO in the root crontab. The only reason for not getting an email (other than mail delivery issues) would be if crond were not running.
     
  12. Kerstin

    Kerstin Well-Known Member

    Joined:
    Apr 9, 2005
    Messages:
    136
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Berlin
    I had problems with one of my server,
    crashed because infected by a trojan ;) :confused: .

    It destroyed the user.sam file and some profile datas :confused: .
    User.sam was unusable :eek:

    Can the files backed up with the tool over network to a linux machine.
     
  13. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    What has that got to do with this thread?
     
  14. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Thanx Mr. Jonathan....But how is it possible that script is creating backup for only 127 out of 214 domains..... I have checked the WHM configuration and all 214 domains are sellected for backup...any advise????
     
  15. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Do you receive the backup email on completion of the cronjob? If so, does it have any errors in it? Have you checked that you're not running out of disk space ;)
     
  16. stephem

    stephem Member

    Joined:
    Apr 25, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    One of our accounts is causing the server to reboot when backing up so we don't get the final email. Are the contents of the email cached anywhere so that we can see what is causing the problem?
     
  17. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    No, it's not. What you could try is to send to script output to a file, so if you go into the root crontab and change the line that contains the cpbackup script to be:

    /scripts/cpbackup > /root/backup.txt

    Then when you run the backup next time you should hopefully have the output store in /root/backup.txt
     
  18. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    The email sent by cpbackup only shows that the Daily backup is up to date......I have enough disk space to accommodate backups. Even if whenever i tried to execute /scripts/cpback from shell it also shows the same message "Daily backup upto date". should i replace the script from my other cpanel servers?????????
     
  19. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If you're seeing that, then you need to either delete /backup/cpbackup/daily or rename it to something like /backup/cpbackup/daily.old, then try running again.
     
  20. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Thanks. I will try this...hope it'll work
     
Loading...

Share This Page