How to specify bi-weekly crontab entries by day of the week?

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

 



Hi,

I have been trying to figure this out but so far haven't had any
success. I want to run jobs weekly, every 4 weeks (i.e. monthly) and
every 52 weeks (i.e. yearly) on a specific time on a Monday.

I tried using the 1/<n> notation

00 2 * * 1/364  /usr/bin/rsnapshot -c /etc/rsnapshot.conf yearly
20 2 * * 1/28   /usr/bin/rsnapshot -c /etc/rsnapshot.conf monthly
40 2 * * 1      /usr/bin/rsnapshot -c /etc/rsnapshot.conf weekly

but trying to save tells me:

"/tmp/crontab.yGETuJ":1: bad day-of-week
errors in crontab file, can't install.
Do you want to retry the same edit?

However trying something like this works but then this runs on Sundays.

00 2 * * */364  /usr/bin/rsnapshot -c /etc/rsnapshot.conf yearly
20 2 * * */28   /usr/bin/rsnapshot -c /etc/rsnapshot.conf monthly
40 2 * * 0      /usr/bin/rsnapshot -c /etc/rsnapshot.conf weekly

So my question is, how do I specify jobs to be run every 2/4/<n> weeks
on any arbitrary day of the week? Is that possible or do I have to
live with only Sundays or using dates instead of day of the week?

Thanks a lot.

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[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