The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 663     Votes:  5     ✅ Solution
Tag : cron  
Link: 🔍 See Original Answer on Ask Ubuntu ⧉ 🔗

URL: https://askubuntu.com/q/1357286
Title: My daily backup crashed, how can I rerun cron daily?
ID: /2021/08/11/My-daily-backup-crashed_-how-can-I-rerun-cron-daily_
Created: August 11, 2021
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


This answer is close but you really want to use:

sudo run-parts /etc/cron.daily

The linked answer omits sudo and my daily backup crashed again. This is because the same .tar work file (with errant 30 MB file) that was created with sudo privileges (which cron runs with) still existed.

I had removed the “bad” 30 MB file but the earlier .tar file created by the original cron job was still about. My regular user privileges simply were insufficient to recreate a new .tar file.

If you call run-parts without sudo your environment is different. Using sudo for run-parts makes it work. In my case at least.

⇧ ./configure: No such file or diectory Weird walkie-talkie interference with Logitech unifying receiver  ⇩