Changes

From Amahi Wiki
Jump to: navigation, search
5 bytes removed ,  16:48, 11 November 2010
no edit summary
It's good practice to periodically backup up your database. This functionality is coming to Amahi soon, but until then there is a simple way to automatize it. This can be done using [http://members.multimania.co.uk/wipe_out/automysqlbackup/ AutoMySQLBackup].
This can be done using [http://members.multimania.co.uk/wipe_out/automysqlbackup/ AutoMySQLBackup]. <u>== Features:</u>==
* Backup mutiple MySQL databases with one script. (Now able to backup ALL databases on a server easily. no longer need to specify each database seperately)
* Backup all databases to a single backup file or to a seperate directory and file for each database.
* Choose which day of the week to run weekly backups.
<u>== What it does:</u>==
Every day AutoMySQLBackup will run (if setup on /etc/cron.daily) and using mysqldump and gzip will dump your specified databases to the /backups/daily directory, it will rotate daily backups weekly so you should never have more than 7 backups in there..
Every Saturday AutoMySQLBackup will again backup the databases you have chosen but they will be placed into /backups/weekly, these will be rotated every 5 weeks so there should never be more than 5 backups in there..
Every 1st of the month AutoMySQLBackup will create a backup of all databases and place them into /backups/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..
== Installation How to Install ==
* Create a share called '''Database''' with the path of ''/var/hda/files/db''.
* Download the script [http://downloads.sourceforge.net/project/automysqlbackup/AutoMySQLBackup/AutoMySQLBackup%20VER%202.5/automysqlbackup-2.5.1-01.sh AutoMySQLBackup] file to ''/tmp'' directory.
12,424

edits