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.

forcing all sites to backup...HOW???

Discussion in 'General Discussion' started by Snowman30, Aug 10, 2006.

  1. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Ive run /scripts/cpbackup --force hoping it would backup all sites on the server, but for some reason it wont

    it only did about 1/3rd of them

    how can i get it to force the backup to be made for each of the sites so i can ensure i have a copy of them all??

    any advice is greatly appreciated
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    Check you have enough space at wherever it may be that the backups are stored.
     
  3. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    more than enough space and low loads

    and its random as to whats being backed up its not like usernames a thru to m backedp and missing the rest its like a random selection thru the lot
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Be careful with /scripts/cpbackup --force as it will overwrite your weekly and monthly backups as well if you have them.

    Does the backup just suddenly die in mid-backup or does it seem to end successfully but without doing all accounts?

    If the former, make sure you don't have anything killing off the backup (e.g. PRM).

    If the latter, make sure you haven't disabled backups for any accounts in:

    /etc/cpbackup-userskip.conf

    The best way to rerun a daily backup is to either deete /backup/cpbackup/daily/ or to touch the directory to an early date:

    touch -d "Jan 1" /backup/cpbackup/daily

    Then run:

    /scripts/cpbackup
     
  5. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    It just seems to finish up about 3 hours after it starts ending with usernames somewhere around the letter s

    for example theres over 40 usernames starting wiht the letter a but only about 10 of them are backed up

    prm isnt killing it and ive sat and watched it via ssh go thru the motions and its just not doing them all

    no accounts are selected in cpbackup-userskip.conf

    and heres backup.conf:

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

Share This Page