Back

Mission up a NAS as the backup location

  1. The following instructions are based on the use of Synology NAS + Synology Disk Station Manager. They should also be an administrative user on the NAS named andes_admin.
  2. Assign the NAS a static IP as well: Control Panel > Netowrks > Network Interface > LAN X (edit) > Use manual configuration
    IP address = 192.168.0.101
    Subnet mask = 255.255.0.0
    Gateway = 192.168.0.1
    DNS Server = 8.8.8.8
    
  3. Create a share called andes_backup –> Control Panel > Shared Folders > Create > ... Make sure the andes_admin user has full access to the share.
  4. On the andes server, create a new folder: /opt/andes_root/andes/_working/backup (should only do this after the application is up and running)
  5. Create a file to store the NAS share login credentials –> sudo nano /root/.smbcredentials and add the following line (with any necessary adjustments):
    user=admin_andes
    password=__your_pwd_here__
    
  6. Open the filesystem table –> sudo nano /etc/fstab and add the following line (with any necessary adjustments):
    //192.168.0.101/andes_backup /opt/andes_root/andes/_working/backup cifs credentials=/root/.smbcredentials,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,vers=2.0 0 0
    
  7. Finally, load your filesystem tables with sudo mount -a. If you did everything correctly, there should be no message and now the andes_backup share on the NAS should be mounted @ /opt/andes_root/andes/_working/backup. This is the folder that Andes will automatically dump backups to.
  8. Test it out to make sure it works by clicking on the little floppy disk at the top right of the screen and selecting “Create a Backup Now”. If it worked, you should be able to find the backup file by navigating through the NAS filesystem

Set up a NAS as your map server

The NAS is also a great thing to use as the file server. By serving maps from here, you will be off-loading some work from the Andes web server.

  1. Install the following packages on NAS through the Package Center: Git server + Web Station + Apache2
  2. Make sure to turn on / enable ssh through your NAS control panel
  3. Open up an SSH session on the NAS. From the NAS command line, navigate to the following dir: cd /volume1/web
  4. clone the maptile collection into this folder –> git clone https://github.com/dfo-gulf-science/maptile_collection.git
  5. Go into the Andes website and add the path to the maptile collection (http://192.168.0.101/maptile_collection) in your relevant mission: Missions > Your Mission > Map server domain name
  6. Test it out by trying to add a map from your maptile collection –> Missions > Maps > ...