Shell Script to Backup database to Aws S3 or DigitalOcean Automatically.
This script creates a dump of database on your server and backs it up to digitalocean spaces. You can also set it up as a cron to automatically backup periodically important You must have s3cmd installed and configured for this script to work.
What it does
- download
wget https://cdn.jsdelivr.net/gh/iqltechnologies/automatically-backup-database-to-cloud/backup_cron.sh - make executable
chmod +x backup_cron.sh - try run
./backup_cron.sh - get current directory path
pwd
open crontab in editor:
crontab -e- add following line at last
0 0,6 * * * /current-directory-path/backup_cron.sh