Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
audina:server_backups [2010/06/25 09:23]
smayr
audina:server_backups [2018/03/13 16:32] (current)
ajdavis [New Backup Method]
Line 1: Line 1:
-== Server Backups ==+= Server Backups =
  
-=== Exchange Server ===+== New Backup Method == 
 +All servers are now virtualized. See more information [[network:esxi:esxi_servers|here]]. We replicate all virtual machines to a secondary VM host using [[https://www.nakivo.com/|Nakivo Backup & Replication]]. 
 + 
 +Nakivo has a web interface for configuring jobs. It can be accessed at [[https://192.168.0.36:4443]] by using the typical administrator password. 
 + 
 +Our license file can be found {{:systems:nakivo:pro_v5.0.0_license_for_audina_andrew_davis_ajdavis_audina.net_1360550665749790679_.license|here}} or at ''\\server20081\Documents and Software\Software Installation Backup\Nakivo\PRO v5.0.0 license for 'Audina;Andrew Davis;ajdavis@audina.net;' (1360550665749790679).license'' 
 + 
 +A backup of the Nakivo configuration can be found {{:systems:nakivo:nakivo_configuration_7.0.1_2018-03-03.zip|here}}. 
 + 
 +== Old Backup Method == 
 + 
 +=== Exchange Server (replaced by Office 365 subscription) ===
 ==== Daily Routine ==== ==== Daily Routine ====
 Verify Backups by following these steps: Verify Backups by following these steps:
Line 17: Line 28:
   * Open ''\\NAS\Backup'' share to verify that daily backups where performed for CRMServer (OnContact server), Fileserver (main file server), Infuserv (Infusion server).   * Open ''\\NAS\Backup'' share to verify that daily backups where performed for CRMServer (OnContact server), Fileserver (main file server), Infuserv (Infusion server).
   * Use MS Backup to restore (or create new backups).   * Use MS Backup to restore (or create new backups).
 +
 +=== WWW Server (Main Website) ===
 +
 +Linux Bash script located in ''/etc/cron.daily'' to backup files daily:
 +<code bash>
 +#!/bin/bash
 +## removes old backup file
 +#rm -rf /data/backup/*
 +
 +## backup the following directories:
 +rm -f /data/backup/mail-backup.tar.gz
 +tar -czvf /data/backup/mail-backup.tar.gz /var/spool/mail
 +
 +rm -f /data/backup/home-backup.tar.gz
 +tar -czvf /data/backup/home-backup.tar.gz /home
 +
 +rm -f /data/backup/website-backup.tar.gz
 +tar -czvf /data/backup/website-backup.tar.gz /var/www/html
 +
 +rm -f /data/backup/mysql-data.backup.tar.gz
 +tar -czvf /data/backup/mysql-data-backup.tar.gz /var/lib/mysql
 +
 +rm -f /data/backup/etc-dir.tar.gz
 +tar -czvf /data/backup/etc-dir.tar.gz /etc
 +
 +## send reminder to sysadmin to pull the tarball from the server.
 +#mail ttran -s "Get the backup tarball off the server"
 +</code>
 +
 +
 +=== SWDEV Server ===
 +
 +Linux Bash script located in ''/etc/cron.daily'' to backup files daily:
 +<code bash>
 +#!/bin/bash
 +## removes old backup file
 +#rm -rf /data/backup/*
 +
 +## backup the following directories:
 +rm -f /data/backup/mail-backup.tar.gz
 +tar -czvf /data/backup/mail-backup.tar.gz /var/spool/mail
 +
 +rm -f /data/backup/home-backup.tar.gz
 +tar -czvf /data/backup/home-backup.tar.gz /home
 +
 +rm -f /data/backup/website-backup.tar.gz
 +tar -czvf /data/backup/website-backup.tar.gz /var/www/html
 +
 +rm -f /data/backup/mysql-data.backup.tar.gz
 +tar -czvf /data/backup/mysql-data-backup.tar.gz /var/lib/mysql
 +
 +rm -f /data/backup/etc-dir.tar.gz
 +tar -czvf /data/backup/etc-dir.tar.gz /etc
 +
 +rm -f /data/backup/projrepos.tar.gz
 +tar -czvf /data/backup/projrepos.tar.gz /data/repos
 +
 +## send reminder to sysadmin to pull the tarball from the server.
 +#mail ttran -s "Get the backup tarball off the server"
 +</code>
 +
 === Directories to Backup === === Directories to Backup ===
  
 ^ Resource  ^ Path  ^ Backup Incidence  ^ Description  ^ ^ Resource  ^ Path  ^ Backup Incidence  ^ Description  ^
-| Subversion Repositories | \\SWDEV\data\repos Weekly | All software development projects' source control versioning resides here.  |+| Website, Config & Database Backup | \\WWW\data\backup  | Daily | Website, system configuration and database backups (tar & gzipped). 
 +| Subversion Repositories | \\SWDEV\data\repos Daily | All software development projects' [[[[ezfit:Control Version Repositories (Subversion)|source control versioning]] resides here.  |
 | Config & Database Backup | \\SWDEV\data\backup  | Daily | System configuration and database backups (tar & gzipped).  | | Config & Database Backup | \\SWDEV\data\backup  | Daily | System configuration and database backups (tar & gzipped).  |
 | File Repositories | \\SWDEV\installers, \\SWDEV\programming, \\SWDEV\pub | Weekly | File repositories with software development tools. | | File Repositories | \\SWDEV\installers, \\SWDEV\programming, \\SWDEV\pub | Weekly | File repositories with software development tools. |
 +
 +=== Synchronizing Backups with SyncBack ===
 +
 +Download SyncBack from [[http://www.filehippo.com/download_syncback]]
 +
 +Create a backup profile like this:
 +{{:audina:syncback-profilesetup.jpg|SyncBack: Creating a sync backup profile.}}