Backup and Restore

Important Notes:

  • The Statseeker Backup utility is specifically designed to backup and restore Statseeker data only. Non-Statseeker data, the operating system and the Statseeker application programs are NOT backed up. If you have created additional Unix user accounts/directories/scripts, or installed other software packages, they will NOT be included in the backup. The utility assumes the server is used for the Statseeker application only and that no modifications have been performed. Local changes must be reapplied after a restore;
  • A restore should only be performed on a server using the same version of Statseeker that produced the backup;
  • Never stop a restore while in progress as the server will be left in an unknown/incomplete state and a full reinstallation will need to be performed;
  • When using a MS Windows based machine as the FTP server, make sure you are not trying to use anonymous FTP as the user login. This will stop the backup cycle feature from operating. Also make sure that Unix directory listing format is selected, otherwise the utility will not retrieve a list of backup files and a failure will occur on both a backup and restore.

Index

Backup Procedure - FTP

Introduction

To configure an FTP backup you will need:

  • An FTP server on another server;
  • A user account on that ftp server with rights to read, write and delete data;
  • Sufficient disk space to store the Statseeker backup data.

Note: The SMTP gateway and optional Masquerade must be configured for the Backup to send results.

Procedure

  1. Create the username, password and directory for storing the backup on your FTP Server ensuring that the user has read/write permissions to the directory;
  2. Telnet or SSH to the Statseeker server;
  3. The login prompt window will open;
  4. At the login prompt, enter the username: statseeker
  5. Enter your password;
  6. Enter the command: ssadmin
  7. Enter the Statseeker server root password;
  8. Enter '6' Backup / Restore;
  9. Enter '3' Configure;
  10. Enter '2' FTP - to configure:
    • IP Address of the FTP server;
    • Username and Password for logging into the FTP server;
    • The full path to the directory where the data is to be stored;

      You can determine this by manually ftp'ing to the server, changing to the relevant directory, and typing 'pwd' to display the entire directory path.

    • Set the Cycle count (i.e. the number of backups to keep on the remote host);
    • If the information is correct, Enter 'y'.

  11. You will then be taken to the ‘Backup start time’ screen to configure ‘Start hour’ and ‘Start minute’;
  12. At the ‘Select backup days' screen, select the days backups will run by typing the number for the day. Once a day has been selected, it can be de-selected by typing the number for the day again and pressing enter. When all of the appropriate days are selected, press enter without a number to continue;
  13. Enter an email address which will receive backup results;
  14. A summary of the configured backup will be displayed. Hit Enter to continue;
  15. Confirm your backup is configured correctly by Entering '4' Backup test. This allows users to verify that the Statseeker server can login, create a file, and then delete the file;
  16. Enter '5' Start backup - to start the backup.

Backup Procedure - SSH

Introduction

To configure an SSH backup you will need:

  • An SSH server on another server;
  • A user account on that server with rights to read, write and delete data;
  • Sufficient disk space to store the Statseeker backup data.

Note: The SMTP gateway and optional Masquerade must be configured for the Backup to send results.

