Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
deadaf committed Apr 7, 2023
1 parent a5e3a50 commit e75afe4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ This is a simple Python application that creates a backup of a PostgreSQL databa

## Setting up cron job

> Note that this step is optional. You can run the script manually or use a different scheduler. This is just an example of how to set up using cron. I personally use Github Workflows to run the script every day at midnight. You can find the workflow file [here](.github/workflows/backup.yml).
- Open the crontab editor: `crontab -e`
- Add the following line to run the script every day at midnight: `0 0 * * * /path/to/python /path/to/postgresql-backup/main.py`

Expand Down

0 comments on commit e75afe4

Please sign in to comment.