Difference between revisions of "Backup and restore"
old>Admin |
old>Admin |
||
Line 36: | Line 36: | ||
Configuring the mysqldump i straitfroward using the [http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html MySQL documentation and examples] | Configuring the mysqldump i straitfroward using the [http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html MySQL documentation and examples] | ||
== Backup synchronization == | |||
The following article describes incremental backup files can be transferred from a Linux server to a Windows client | |||
http://www.tempusserva.dk/articlebase/Secure%20rsync%20from%20Linux%20webservers%20to%20Windows%20backup%20host.pdf |
Revision as of 15:06, 20 February 2013
Everything in a TempusServa installation is stored in the underlying database.
A full backup plan will only require frequent snapshots of the database.
The only exception to the all-in-the-database policy is
- Connection string for the database
- Container ressources such as SSL certficates
Depending on the amount of data stored in the database, we usually recommend using af differencial backup.
Note: The database should allways be stopped during backups, to ensure integrity of a filesystem backup.
UNIX server tools
Using the Command line tools you can set up a RSYNC differntial backup easily.
Procedure for a Windows backup server
- Tempus Serva Server:
- Run tsrsyncdump.sh (test run)
- Run tsinstallcronjobs.sh (future scheduled runs)
- Windows backup machine:
- Install Cygwin tools: http://www.cygwin.com/
- Edit the serverBackup.sh to fit your environment
- Run serverBackup.bat (test run)
- Create a scheduled job pointing to serverBackup.bat file (future scheduled runs)
The service will call the tsrsyncdump.sh every 24 hours, making a dump ready for remote synchronization.
Windows server backup options
- Create .bat file
- Use mysqldump to backup all of the databases
- Copy files to safe location (network drive etc.)
- Execute above file scheduled from the Windows task manager
Configuring the mysqldump i straitfroward using the MySQL documentation and examples
Backup synchronization
The following article describes incremental backup files can be transferred from a Linux server to a Windows client