I tried to create this cron in order to get an automatic backup via cron (because the “normal” one wasn’t doing anything) and this one is still not working BUT if I do it in SSH, it works
● cron.service - Regular background program processing daemon
Loaded: loaded (/usr/lib/systemd/system/cron.service; enabled; preset: enabled)
Active: active (running) since Mon 2025-03-03 23:16:15 EET; 57min ago
Docs: man:cron(8)
Main PID: 875 (cron)
Tasks: 1 (limit: 2265)
Memory: 1.8M (peak: 6.6M)
CPU: 188ms
CGroup: /system.slice/cron.service
└─875 /usr/sbin/cron -f -P
Mar 03 23:55:01 xxx.vultrusercontent.com CRON[6452]: pam_unix(cron:session): session closed for user root
Mar 03 23:59:01 xxx.vultrusercontent.com CRON[6518]: pam_unix(cron:session): session opened for user root(uid=0) by root(uid=0)
Mar 03 23:59:01 xxx.vultrusercontent.com CRON[6519]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 60 2)
Mar 03 23:59:01 xxx.vultrusercontent.com CRON[6518]: pam_unix(cron:session): session closed for user root
Mar 04 00:05:01 xxxvultrusercontent.com CRON[6656]: pam_unix(cron:session): session opened for user root(uid=0) by root(uid=0)
Mar 04 00:05:01 xxx.vultrusercontent.com CRON[6657]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Mar 04 00:05:01 xxx.vultrusercontent.com CRON[6656]: pam_unix(cron:session): session closed for user root
Mar 04 00:09:01 xxx.vultrusercontent.com CRON[6692]: pam_unix(cron:session): session opened for user root(uid=0) by root(uid=0)
Mar 04 00:09:01 xxx.vultrusercontent.com CRON[6694]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Mar 04 00:09:01 xxx.vultrusercontent.com CRON[6692]: pam_unix(cron:session): session closed for user root
But nothing happen when it should be doing the backup
Judging by everything you gave, everything should work. Unfortunately, if I need to look at your server, it is already paid for on my part. Since it is my time. The answers on this forum are advisory in nature.
Oh okay thank you, my bad for that (it still didn’t run at 03:01 though)
Output:
root@95:~# /usr/local/hestia/bin/v-backup-users
root@95:~# grep 'CRON.*v-backup' /var/log/syslog
root@95:~# cat /etc/sudoers.d/hestiaweb
Defaults:root !requiretty
# sudo is limited to hestia scripts
hestiaweb ALL=NOPASSWD:/usr/local/hestia/bin/*
root@95:~# exim4 -bp
Command 'exim4' not found, but can be installed with:
apt install exim4-daemon-heavy # version 4.97-4ubuntu4.1, or
apt install exim4-daemon-light # version 4.97-4ubuntu4.1
The permissions are correct, and the contents of the crontab are fine… Well, I’m missing a few scripts there, but it should work with the ones you have.
Just in case, reboot your server if you haven’t already done so.