Member-only story
Schedule Python Heroku app to delete files in a FTP server
Deleting old files in a server is one of the oldest and most basic administrative tasks. Usually this is accomplished using a scheduled task or a CRON job which will execute a script to assess the old files in a location and delete them. In this blog post we are going to see how we can execute a python script on a schedule from a cloud location.
I have an IP Camera at my home that monitors the doorway entrance and stores the video recordings in a FTP server ( I don’t want to store them in cloud for cost purpose, basically I want a low cost storage). If you have questions on how to setup a FTP server for your IP cam recordings , refer the link below.
The problem with having your own file storage is it gets filled up very quickly. Maintenance is required to clean the old fils periodically. I don’t want to run a scheduled task or a Cron job from my local machine , I want to make use of cloud solution.
For this purpose , I chose Heroku, You can create a free account in Heroku without providing your credit card details. Only if you want…