bash-backup-rotation-script
bash-backup-rotation-script copied to clipboard
Bash backup rotation script for your files / website
The mysqldump command is missing `-h $DBHOST`
The local_remote function names the output file as mysql but the other functions name the output file as just "sql". This means that the "grep mysql" in the other functions...
Thank you so much for the code, it's perfect for what I needed. Just a small improvement, I added a $DBHOST and $OPTIONS to the mysqldump ($OPTIONS in my case...
Grep command in the backup rotation will fail due to incorrect search string.
After setting up the configuration file and running the script, I get the following error: ``` root@kraken:~/backups# bash backup_rotation.sh Removing expired backups... Creating backup dir.. Copy backup to local dir.....
You could test if LZMA is supported
The script should check the value of LOCAL_BACKUP_OPTION before executing "Cleanup expired backups", "Perform Files Backup" and "Optional check if source files exist. Email if failed." I have disabled local...
Keep getting mails like: /backupdav/18-08-2016-daily.data.tar.xz does not seem to exist. Something failed. When it run as cron, works if i run it manual.
Hi, In fact, in your server, you can have multiple sites (or directories) without sql database, a web site with 2 or 3 databases. So, in this case, a better...