crond

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have a backup launched by cron.weekly
However, since F40, after it has run a first time and ended, another backup
is started. This messed up the backup.

When starting, the first crond
sent
(ps -aux | grep -i backup | mail -s Backup root@localhost.localdomain)
root       19672  0.0  0.0 228476  3136 ?        S    12:29   0:00 /bin/sh /etc/cron.weekly/backup.cron
root       19673  0.0  0.0 227904  2248 ?        S    12:29   0:00 sed 1i\ /etc/cron.weekly/backup.cron:\ 
root       19683  0.0  0.0 227752  2276 ?        S    12:30   0:00 grep -i backup
root       19684  0.0  0.0 238028  5352 ?        S    12:30   0:00 mail -s Backup root@localhost.localdomain

and at thz end

backup ended at Sat Jun 22 02:55:58 PM CEST 2024 /dev/sda10, /dev/sdb8 and /dev/sdc6 OK
and the second one

root       29787  0.0  0.0 228476  3260 ?        S    14:55   0:00 /bin/sh /etc/cron.weekly/backup.cron.saved
root       29788  0.0  0.0 227904  2176 ?        S    14:55   0:00 sed 1i\ /etc/cron.weekly/backup.cron.saved:\ 
root       29798  0.0  0.0 227752  2208 ?        S    14:55   0:00 grep -i backup
root       29799  0.0  0.0 238028  5428 ?        S    14:55   0:00 mail -s Backup root@localhost.localdomain



Here is the /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root

# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name  command to be executed
#22 23 * * * root run-parts /etc/cron.daily
#30 12 * * 3,6 root run-parts /etc/cron.weekly
30 12 * * 6 root run-parts /etc/cron.weekly
# cron.weekly is actually run by anacron
#*/12 * * * * /home/root/bin/periodic.sh


and the 
/etc/anacrontab
# See anacron(8) and anacrontab(5) for details.

SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# the maximal random delay added to the base delay of the jobs
RANDOM_DELAY=35
# the jobs will be started during the following hours only
START_HOURS_RANGE=3-22

#period in days   delay in minutes   job-identifier   command
1	5	cron.daily		nice run-parts /etc/cron.daily
#7	25	cron.weekly		nice run-parts /etc/cron.weekly
@monthly 45	cron.monthly		nice run-parts /etc/cron.monthly



Is there a conflict between cron and anacron ?

This machine is turned on and off  usually on a daily basis, but not necessary.

Thank for your lights


===========================================================================
 Patrick DUPRÉ                                 | | email: pdupre@xxxxxxx
===========================================================================
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux