koniosek

Member
Feb 6, 2003
13
0
151
Hi. I have small problem. I want backup accounts daily and weekly but on two different hdd.
For example backup is done in:
/backup/cpbackup/daily
/backup/cpbackup/weekly
then I remove weekly dir and create symlink weekly to my another partition ... but each time when backup is running it removes symlink and again create normal directory.
I was trying to "chattr +i {my_symlink}" -> "chattr +i weekly" but I've got error:
chattr: Invalid argument while reading flags on weekly/

Is there possibility to lock this symlink that it can't be removed/changed. Or do this in some other way (something without changing cpanel files - I know that I could edit cpbackup script or sth like this - but i don't want do this) ?
thank you