You are not logged in.

#1 2018-08-20 18:44:10

Kimyeti
Member
Registered: 2017-05-10
Posts: 9

Cron Job Permission

Hi fellow geeks smile

I hope you can help me with this one. I've set a cron job to automatically backup my files everyday which has worked wonderfully so far.
Looks like this:https://i.imgur.com/IuAbHOj.jpg


The issue is that this new program I'm using to transfer files (Resilio Sync) keeps all the rights on the files, so I can't use the backup script. Resilio is kinda like Dropbox.

Here is the file permissions:
https://i.imgur.com/rUtVWkA.jpg


I can fix it with sudo chown -R username, so the backup script works, but then if I upload a new file via the program then I would have to change the permissions all over again for the script to work.
Because the user "rslsync" is in control.

Am I missing something obvious here? I can't run the crontab as the Resilio user.


Thank you very much.

Last edited by Kimyeti (2018-08-20 18:47:36)

Offline

#2 2018-08-20 18:56:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Cron Job Permission

1. Do not post screenshots of text, paste the actual text, in code tags: https://wiki.archlinux.org/index.php/Co … s_and_code

2. Read the rsync man page: it has specific options for preserving file ownership, etc


Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB