Language:


Restoring from a Back-up

To restore from a back-up, you must first create a new database. Then import the back-up file using the 'Imports' routine.

The replacement of a safety back-up is a non-destructive process, i.e. the back-up file is not affected by the reading process. This means that you can use the same back-up file more than once.

For reasons of speed, it is recommended that you carry out the process of restoring from a back-up on the master machine in multi-user systems. If this is not possible, use a single client machine. If you have separate back-up files for different Companies, they should be imported individually. Attempting to import them simultaneously using different client machines could result in data being lost.

Restoring from a back-up is done in the following way:

  1. Move the old database (named "Hansa.HDB") to another folder/directory, to avoid mixing things up. Rename it so that you know what it contains.

  2. Delete the database file "Hansa.HDB" from the folder or directory containing your HansaWorld SmartApps application. Launching the Hansa application now will force it to create a new database, as described here.

    !

    It is important to restore to a new, empty database, to avoid mixing the restored data with the old, damaged database.


    The "DBDef.txt" and "Default.txt" files should always be present in the same directory/folder as the HansaWorld SmartApps application. They contain some important data used when setting up the new database and creating new Companies. If these files are missing, your HansaWorld SmartApps application may not work the way you expect it to do!

  3. When the 'Welcome to SmartApps' window appears, click the [Import Textbackup] button:

  4. The 'Import files available' window opens. This is a list of back-up files. To be included in this list, a back-up file must be stored in the "Backup" or "Setup" folder or directory, which should be in the same folder or directory as the HansaWorld SmartApps application.

    In the list, the filename of each back-up file is shown together with the date it was saved and any description added when it was created (see step 4 on this page).

  5. Highlight the file you want to import (the back-up to which you wish to revert) and press the Enter key (or double-click on the name of the file). The back-up data will be imported. A message window informs you about the progress of the import. For reasons of security, HansaWorld SmartApps will close when the import finishes. Restart the program: you are now ready to continue working.
Files whose name contains a space will be shown in the list of available back-up files, but HansaWorld SmartApps will not be able to import them successfully. If the name of your back-up file contains a space or any other non-alphabetic character (or it is not shown in the list of available files because it is not stored in the "Backup" or "Setup" folder or directory, or because its name does not have a .txt extension), continue with these steps:
  1. If it is still open, close the list of available import files using the close box.

  2. The 'Select Company' window is shown: double-click the top line in the list (marked "1"), or press the Return or Enter key:

  3. When the Master Control panel opens, click the [Routines] button in the Master Control panel. A list of routines appears:

  4. Click the [Imports] button. The 'Imports' window is shown:

    You can also arrive at this point from anywhere in HansaWorld SmartApps using the Ctrl-Shift-I/⌘-Shift-I keyboard shortcut.

  5. Select 'Automatic, manual file search' and press the Enter key (or double-click on 'Automatic, manual file search').

    HansaWorld SmartApps opens a standard dialogue box with a list of the files in the current folder of the current volume. To find the back-up file, scroll through the list or select another folder or volume in the normal way.

  6. Once you have found the file you want to import (the back-up to which you wish to revert), highlight it and click [Open] or [Select] (depending on the operating system), or double-click on the name of the file.

    A message window informs you about the progress of the import.

When the import has finished, HansaWorld SmartApps will close, for reasons of security. Restart the program: you are now ready to continue working.

---

In this chapter:

---

Go back to:

See also: