I have been using linux (Debian, Ubuntu) for about a year now. I am admittedly a little green in many aspects so I appreciate you taking this slow for me.
I have an IDrive account that is backing up a directory located:
This repository is set to be backed up to my IDrive account daily.
- ‘IDrive Dashboard Autobackup’ → There’s a dashboard that runs in the background on the linux box. If it is invoked from the web it will start a backup job. ++it does not have Root privileges. (It cant read the restic repo)
- ‘IDrive Backup Script’ → This is a shell script IDrive provides. If I run it as sudo, it can access and read 700 files.
IDrive’s Dashboard does not have root privileges when it is run automatically, or manually, from the web interface. And the Restic Repo has 700 privileges–and thus the IDrive automated dashboard task cannot backup the files.
The way I see it I have two choices:
(a) every day after the restic cronjob completes, chmod -R 744 the restic repo. (Because, assuredly, whichever chunks restic modifies or creates will have a 700 permission scheme.)
(b) stop using IDrive’s automated dashboard backup script. Run a script manually as sudo w/ a cronjob.
Q1: Is it possible to, from the start, have Restic’s repo not 700 privileges?
Q2: Is it safe to change privileges on the Restic repo? (Additive only of course, i.e. 744/755, from 700)
My goal is just to be able to backup the restic repo w/o root privileges. And to know whether or not editing the privileges in the restic repo is dangerous. If it is dangerous–then I will just use a sudo script and a cron scheduled task.
Let me know if I should clarify something. Thanks a bunch.