Introduction

When the day's work with FirstOffice is done, we advise you to make a back-up. It is a good idea to save a copy of the file and store it in a safe place. It might seem unnecessary to make a back-up every day, but the short time this takes is a good investment for the day something goes wrong with the hard disk.

To back up your data is particularly important when, as in the case of a FirstOffice database, the financial information of your company is involved. If you should lose all your data, you will find yourself in a very awkward situation, missing all invoices, receipts, reports etc. Make sure you make a back-up each time you have been working with your accounts. Name your copies systematically with dates so that you can easily restore the database, should an accident occur.

If you get a virus on your computer, you must first try to establish the date when your computer was infected. In this case you must restore your data from a back-up created before the infection date. Otherwise you run the obvious risk of re-infecting the computer again.

FirstOffice's method of back-up is fast and economical. The data is saved as a back-up file that takes up a minimal amount of space, and the back-up files are independent of the program versions. Of course, it is also possible to copy the database file as it appears on your hard disk, but this is not so economical in terms of disk space, and a subsequent restoration may not be successful if the version of your FirstOffice application has changed since the back-up was made.

!

Use FirstOffice's built-in text back-up feature to guarantee a successful restoration.


To create a back-up, follow these steps:

  1. In a single-user system, click the [Backup] button in the Master Control panel.

    The resulting back-up file will contain the data from the whole database; clicking this button is a short cut to the 'Database Text Backup' function described in step 2 below. If you want to back up a section of the database, or have a multi-user installation of FirstOffice, follow step 2 below.

  2. Use the [Select Module] button in the Master Control panel to go into the System module and choose 'Exports' from the File menu. The Exports window is shown:

    Double-click 'Company Text Backup' (if you wish to back up the data in the database relating to the single Company currently selected) or 'Database Text Backup' (if you wish to back up the whole database).

    Usually you should use the 'Database Text Back-up' option, as this is the only choice that backs up the entire database. You must use it regularly for your safety and peace of mind. Some registers and settings (e.g. the Configuration setting, Mailboxes and Conferences) are stored at database level, not Company level. These will not be exported by the 'Company Text Back-up' option, even if your database only contains a single Company. The 'Company Text Back-up' option is intended for use in the situation where you need to move all the information relating to a specific Company from one database to another.

    In a multi-user system, you cannot use the 'Database Text Back-up' option (and the [Backup] button in the Master Control panel) on a client machine. You can only use it on the server machine, when no other user is logged in. First, select 'Quit, Remove Autoserver' from the File menu and restart FirstOffice. Then, choose the System module using the [Select Module] button in the Master Control panel. If it is not convenient to work from the server, use the automatic timed back-up feature.

    If the server does not have a graphical interface, you can use the automatic timed back-up feature, or you can create a back-up file by typing into the Terminal:

    ./1office-server --backup (Linux)
    ./1office-macosx --backup (OS X)
    This will launch the FirstOffice server application, which will then create a back-up file and then quit.

  3. Whether you followed step 1 or step 2 above, the 'Specify Text Backup' window appears. This offers you 40 characters with which to describe the back-up file that you are about to create. If it becomes necessary to restore from a back-up, this description will be shown in the list of importable files to help you select the correct one.

    Enter an appropriate description and click [Run].

  4. If you have chosen to back up the whole database and you have more than one Company, you will now be asked to log in to any that you have not yet used in this work session. For reasons of security, if you are not able to log in to all Companies, the back-up procedure will be halted.

  5. FirstOffice opens a dialogue where you can name and place the export file. Enter the name of the file in the filename area and locate it in the appropriate directory in the usual way. The name of the back-up should include the date the back-up was made. For ease of importing later, it is recommended that you do not include spaces or other non-alphabetic characters in the name of your back-up file, and that you give it a .txt extension. Then, click [Save].

    It is recommended that you save the back-up file in a folder or directory named "Backup" which should be in the same folder or directory as the FirstOffice application. All text back-up files in this folder will be shown in a list of importable files if it becomes necessary to restore from a back-up.

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

When the export is finished, you are brought back to the 'Exports' list. Close it using the close box.

!

Under no circumstances should you edit or change a text back-up file with another program.

Automatic Timed Back-ups

The importance of establishing a regular routine for backing up cannot be emphasised enough. Because FirstOffice works - like all financial systems - with a single file database in which all your data about customers, invoices, nominal ledger etc. is stored, if you lose that file, you have lost not just a single document, but all your accounting and customer information.

