Changes

From Amahi Wiki
Jump to: navigation, search
No change in size ,  20:26, 11 November 2010
no edit summary
== What it does ==
* Every day it will run mysqldump and gzip will dump your specified databases to the ''/var/hda/files/databasedbbackup/daily'' directory, it will rotate daily backups weekly so you should never have more than 7 backups in there.* Every Saturday it will again backup the databases you have chosen but they will be placed into ''/var/hda/files/databasedbbackup/weekly'', these will be rotated every 5 weeks so there should never be more than 5 backups in there.* Every 1st of the month it will create a backup of all databases and place them into ''/var/hda/files/databasedbbackup/monthly''. These will never be rotated so it will be up to you to do your own house keeping. I would suggest taking a copy of this offline every month or two so that if you have a hard drive failure you will be able to restore your database.
== How to Install ==
* Create a share called '''databasedbbackup'''.
* Download the script to ''/tmp'' directory.
cd /tmp
PASSWORD=hda
''BACKUPDIR="/srv/backup/db" on line 51 to:
BACKUPDIR="/var/hda/files/databasedbbackup"
''MAILADDR="maintenance@example.com"'' on line 65 to:
MAILADDR="root"
12,424

edits