cron-backup Docker Container Usage
This instance provides backup support for the Nginx
, Node-red
and Grafana
containers and pushed the backed up data to S3-compatible storage.
For backing up the directory data
- It uses
grafana_backup.sh
forGrafana
container. - It uses
nodered_backup.sh
forNode-red
container. - It uses
nginx_backup.sh
forNginx
container.
The following backup jobs are added to run at specific time.
# echo new cron into cron file
{
echo "35 6 * * * /bin/bash -l -c '/bin/nodered_backup.sh'"
echo "35 7 * * * /bin/bash -l -c '/bin/grafana_backup.sh'"
echo "35 8 * * * /bin/bash -l -c '/bin/nginx_backup.sh'"
} >> mycron
The above backup shell scripts were configured to send mail for the both successful/unsuccessful run.