To make this task easier, FirstOffice contains a timed back-up feature whereby a database back-up file can be created automatically every day. To specify when the back-up files are to be created, and where they are to be stored, follow the steps outlined below.

  1. Select 'Technics' using the [Select Module] button in the Master Control panel. In multi-user systems, you can do this on the server machine, when no other user is logged in. To gain access to the [Select Module] button, select 'Quit, Remove Autoserver' from the File menu and restart FirstOffice.

    If it is inconvenient to work on the server (e.g. it does not have a graphical interface, or it is in another building), you can work from a client machine. Log in as a Person that has access to the Technics module.

    If 'Technics' is not available in the list of modules in a single-user system, this will probably be because you have not granted yourself access to the Server module in the Configuration setting.

  2. Choose 'Settings' from the File menu. Double-click 'Timed Operations'. The following window appears:

  3. Set the Operation Time (the time when the backup is to take place) to the appropriate time, when it is likely that no-one will be using FirstOffice. Use the 24-hour clock, and place a colon (:)between the hour and the minute. The back-up file will be created at the specified time, even if there are still users logged in to FirstOffice. However, such users will find the speed of operation to be much reduced while the back-up is being carried out. It is therefore highly recommended that you specify a time that is outside working hours, to minimise such inconvenience.

  4. Specify the Database Backup Path, which determines where on your hard disk the back-up files are to be saved. If you leave this field blank, the back-up files will be saved in the folder containing the FirstOffice application.

    The following examples show the correct syntax for the Database Backup Path. You can use either \ or / as a separator between folder names under Windows, Linux and Mac OS X while you should use : on Mac OS 9. Note that the separator appears as the final character in the path.

    It is recommended that you save the back-up file in a folder or directory named "Backup" which should be in the same folder or directory as the FirstOffice application. All back-up files in this folder will be shown in a list of importable files if it becomes necessary to restore from a back-up. Under Windows XP, Linux and Mac OS X, you can do this using a relative path:

    backup/
    Under Mac OS 9, you can only use an absolute path:
    hard disk:firstoffice:backup:
    If you want to store the back-up file somewhere else, use absolute paths with the following syntax:
    Windows
    c:/samplefolder1/samplefolder2/backup/

    Mac OS 9
    hard disk:samplefolder1:samplefolder2:backup:

    Mac OS X
    /samplefolder1/samplefolder2/backup/
    Note that if you make a mistake (for example, you make a syntax error or specify a non-existent folder) there is a risk that the back-up file will not be created.

  5. Click the [Save] button in the Button Bar to save the back-up specifications.
Once you have set up the timed back-up feature as described above, a new back-up file will be created automatically every day at the same time. It will be given the name "TBYYMMDD.TXT" where "YYMMDD" represents the current date. The file will contain a back-up comment stating that it was created by timed back-up and showing the date and time this occurred.

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' function on the File menu in the System module.

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 server 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 "1Office.HDB") to another folder/directory, to avoid mixing things up. Rename it so that you know what it contains.

  2. Delete the database file "1Office.HDB" from the folder or directory with your FirstOffice application. Double-clicking the FirstOffice 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 FirstOffice application. They contain some important data used when setting up the new database and creating new Companies. If this file is missing, your FirstOffice application may not work the way you expect it to do!

  3. As part of the process of creating a new database, a list of text back-up files is shown. To be included in this list, a text 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 FirstOffice application.

    In the list, the filename of each text back-up file is shown together with the date it was saved and any description added when it was created (in the 'Specify Text Backup' window).

  4. 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, FirstOffice will close when the import finishes if the back-up file contains at least one record in the Person register. Restart the program: you are now ready to continue working.
Files whose name contains a space will be shown in the list of back-up files available, but FirstOffice 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. In the System module, choose 'Imports' from the File menu. The 'Imports' window is shown:

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

    FirstOffice 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.

  4. Once you have found the file you want to import (the back-up to which you wish to revert) 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, FirstOffice will close, for reasons of security if the back-up file contains at least one record in the Person register. Restart the program: you are now ready to continue working.

Updating from Previous Versions of FirstOffice

The latest version of FirstOffice is always available at www.hansaworld.com, from where updates should be obtained. If you are online, clicking the [HansaWorld.com] button in the Master Control panel will take you to this site.

Inevitably, new versions of FirstOffice will incorporate significant structural changes. Because of this, it cannot be guaranteed that they will be able to open databases created by previous versions unless you use the export and import functions.

To update, follow these steps:

  1. Before installing the new version, create a database back-up as usual.

  2. Download the new version of FirstOffice in a new folder or directory.

  3. Ensure that the new folder or directory contains the "DBDef.txt" and "Default.txt" files, but not a "1Office.HDB" file. Ensure it also contains a folder or directory named "Backup" which in turn contains the back-up file created in step 1, and that the name of this file has a .txt extension and does not contain any spaces or other non-alphabetic characters.

  4. Copy the "Attach" and "Tmp" folders and their contents from the old FirstOffice folder to the new one. You may not have all of these folders in your installation: if so, copy the ones that you do have and don't worry about those that are missing. Do NOT copy the "Hob" folder.

  5. Launch the new FirstOffice application. A new database is created.

  6. Import the back-up created by the previous version of FirstOffice using the procedure described on the Restoring from a Back-up page.

    For reasons of speed, it is recommended that you back up, restore and update on the server 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.

  7. In multi-user systems, you should now install the new FirstOffice application on all client machines. Repeat steps 2, 3, 4 and 5 above on each machine. If you have any Client Text Backup files, import them to the new databases on the relevant machines as per step 6 above.