Cron Job rsync error - .meta file failed permission denied (13)

AndyX

Well-Known Member
Sep 25, 2015
142
21
68
Los Altos, CA
cPanel Access Level
Root Administrator
Adding DISABLE_METADATA: yes did not work. I got another email this morning when the Cron Job ran.

I just updated the Cron Job, it will now hopefully exclude the /backup/.meta directory. Here's what I have now and will see tomorrow morning if I get another email:

rsync -a --delete --exclude '/backup/.meta' /home/southbay/ /backup
 

AndyX

Well-Known Member
Sep 25, 2015
142
21
68
Los Altos, CA
cPanel Access Level
Root Administrator
Unfortunately the above --exclude did not work. This morning I got the same email message:

rsync: opendir "/backup/.meta" failed: Permission denied (13)
IO error encountered -- skipping file deletion
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1179) [sender=3.1.2]
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,290
2,234
363
cPanel Access Level
Root Administrator
I still don't believe that using /backup is ever going to provide an ideal experience, as that may also get used for actual backup data. I'd recommend a different directory name to place these files in and then you won't run into the issues.
 

AndyX

Well-Known Member
Sep 25, 2015
142
21
68
Los Altos, CA
cPanel Access Level
Root Administrator
I still don't believe that using /backup is ever going to provide an ideal experience, as that may also get used for actual backup data. I'd recommend a different directory name to place these files in and then you won't run into the issues.
You were 100% correct, Rex.

I changed the Cron Job to the following and no more error emails.

rsync -a --delete /home/southbay/ /backup/southbay

Thank you for your help.