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.

Is it possible to have backup skip the analog/cache folder

Discussion in 'General Discussion' started by Silver_2000, Feb 11, 2007.

  1. Silver_2000

    Silver_2000 Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    338
    Likes Received:
    1
    Trophy Points:
    18
    the user/tmp/analog/cache

    can be really big for a busy site - its just the stats cache
    Is it possible to have the backup skip those folders ?
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    Yes, you can skip any directory you like from backing up.
    Create a file named ".cpbackup-skip" inside the directory you want to skip.
    chown the file to that user.group


    touch .cpbackup-skip
    chown user.group .cpbackup-skip
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,452
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Or disable analog stats in WHM all together.
     
  4. Silver_2000

    Silver_2000 Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    338
    Likes Received:
    1
    Trophy Points:
    18
    Great answers guys - Especially Info pro - I disabled Analopg stats last year - forgot that - all these files are junk - HUGE disk space savings

    Doug
     
  5. brendanrtg

    brendanrtg Well-Known Member

    Joined:
    Oct 4, 2006
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    16
    Why dont you just login to the server as root and delete these files completely before you make the backup?

    :confused:
     
  6. Silver_2000

    Silver_2000 Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    338
    Likes Received:
    1
    Trophy Points:
    18
    Because Im preparing for automated backups

    Since the analog stats are disabled I deleted all the analog files
     
Loading...

Share This Page