• 2 Posts
  • 35 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle
















  • Yes, you should never use sudo inside a users crontab. If you want to run as root then use the system crontab.

    I appreciate the advice! I had never really heard about the distinction between the system crontab and user crontabs. While it makes sense in retrospect, I am entirely self-taught about this stuff, and nowhere I had looked had ever mentioned that there were two separate crontabs.

    I would also encourage looking at systemd timers

    Do you happen to know of a good resource to learn about those off the top of your head? I appreciate the suggestion!




  • So, right now I’m trying the system crontab instead of my user crontab.

    Just to reiterate from my post, however, I have tried the full path. I was giving example paths. I should have been more explicit that by just “using dot” I meant using relative and absolute paths.

    All paths have been full paths from the get go, though I did try cd-ing into the folder and running it with a relative path. My hope at this point is that it’s somehow a permissions issue as my storage setup is a bit odd with TrueNAS Scale running as a VM on ProxMox. Permissions with docker are usually hell, and I have to run literally everything that touches my NAS as root to get the permissions to play nicely, so it would make sense here that it’s just the permissions being upset and preventing access to the files.

    I set a backup to run on the hour, so I’ll report back with whatever happens.