On 28 Feb 2019 15:45, nathan tech wrote:
Hi there,
I recently started working on a backup program, and the one big feature
everyone wants in backup programs is the ability to schedule backups, right?
but I'm thinking, should I do this?
==》 this might interest you: https://docs.python.org/3/
Hopefully I am doing this right, wanted to reply to the tutor list, not
a specific person... Anyway.
Thanks Steven and Alan for your help.
I'll look into the windows scheduler and go from there.
The code given in the original email was just an example, but none the
less I appreciate you guys
> On Feb 28, 2019, at 17:23, Alan Gauld via Tutor wrote:
>
> On 28/02/2019 14:45, nathan tech wrote:
>
>> but I'm thinking, should I do this?
Honestly, scheduling is the last thing to figure out. As mentioned, it’s
probably better to focus on backups and leave the scheduling to the OS tools
On 28/02/2019 14:45, nathan tech wrote:
> but I'm thinking, should I do this?
No. fOr several reasons...
> def do_backup
> # backup code here,
>
> def scheduler():
> global tus # tus=time until schedule
>
> while(time.time()>tus):
> time.sleep(5)
> scheduler()
scheduler doesn't a
Sorry, I hit send too quick...
I realise you haven't written a busy loop, but the way you wrote your
scheduler, you can only schedule jobs to the nearest 5 seconds. That's
probably okay for a backup process that might take a few hours to run,
but it is hardly a good solution to things that migh
On Thu, Feb 28, 2019 at 02:45:59PM +, nathan tech wrote:
> Hi there,
>
> I recently started working on a backup program, and the one big feature
> everyone wants in backup programs is the ability to schedule backups, right?
>
> but I'm thinking, should I do this?
[...]
> Is that wise? Is tha