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

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

 



On Sun, Sep 18, 2011 at 3:30 PM, Remi Collet <Fedora@xxxxxxxxxxxxxxxxx> wrote:
> Le 18/09/2011 12:33, suvayu ali a écrit :
>> 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
>
> # First monday of january
> 00  2  1-7  1  1  /usr/bin/rsnapshot -c /etc/rsnapshot.conf yearly
> # First monday of each month
> 20  2  1-7  *  1   /usr/bin/rsnapshot -c /etc/rsnapshot.conf monthly
> # All mondays
> 40  2   *   *  1   /usr/bin/rsnapshot -c /etc/rsnapshot.conf weekly
>

This was exactly what I was hoping for. Thanks a lot Remi. :)

PS: @Frantisek: thanks for the script.

-- 
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