Procedure

  1. Create the username, password and directory for storing the backup on your SSH server ensuring that the user has read/write permissions to the directory;
  2. Telnet or SSH to the Statseeker server;
  3. The login prompt window will open;
  4. At the login prompt, enter the username: statseeker
  5. Enter your password;
  6. Enter the command: ssadmin
  7. Enter the Statseeker server root password;
  8. Enter '6' Backup / Restore;
  9. Enter '3' Configure;
  10. Enter '3' SSH - to configure:
    • IP Address of the SSH server;
    • Username for logging into the SSH server;
    • The full path to the directory where the data is to be stored (must start with a '/');

      You can determine this by manually SSH'ing to the server, changing to the relevant directory, and typing 'pwd' to display the entire directory path.

    • Set the Cycle count (i.e. the number of backups to keep on the remote host);
    • If the information is correct, Enter 'y'.

    SSH Keys

    If you have never created an SSH key on the Statseeker server, then continue with step 11.

    If you have previously created an SSH key on the Statseeker server, then continue to step 14.

  11. At the ‘Test SSH connection’ prompt Enter ‘y’. You will be prompted to generate a public SSH key, Enter "y" as per below:
  12. Your SSH key will be created and displayed on screen. Copy the entire public key and add it to the authorized_keys file in the user's SSH directory on the SSH server.
  13. Hit 'Enter’ to continue and you will be asked, ‘Do you want to add ’10.2.1.198’ to the list of known hosts [y/n]?’ Enter ‘y’. A “SUCCESS” message should appear. ‘Skip to Step 19’;
  14. You will need to get a copy of your SSH key. Open a separate telnet session and log into the Statseeker server, and navigate to the ssadmin menu as you did in steps 2-7 above;
  15. Follow the diagram below to navigate to your SSH key. Copy the entire public key and add it to the authorized_keys file in the user's SSH directory on the SSH server;
  16. At the ‘Generate new SSH Key for statseeker’ prompt, Enter ‘n’;
  17. Exit out of ssadmin using ‘q’ and then exit out of this Telnet session;
  18. At the original Telnet session you will be prompted to ‘Test SSH connection’, Enter ‘y’ and a “SUCCESS” message should appear;
  19. You will then be taken to the ‘Backup start time’ screen to configure ‘Start hour’ and ‘Start minute’;
  20. In the ‘Select backup days' screen, select the days backups will run by typing the number for the day. Once a day has been selected, it can be de-selected by typing the number for the day again and pressing enter. When all of the appropriate days are selected, press enter without a number to continue;
  21. Enter an email address which will receive backup results;
  22. A summary of the configured backup will be displayed. Hit Enter to continue;
  23. Confirm your backup is configured correctly by Entering '4' Backup test. This allows users to verify that the Statseeker server can login, create a file, and then delete the file;
  24. Enter '5'Start backup.

Backup Procedure - Local

Important Notes

DO NOT backup to the home/statseeker directory.

DO NOT use Local Backup to the primary disk as your primary backup in case of hard drive failure.

ONLY use this method as your primary backup, if you are backing up to a separate local disk. If you need assistance setting this up, then please log a support call at http://www.statseeker.com/Support_Request.html

Local Backup is best used to help facilitate another backup method that needs to collect the backup from the Statseeker server. If you are using this backup method, keep the cycle rate low and ensure you have adequate disk space to facilitate this backup method.

Introduction

To configure a Local backup you will need:

  • To log into Statseeker as the root user and create a directory where the data will be stored;
  • Sufficient disk space to store the Statseeker backup data.

Note: The SMTP gateway and optional Masquerade must be configured for the Backup to send results.

Procedure

  1. Telnet or SSH to the Statseeker server;
  2. The login prompt window will open;
  3. At the login prompt, enter the username: statseeker
  4. Enter your password;
  5. Enter the command: ssadmin
  6. Enter the Statseeker server root password;
  7. Enter '6' Backup / Restore;
  8. Enter '3' Configure;
  9. Enter '4' Local directory - to configure:
    • The full path to the directory where the data is to be stored;
    • The Cycle count (i.e. the number of backups to keep on the remote host);
    • If the information is correct, Enter 'y'.

  10. You will then be taken to the ‘Backup start time’ screen to configure ‘Start hour’ and ‘Start minute’;
  11. In the ‘Select backup days' screen, select the days backups will run by typing the number for the day. Once a day has been selected, it can be de-selected by typing the number for the day again and pressing enter. When all of the appropriate days are selected, press enter without a number to continue;
  12. Enter an email address which will receive backup results;
  13. A summary of the configured backup will be displayed. Hit Enter to continue;
  14. Confirm your backup is configured correctly by Entering '4' Backup test. This allows users to verify that the Statseeker server can login, create a file, and then delete the file;
  15. Enter '5' Start backup.

Restore Procedure

Introduction

WARNING: Users should ensure that the backup is restored to the same version of Statseeker that was running when the backup was created.

Do not stop the restore once it has started. If the restore is stopped from completing, the Statseeker server will be in an unstable state and will need to be reinstalled

Procedure

  1. Telnet or SSH to the Statseeker server;
  2. The login prompt window will open:
  3. At the login prompt, enter the username: statseeker
  4. Enter your password;
  5. Enter the command: ssadmin
  6. Enter the Statseeker server root password;
  7. Enter '6' Backup / Restore;
  8. Enter '7' Start restore;
  9. A list of previously made backups will be displayed:
  10. Enter the "Number" of appropriate backup (example: 2 and press [Enter]);
  11. The restore will commence and reboot the server once completed.

© 1998-2013 Statseeker Pty Ltd. All rights reserved.