User Tools

Site Tools


computing:storage:backup:ahsay

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
computing:storage:backup:ahsay [2013/01/17 12:04]
gcooper
— (current)
Line 1: Line 1:
-====== Ahsay Backup ====== 
  
-See also **[[computing:storage:backup:ahsay_licensing|Ahsay Licensing]]**. 
- 
-See also: **[[computing:storage:backup:ahsay_multiple_machines|Ahsay Backup with Multiple Machines per Account]]**. 
- 
-===== Pricing ===== 
- 
-http://download.ahsay.com/sales/notice_20120921.pdf 
- 
-http://download.ahsay.com/sales/ASC_OEM_On-Site_Edition.pdf 
- 
-===== Check Versions ===== 
- 
-==== Clients ==== 
- 
-Web Interface -> Manage Log -> Backup Job 
- 
-==== Server ==== 
- 
-Web Interface -> Manage System -> Software License 
- 
-===== Upgrade OBSR ===== 
- 
-Upgrade Guide: http://pedia.ahsay.com/display/2/kb/article.aspx?aid=2686 
- 
-:!: If you are using RDR, upgrade that first. 
- 
-<file> 
-# Declare locations 
-OBS_HOME=/opt/obs; export OBS_HOME 
-OBS_HOME_BAK=/opt/obs.bak; export OBS_HOME_BAK 
- 
-# Stop services 
-/etc/init.d/obsr stop 
- 
-#Create backup less user data - you should back it up too if you can 
-tar -czvf /root/obs_backup.tgz --exclude="/opt/obs/user/*" /opt/obs 
- 
-# Uninstall the old version leaving data and configuration intact 
-sh $OBS_HOME/bin/uninstall.sh 
- 
-# Delete old folder if it exists and rename $OBS_HOME to $OBS_HOME_BAK 
-rm -rf $OBS_HOME_BAK 
-mv $OBS_HOME $OBS_HOME_BAK 
-mkdir $OBS_HOME 
- 
-# Move into $OBS_HOME, download the latest version and extract it 
-cd $OBS_HOME 
-wget http://www.ahsay.com/download/customer/software/obs/current/obsr-nix.tar.gz 
-tar -xzvf obsr-nix.tar.gz 
- 
-# Copy original files into the upgrade installation 
-/bin/cp -avr $OBS_HOME_BAK/conf/*.xml $OBS_HOME/conf/ 
-/bin/cp -avr $OBS_HOME_BAK/logs $OBS_HOME/ 
-mv $OBS_HOME_BAK/user $OBS_HOME/ 
-/bin/cp -avr $OBS_HOME_BAK/system $OBS_HOME/ 
-mv $OBS_HOME_BAK/rps-system $OBS_HOME/ 
-mv $OBS_HOME_BAK/rcvshome $OBS_HOME/ 
- 
-sh $OBS_HOME/bin/install.sh 
-</file> 
- 
-Finally, logon to the AhsayOBS Web Management Console and press the **''Update''** button here: 
- 
-**Manage System -> Software License -> Update** 
- 
-:!: Note that these upgrade instructions do not include handling customizations such as branding. 
- 
-:!: Note that AUA must be reenabled after an upgrade. 
- 
-==== Release Notes ==== 
- 
-After upgrading to the latest version, check the Release Notes to see if there are any hotfixes you need to appy: 
- 
-http://www.ahsay.com/download/customer/document/aobs-release-notes.htm 
- 
-==== Patch or Hotfix ==== 
- 
-<file> 
-# Declare locations 
-OBS_HOME=/opt/obs; export OBS_HOME 
- 
-# Stop services 
-/etc/init.d/obsr stop 
- 
-# Install patch/hotfix 
-cd $OBS_HOME 
-wget http://download.ahsay.com/support/hot-fixes/6/obsr-nix-hotfix.zip 
-unzip obsr-nix-hotfix.zip    #overwrite all files 
-rm obsr-nix-hotfix.zip 
- 
-# Restart services 
-/etc/init.d/obsr start 
-</file> 
- 
-==== Applying Hotfix to Clients ==== 
- 
-https://help.ahsay.com/display/2/kb/article.aspx?aid=2593 
- 
-===== Auto Update Agent (AUA) ===== 
- 
-:!: The [[http://pedia.ahsay.com/display/2/kb/article.aspx?aid=2686|Upgrade Guide]] has notes on updating the AUA configuration. 
- 
-https://help.ahsay.com/display/2/kb/article.aspx?aid=2375&n=1&docid=73123 
- 
-http://forum.ahsay.com/viewtopic.php?t=4914 
- 
-http://forum.ahsay.com/viewtopic.php?t=6004 
- 
-The upgrade files supplied by the standard OBSR installation package contain non-customized files.  See this [[https://help.ahsay.com/display/2/articleDirect/index.aspx?aid=2512&link=|FAQ]] for customization details. 
- 
-Enable AUA: 
- 
-<file> 
-OBS_HOME=/opt/obs; export OBS_HOME 
-cd $OBS_HOME 
-mv webapps/obs/liveUpdate/index.xml.disable webapps/obs/liveUpdate/index.xml 
-</file> 
- 
-Customize AUA: 
- 
-<file> 
-vim webapps/obs/liveUpdate/index.xml 
-</file> 
- 
-You can kick off the update on the client by restarting the AUA service. 
- 
-===== Performance ===== 
- 
-  * Use separate disks 
-    * OS 
-    * OBS System 
-    * OBS User Homes 
-      * Divide users over multiple User Homes 
-  * Mount filesystems with ''noatime'' option 
- 
-===== Downloads and Docs ===== 
- 
-http://www.ahsay.com/jsp/en/home/index.jsp?pageContentKey=ahsay_downloads_latest-software_download-ahsayobs-ahsayrps 
- 
-===== Move OBS to New Hardware ===== 
- 
-http://pedia.ahsay.com/article.aspx?article=1786&p=16  
- 
-===== Do a Centos 6 Minimal Install ===== 
- 
-==== Partitioning ==== 
- 
-During the installation, you might use manual partitioning like: 
- 
-^Partition^Size^Mountpoint^Filesystem^ 
-|/dev/sda1|200MB|/boot|ext4| 
-|/dev/sda2|15GB|/|ext4| 
-|/dev/sda3|2GB|n/a|Swap| 
-|/dev/sda4|Rest of first disk|/opt/obs/user|ext4| 
-|/dev/sdb1|All of second disk|/mnt/obs_homes_1|ext4| 
-|/dev/sdc1|All of third disk|/mnt/obs_homes_2|ext4| 
- 
-==== Install Latest Updates ==== 
- 
-<file> 
-yum update -y 
-reboot 
-</file> 
- 
-==== Install Needed Tools ==== 
- 
-<file> 
-yum -y install wget vim-enhanced ntp acpid 
-</file> 
- 
-==== Configure Networking ==== 
- 
-See [[networking:linux:static_ip_addr|Static IP Address]]. 
- 
-Verify the hostname and IP address are set in /etc/sysconfig/network and in /etc/hosts. 
- 
-==== Configure Timekeeping ==== 
- 
-[[networking:linux:linux_time|Linux Timekeeping]] 
- 
-<file> 
-chkconfig ntpd on 
-service ntpd start 
-</file> 
- 
-==== Configure SElinux ==== 
- 
-Set selinux to Permissive mode and set the system to relabel on the next reboot: 
- 
-<file> 
-vim /etc/selinux/config 
- 
-SELINUX=permissive 
- 
-echo 0 >/selinux/enforce 
-touch /.autorelabel 
-sestatus -v 
-</file> 
- 
-==== Configure Bash Shell ==== 
- 
-<file> 
-cat >> ~/.bash_profile << EOF 
- 
-alias ll='ls -l' 
-alias la='ls -A' 
-alias l='ls -CF' 
-alias ls="BLOCK_SIZE=\'1 ls --color=auto" 
-alias free="free -m" 
-export GREP_OPTIONS='--color=auto' 
-PS1='\[\033[00;36m\]\u\[\033[00m\]@\h:\[\033[05;33m\]\w\[\033[00m\] \$ ' 
-export HISTCONTROL=ignoredups 
-EOF 
-</file> 
- 
-===== Firewall ===== 
- 
-:!: Expose only TCP port 80 and 443 (Ahsay) plus UDP 123 (NTP) to the public. 
- 
-==== CentOS Firewall ==== 
- 
-The built-in CentOS firewall only allows port 22 (SSH) by default and blocks all other traffic. 
- 
-<file> 
-iptables -I INPUT 3 -p udp --dport 123 -j ACCEPT 
-iptables -I INPUT 3 -p tcp --dport 443 -j ACCEPT 
-iptables -I INPUT 3 -p tcp --dport 80 -j ACCEPT 
- 
-/sbin/service iptables save 
-iptables --line-numbers -nL 
-</file> 
- 
-==== Arno's Firewall ==== 
- 
-If your backup server has an interface directly connected to the Internet, you should consider Arno's Firewall. 
- 
-Disable the built-in firewall: 
- 
-<file> 
-service iptables stop 
-service ip6tables stop 
-chkconfig iptables off 
-chkconfig ip6tables off 
-</file> 
- 
-**[[networking:firewall:arno_s_firewall|Arno's Firewall]]** 
- 
-I don't remember what these very important notes were for: 
- 
-<file> 
-NAT_LOCAL_REDIRECT=1 
-NAT_FORWARD_TCP="80>209.104.9.38~9080 443>209.104.9.38~9443" 
-</file> 
- 
-===== Install OBS ===== 
- 
-<file> 
-wget http://www.ahsay.com/download/customer/software/obs/current/obsr-nix.tar.gz 
-OBS_HOME=/opt/obs; export OBS_HOME 
-mkdir $OBS_HOME 
-mv obsr-nix.tar.gz $OBS_HOME 
-cd $OBS_HOME 
-tar -xzvf obsr-nix.tar.gz 
-sh $OBS_HOME/bin/install.sh 
-</file> 
- 
-===== First Login ===== 
- 
-Login to the new backup server using a web browser.  Use a fully qualified domain name, an IP address won't work.  That means you must have DNS configured or have a 'hosts' file entry for the FQDN to resolve properly. 
- 
-The default username/password is **system/system** - change them to 'admin' and your own password: 
- 
-Manage System -> Server Configuration -> Login Name  
- 
-===== Filesystem Tweaks ===== 
- 
-Depending on how you partitioned the drive when you installed the OS, you may need to add a new logical volume for OBS to use.  Ideally, the OBS 'homes' will be separate from the host OS so if a disk is filled, the server won't crash. 
- 
-Assuming the entire installation disk was used as a LVM PV (physical volume), this command will use the rest of it to create a new LV (logical volume) for OBS 'homes': 
- 
-<file> 
-lvcreate -n lv_obs_homes -l 100%FREE vg_backup 
- 
-mkfs.ext3 /dev/vg_backup/lv_obs_homes 
-</file> 
- 
-Edit /etc/fstab and add add a line to mount the new LV with the 'noatime' option: 
- 
-<file> 
-vi /etc/fstab 
- 
-/dev/mapper/vg_backup-lv_obs_homes    /mnt/obs_homes       ext3    defaults,noatime    0 0 
- 
-mkdir /mnt/obs_homes/{system,user} 
-</file> 
- 
-Manage System -> Server Configuration -> System Home 
-  * ''/mnt/obs_homes/system'' 
-Manage System -> Server Configuration -> User Homes 
-  * ''/mnt/obs_homes/user'' 
- 
-===== Copy Data ===== 
- 
-<file> 
-rsync -av /usr/local/obs/system root@192.168.1.6:/opt/obs/ 
- 
-rsync -av /usr/local/obs/user root@192.168.1.6:/opt/obs/ 
-</file> 
- 
-===== Add Additional Storage ===== 
- 
-https://help.ahsay.com/display/2/kb/article.aspx?aid=2437&n=1&docid=67930 
- 
-Install a new disk drive, then create one large partition and format it: 
-<file> 
-fdisk /dev/sdb 
- 
-mkfs.ext3 /dev/sdb1 
-</file> 
- 
-You want to mount the new space using the disk's UUID as a best practice.  Run this command after the format has finished to determine the UUID: 
- 
-<file> 
-blkid 
-</file> 
- 
-Edit /etc/fstab to mount the new partition with the 'noatime' option. 
- 
-<file> 
-vi /etc/fstab 
- 
-# additional storage for OBS 
-/dev/mapper/vg_backup-lv_obs_homes           /mnt/obs_homes         ext3    defaults,noatime    0 0 
-UUID=40a09cc6-47d7-4061-b93b-a30d45659075    /mnt/obs_homes_2       ext3    defaults,noatime    0 0 
-UUID=299dc4c1-0652-47d3-bbe5-bcf1788647d0    /mnt/obs_homes_3       ext3    defaults,noatime    0 0 
- 
-mount -a 
-mount 
-</file> 
- 
-Then you can assign the new space for user homes in the web interface: 
- 
-Manage System -> Server Configuration -> User Homes 
-  * ''/mnt/obs_homes_2'' 
-  * ''/mnt/obs_homes_3'' 
- 
-===== Data Validation ===== 
- 
-http://forum.ahsay.com/viewtopic.php?t=5746 
- 
-===== Run Server as Non-Root User (not finished) ===== 
- 
-====== Backup Clients ====== 
- 
-:!: Remember to choose HTTPS for SSL encryption of communications between backup client and backup server. 
- 
-===== OBM Linux Client ===== 
- 
-http://eval.ahsay.com/obs/jsp/user/wizard/install/index.jsp?os=unix.jsp 
- 
-http://peakbackup.blogspot.com/2008/01/here-are-some-nice-to-knows-about.html 
- 
-http://forum.ahsay.com/viewtopic.php?t=2736 
- 
-==== Install ==== 
- 
-Log into machine to be backed up giving yourself web management access in the process: 
- 
-<file> 
-ssh -X -l root hostname.example.com 
-</file> 
- 
-:!: If you see an error in forwarding X1, it should go away after the next step.  This is important to be able to run the GUI interface (below).  You will have to log out, then back in for X11 (graphics) forwarding to work properly. 
- 
-Install necessary libraries for a headless Linux server as client: 
- 
-<file> 
-yum install libXi libXp libXtst Xvfb xorg-x11-xauth 
-</file> 
- 
-Install OBM: 
- 
-<file> 
-cd ~ 
-wget http://obs1.sonoracomm.com/obs/download/obm-nix.tar.gz 
-mkdir /usr/local/obm 
-cd /usr/local/obm 
-tar -xzvf ~/obm-nix.tar.gz 
- 
-./bin/install.sh >install.log 
-cat install.log # look for errors 
-ps -ef | grep obm 
-chkconfig --list |grep obm 
-</file> 
- 
-==== SME Server Additional Notes ==== 
- 
-On 64-bit SME 8 servers, you might have to install the requisites with this command: 
- 
-<file> 
-yum install libXi libXp libXtst Xvfb xorg-x11-xauth --enablerepo=base --enablerepo=updates 
-</file> 
- 
-You will need to enable X forwarding by editing the /etc/ssh/sshd_config file as noted below. 
- 
-On SME Servers, which use runlevel 7, you must also enable automatic startup with these two commands: 
- 
-<file> 
-ln -s /etc/rc.d/init.d/obmaua /etc/rc7.d/S99obmaua 
-ln -s /etc/rc.d/init.d/obmscheduler /etc/rc7.d/S99obmscheduler 
-</file> 
- 
-You also need to run these ''pre'' and ''post'' backup commands in order to back up the MySQL databases properly: 
- 
-=== Pre-Backup Command === 
- 
-^Name              |Dump MySQL                                          | 
-^Command           |/etc/e-smith/events/pre-backup/S20mysql-dump-tables | 
-^Working Directory |/etc/e-smith/events/pre-backup/                     | 
- 
- 
-=== Post-Backup Command === 
- 
-^Name              |Delete Dumped Files                                           | 
-^Command           |/etc/e-smith/events/post-backup/S10mysql-delete-dumped-tables | 
-^Working Directory |/etc/e-smith/events/post-backup/                              | 
- 
-==== Create and Run Backup Jobs ==== 
- 
-:!: Use the GUI method if you can, but don't fight it. 
- 
-:!: Use the Text Console method if you can't use the GUI (Configurator.sh) 
- 
-:!: Use the Web Console method only iof you have to. 
- 
-:!: Be sure to edit the backup sets afterwards in the web interface to verify these settings: 
- 
-  * Backup sources as appropriate 
-  * Backup schedule as appropriate 
-  * Run scheduled backup on computers named field must have a hostname 
-  * Retention period set to 90 days 
-  * Compression type normal 
-  * Local copy (L1 backup) on or off 
-    * Local copy has separate retention settings 
-    * Use a separate backup job if L1 captures more files 
-  * Pre and post scripts 
-    * Dump MySQL maybe 
- 
-=== GUI Method === 
- 
-This also works on headless Linux backup client servers with the prerequisite packages (listed above) installed. 
- 
-Assuming you forwarded X in the SSH command line (-X) when you connected to the Linux backup client machine, we start the GUI interface like this: 
- 
-<file> 
-sh /usr/local/obm/bin/RunOBC.sh 
-</file> 
- 
-:!: If you get errors with X11 forwarding: 
- 
-  * Make sure the requisite packages listed above are installed on the headless host. 
-  * Make sure the SSH daemon on the headless host to be backed up has X11 Forwarding enabled 
-  * Restart the SSH daemon if a change was made 
- 
-<file> 
-vim /etc/ssh/sshd_config 
- 
-X11Forwarding yes 
- 
-service sshd restart 
-</file> 
- 
-=== Text Console Method === 
- 
-We start the text interface like this: 
- 
-<file> 
-sh /usr/local/obm/bin/Configurator.sh 
-</file> 
- 
-You can run a previously created job like this: 
- 
-<file> 
-sh /usr/local/obm/bin/RunBackupSet.sh "BACKUP_SET_NAME" 
-</file> 
- 
-=== Web Console Method === 
- 
-You can create a backup account and backup job using the web interface, but it's easier and more common to use the client software on the backup client machine. 
- 
-:!: You may want to enable the Trial feature of your OBS.  This makes it very easy to create new accounts and backup jobs all from the client machines. 
- 
-===== OBM Windows Client ===== 
- 
-http://eval.ahsay.com/obs/jsp/user/wizard/install/index.jsp?os=windows.jsp 
- 
-Download from http://obs1.sonoracomm.com 
- 
-  - Weekly System State Backup -> Microsoft Windows System Backup 
-  - Nightly MSSQL Backup -> MS Exchange Server Backup 
-  - Nightly Files Backup -> File Backup 
- 
-<file> 
-C:\Documents and Settings 
-C:\Program Files\CYMA 
-C:\Program Files\QuickPen 
-C:\Users 
-</file> 
- 
-===== Hyper-V ===== 
- 
-https://help.ahsay.com/openArticle.aspx?aid=2459&p=16 
- 
-===== Disaster Recovery ===== 
- 
- https://help.ahsay.com/openArticle.aspx?aid=2502&p=16 
- 
-===== Customization ===== 
- 
-http://partners.ahsay.com/ 
- 
-===== Small Business Server (SBS) ===== 
- 
-==== Suggested Backup Jobs Configuration ==== 
- 
-FIXME 
- 
-  * Turn off circular logging 
-  * Do full backups on MS Exchange 
- 
-^ Ahsay Backup Type          ^ Run     ^ Time      ^ Notes                                       ^ 
-| File Storage               | Daily   | 1 to 6 AM | Separate jobs for each major section        | 
-| Full Exchange Image        | Friday  | 9 PM      | Do full Exchange backups only               | 
-| Database Backup            | Daily   | 8 PM      | Do complete database backups only           | 
-| MS Windows System Backup   | Friday  | 7 PM      | C drive only                                | 
- 
-===== Troubleshooting ===== 
- 
-==== Validate User Data ==== 
- 
-https://help.ahsay.com/openArticle.aspx?aid=2632&p=16  
- 
-==== Disk Space ==== 
- 
-=== Move a Backup Account to a new User Home === 
- 
-https://help.ahsay.com/openArticle.aspx?aid=2709&p=16  
- 
-  - Stop OBSR 
-  - Move the user to the new User Home 
-  - Restart OBSR 
- 
-<file> 
-service obsr stop 
- 
-mv /opt/obs/user/[username] /mnt/obs_homes_1/ 
- 
-service obsr start 
-</file> 
- 
-Moving to a different server is slightly different. 
- 
-  - Stop OBSR on original server 
-  - Move the user to a temporary folder 
-  - Restart OBSR on original server 
-  - Stop OBSR on new server 
-  - Rsync (copy) the user folder to the new server 
-  - Start OBSR on new server 
-  - Delete temporary folder 
- 
-=== Replication of a Moved User Account === 
- 
-https://help.ahsay.com/openArticle.aspx?aid=2311&p=16  
- 
-==== Processes ==== 
- 
-http://forum.ahsay.com/viewtopic.php?t=4410 
- 
-http://forum.ahsay.com/viewtopic.php?p=22911 
- 
-You may see in Task Manager a process CDPService.exe which may use a lot of memory and CPU.  For clients not using CDP, disable that service like this: 
- 
-<file> 
-sc config "OBCDPService" start= disabled & net stop OBCDPService 
-</file> 
- 
-==== Databases ==== 
- 
-http://msdn.microsoft.com/en-us/library/ms190190.aspx 
- 
-Microsoft System databases such as 'master', 'msdb' and 'model' must remain set to the SIMPLE recovery model.  Therefore, you can only do Full backups on these databases reliably (no Transaction Log backups). 
- 
-For other databases, particularly larger databases, you can also use Transaction Log backups.  Set the recovery mode of each database to FULL (not SIMPLE) with the OBM client.  Right-click on the database name in Sources to change. 
- 
-See **[[computing:windows:mssql_backup|Microsoft SQL Server Backup]]**. 
- 
-==== Outlook ==== 
- 
-Use a pre-backup script to close Outlook.  This is probably very useful with Terminal Servers.  
- 
-https://help.ahsay.com/openArticle.aspx?aid=2556&p=16  
- 
-==== Exchange ==== 
- 
-If you see something like: 
- 
-<file> 
-The writer vetoed the shadow copy creation process during the backup preparation state. 
-(VSS_WS_FAILED_AT_PREPARE_BACKUP) 
-</file> 
- 
-See: https://help.ahsay.com/openArticle.aspx?aid=2863 
- 
-http://www.altaro.com/blog/sbs-2011-backups-failing-vss-error-0x800423f3-event-id-8230-spfarm-spsearch/ 
- 
-=== Disable Circular Logging === 
- 
-http://msdn.microsoft.com/en-us/library/aa579094%28v=exchg.140%29.aspx 
- 
-http://technet.microsoft.com/en-us/library/bb331968%28EXCHG.80%29.aspx 
computing/storage/backup/ahsay.1358449443.txt.gz · Last modified: 2013/01/17 12:04 by gcooper