Send email asynchroniously using Sidekiq.
Create your mailer us usual:
| #!/bin/bash | |
| echo "starting check sidekiq" | |
| process=`cat /path-to/sidekiq.pid` | |
| processConfirmation=`ps aux | awk '{print $2 }' | grep $process` | |
| if [ -z $processConfirmation ] | |
| then | |
| echo "oops! not running... restarting sidekiq" |
| #!/bin/bash | |
| # | |
| # Backup a Postgresql database into a daily file. | |
| # | |
| BACKUP_DIR=/pg_backup | |
| DAYS_TO_KEEP=14 | |
| FILE_SUFFIX=_pg_backup.sql | |
| DATABASE= | |
| USER=postgres |