Server Procedures Generation I

From ATLASWARES

Jump to: navigation, search


Contents

Setting the System Time

  1. Select a GNOME desktop session
  2. Login as username (_root_), password (_________________________)
  3. Right-click the clock (in the upper-right corner), choose Adjust Date & Time
  4. In the Time Zone tab, select the correct zone for your system
  5. In Network Time Protocol, check Enable Network Time Protocol
  6. Click Show Advanced Options
  7. Check Synchronize system clock before starting service
  8. Check Use Local Time Source
  9. Click OK

Backing up data on the WARES Server

Performing Scheduled Backups

The WARES Server is configured to perform a data backup each weekday (MON, TUE, WED, THU, FRI) at 2:00 a.m. To perform a scheduled backup, either insert a USB drive in a front or rear USB port, or place a blank DVD-R in the DVD drive. A backup will be performed at the next scheduled time.

Performing Demand Backups

  1. Either insert a USB drive in a front or rear USB port, or place a blank DVD-R in the DVD drive.
  2. Login as root at the server console (Username __root__, Password ____________________).
  3. Double-Click the Backup icon on the desktop.
  4. A backup will begin immediately.

Backup Operation Sequence

  1. Block new logins
  2. Kill current X-Windows logins
  3. Copy non-excluded user files to /home/global
  4. ZIP WARES for DOS, WARES for Windows, and public documents
  5. Write zipped files to either USB or DVD media
  6. Reenable logins

Restoring Backups to a Windows(tm) Workstation

  1. Either insert the USB backup drive or DVD disk in a Windows(tm) workstation
  2. Open My Computer and double-click the USB or DVD drive icon
  3. Double-click one of the zip folders to display its contents
  4. Copy or Drag the contents to the local drive

Executing AREV or WARES from Backup files

  1. Restore the AREV folder to the local drive as described above
  2. Open the AREV folder, scroll to the bottom of the file list
  3. Double-click the WRunBkup.bat icon to run it
  4. Press [F2] and select non-networking to change the network driver
  5. Press [F9] to save the change, then Exit the program
  6. WARES will start immediately

Alternative procedure

  1. Go to a command prompt
  2. Change directory to the arev folder
  3. Type the command, copy revboot.old revboot
  4. Exit the command prompt, and start WARES with the WARES icon

Backup Script File

/etc/backup/backup.sh

#!/bin/sh
#backup.sh
# calling parameters: (1) usb device 1, (2) kill Xterms

echo "preventing new logins..."
cp /etc/backup/nologin /etc/nologin

if [ "$#" -eq "2" ]
then
  echo "killing all X-terminal sessions..."
  pkill gdm-binary
  pkill x
fi

echo "stopping services ..."
service smb stop
service webmin stop
service lh3lite stop
service lh3srvc stop

echo "Synchronizing user directories with Global..."
sh /etc/backup/doc-sync.sh

echo "creating zip archives to backup..."
rm /backup/BKUP-*.zip
zip -r /backup/BKUP-oinsight.zip /var/opt/openinsight
zip -r /backup/BKUP-arev.zip /var/opt/arev
zip -r /backup/BKUP-global.zip /home/global

echo "Restarting services..."
service lh3lite start
service lh3srvc start
service smb start
service webmin start

echo "enabling logins..."
rm /etc/nologin

if [ -e $1 ]
then
  echo "Using USB Flash Media $1 for Backup..."
  /etc/backup/usb-backup.sh $1
else
  echo "Using DVD Recordable Media for Backup..."
  /etc/backup/dvd-backup.sh
fi