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.

full backup - exclude folder

Discussion in 'General Discussion' started by doni49, Mar 10, 2007.

  1. doni49

    doni49 Well-Known Member

    Joined:
    Oct 4, 2006
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    I have a script that runs a full backup on a regular basis. But it seems stupid to have the backups themselves be part of future backups.

    Is there some way to have the backup utility exclude the directory where I store these backup files?

    I store them in /home/username/backups.

    Thx.
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    Yes, put a file in the directory you would like to omit called:

    .cpbackup-skip

    then chown it for the user.group of that directory
     
  3. doni49

    doni49 Well-Known Member

    Joined:
    Oct 4, 2006
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Thanks. But would you mind clarifying a couple things for me?

    1) You said to chown it. Is that the same as changing permissions in CPanel?

    2) The file just has to exist? Doesn't need to have anything in it right?
     
  4. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    It is an empty file, correct. you would need to change the ownership of the user and group to the location that its store under. So if the directory of the files you want to omit is located at /home/someuser/

    most likely the ownership will be someuser.someuser as the user.group
     
Loading...

Share This Page