Member-only story

Schedule Python Heroku app to delete files in a FTP server

Rajathithan Rajasekar
3 min readApr 3, 2021

--

Photo by Ocean Ng on Unsplash

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…

--

--

Rajathithan Rajasekar
Rajathithan Rajasekar

Written by Rajathithan Rajasekar

I like to write code in Python . Interested in cloud , dataAnalysis, computerVision, ML and deepLearning. https://rajathithanrajasekar.medium.com/membership

No responses yet