Skip to content

Instantly share code, notes, and snippets.

@ilyasahsan123
Created July 21, 2018 10:16
Show Gist options
  • Save ilyasahsan123/0e1f1d7d421b859c1f1de2b376cc5fa5 to your computer and use it in GitHub Desktop.
Save ilyasahsan123/0e1f1d7d421b859c1f1de2b376cc5fa5 to your computer and use it in GitHub Desktop.
* 12 * * * cd [python script directory] && /usr/bin/python [python script directory]/backup_database.py
example:
* 12 * * * cd var/www/backup_db/ && /usr/bin/python var/www/backup_db/backup_database.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment