full backup - exclude folder

doni49

Well-Known Member
Oct 4, 2006
74
0
156
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.
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
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
 

doni49

Well-Known Member
Oct 4, 2006
74
0
156
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
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?
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
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