[SOLVED] Why doesn't this rsync command run within a Cron job?
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I can only guess: you use a different account for crontab (for example root?), which has no .ignorelist in the home dir (or has no right to access that file).
Cron usually has to be treated like a user. All permissions you have to run it from command line also need to be allowed in cron either by user or group.
this is not about the permission on the file, 644 should be enough. Probably it is a permission issue on the dir or it is a completely different file (or user).
Or something which is still unknown for us.
ok, so it is your job now to find out what is wrong.
Quote:
rsync: [client] failed to open exclude file /home/xxxxx/.ignorelist: Permission denied (13)
is quite clear, the user who started to execute that rsync command is not allowed to read that file (or dir).
Either you specified a different file/path, or used a different user or something was just mistyped.
What you posted is not really enough to point out that mistake and what you tried (and posted) was not effective, so you need to check carefully these settings again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.