PythonAnywhere Forums

Schedule a Monthly task

I want to do a monthly backup or my app. I have it running daily now but I don't need it that often. Can anyone point me in the right direction for this. Cheers, Mykl

You can use a Daily task but keep track somewhere of the last date you let it 'fully' run, e.g. store the date in a database or text file. Then just do the date arithmetic in your Python code and only run it weekly, monthly or whatever - just exit the code if it's not yet time to run it.

HTH

Jim

Jim's suggestion sounds like it could work! let us know if you need any extra help...