Install Mozzie Backup for Linux  1. Create a backup set using the web console. Enter you backup "logon name" and password (note: this is the same logon name emailed to you when you first registered with Mozzie - they are case sensitive,). Be sure to at least fill out: --Name --Type --Backup Source --Backup Schedule --"Run scheduled backup on computers named" ________ (use #hostname on the linux machine if you don't know the name) --Retention Customisation Policy --After clicking update, click back on backup set to ensure everything is as you expect.
The following actions are performed as user with root-level access on your Linux system. 1. Create the file structure and download the Mozzie backup installer (obm-nix.tar.gz) # mkdir /usr/local/obm # cd /usr/local/obm # wget http://mozzie.co.nz/downloads/obm-nix.tar.gz
2. Unpack the install file to /usr/local/obm
# gunzip obm-nix.tar.gz # tar -xf obm-nix.tar
3. Install Mozzie backup # ./bin/install.sh >install.log Installation information can be found in the file "install.log" Look for any install issues #cat install.log Ensure obm is now running. Should be output from: # ps -ef | grep obm The backup scheduler and auto-upgrade services are automatically installed 4. Start the Configurator to link your Linux machine with your Mozzie backup account (refer to the email from Mozzie for your backup account name) #sh /usr/local/obm/bin/Configurator.sh Note: If you receive any java heap errors, the application is trying to use more physical memory than you have available.
Workaround: #cd /usr/local/obm/bin Use vi to replace Xmx512m or Xmx256m in both Configurator.sh and RunBackupSet.sh (only one entry in each). We've used Xmx32m in both files and it works fine. Login Name: username (login name sent via email when register, note the name and password are bot case sensitive) Password: ******************* (password of login name) Backup Server URL: backup.mozzie.co.nz Which Protocol ? (1) Http (2) Https : 2 (use https, ssl, unless there's a good reason not to) Use proxy ? (Y)es or (N)o : N (note: if you enter N, the following will not show) Proxy Type ? (1) Http/Https Proxy (2) SOCKS : 1 Enter proxy server : aaa.bbb.comEnter proxy port : xxx Enter proxy username (optional) : administrator Enter proxy password (optional) : ******************* Systems says....Please wait while verifying user account with server Found new backup set 'xxx' (where xxx is the name of your backup set created using the web interface Please enter the following values for this backup set:
Encrypting Algorithm ?(1) Twofish (2) AES (3) Triple DES (4) No encryption : 2 (personal preference) Encrypting Key: ******************* Re-Enter Encrypting Key: ******************* NOTE: Never forget this password! Encrypting Mode ? (1) ECB (2) CBC : 1 (personal preference) Run scheduled backup on this computer ? (Y)es or (N)o : Y NOTE: If you select N, the backup set will not run on a schedule on this computer.
Optional Running Backup Set
You don't have to run this now; however, it'll get your data protected now, and it'll prove all above worked.
# sh /usr/local/obm/bin/RunBackupSet.sh [BACKUP_SET] where [BACKUP_SET] is the name of backup set to be run. e,g, if you created BackupSet-0 #sh /usr/local/obm/bin/RunBackupSet.sh BackupSet-0
Stopping and Starting Processes
If you need to manually stop / start process, create an executable file name.
Stop
#cat stop.sh sh "/etc/init.d/obmscheduler" stop sh "/etc/init.d/obmaua" stop
Start #cat start.sh sh "/etc/init.d/obmscheduler" start & sh "/etc/init.d/obmaua" start &
------------------------------------------
If you don't want to use resources with leaving the scheduler running, use native cron in linux:
#crontab -e 0 0 * * * /usr/local/obm/bin/RunBackupSet.sh BackupSet-0
where first five entries are minute hour day month week of year
and BackupSet-0 is the name of your backup set.
X Windows
1. Set the DISPLAY environment variables
Linux / Unix (sh, bash): DISPLAY=IP_ADDRESS_OF_XTERMINAL[:0.0]; export DISPLAY
For example
DISPLAY=:0.0; export DISPLAY or DISPLAY=127.0.0.1; export DISPLAY or DISPLAY=127.0.0.1:0.0; export DISPLAY or DISPLAY=192.168.0.2; export DISPLAY or DISPLAY=192.168.0.2:0.0; export DISPLAY BSD (csh): setenv DISPLAY IP_ADDRESS_OF_XTERMINAL[:0.0]
For example
setenv DISPLAY :0.0 or setenv DISPLAY 127.0.0.1 or setenv DISPLAY 127.0.0.1:0.0 or setenv DISPLAY 192.168.0.2 or setenv DISPLAY 192.168.0.2:0.0 2. Run Ahsay Online Backup Manager
# sh /usr/local/obm/bin/BackupManager.sh & 3. (Optional) Enter the backup server host name in the [Address] field and press the [Next] button. 4. If you have a backup account already, select [already a user?] and logon to the server with your username and password. 6. If this is your first time logging into the server, you will be guided to create a backup set - Enter a backup set name of your choice in the [Name] field and choose the type of backup set in the [Type] field
- Select the files that you want to backup
- Setup the backup schedule by pressing the [Add] button (please note that you can add multiple backup schedules to a backup set and please select the "Run scheduled backup on this computer" checkbox if you would like to run Continuous Data Protection (CDP))
- Setup the encryption setting for your backup set (if you don't know much about encryption, just accept the default values here)
- Press the [OK] button to complete the configuration of backup set
7. To run a backup immediately, click [Backup] button on the left panel, select the backup set and press [OK] button. 8. Setup completed.
|