Hi all,
I've recently set up my first flask web app and created a function to back up my SQLite database. I tested this function locally and it worked as anticipated, I also checked it within pythonanywhere and it worked as anticipated.
Unfortunately, when I've run it as a scheduled task, the program seems to creates a back up but it's completely empty and not in the folder I expect it to be in. In the tests the back up file ends up in /home/Liamjd93/portal which is what I was expecting. When the scheduled task runs it, it is in /home/Liamjd93.
Does anyone have any ideas why the backup file is empty and in the wrong folder when it's run as a scheduled task but not when I manually run the program?
TIA, Liam.