Skip to content

orestispanago/Mysql-to-FTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mysql-to-FTP

Requirements:

pip install pandas sqlalchemy PyMySQL

To avoid overlapping cron job execution, use flock in crontab:

*/5 * * * * /usr/bin/flock -w 0 ~/flock_file.lock python3 ~/Mysql-to-FTP/db_to_ftp.py

To check if your cron job is running:

grep CRON /var/log/syslog

To make sure that flock works:

flock -n -x ~/flock_file.lock true || echo "LOCKED"

Releases

No releases published

Packages

No packages published

Languages