Введение
Когда ежедневная работа с HansaWorld завершена, мы советуем вам создать резервные копии. Наилучший вариант - сохранять копии файлов и хранить их в надежном месте. Может показаться, что нет необходимости в том, чтобы производить сохранение резервных копий каждый день, однако, это не занимает много времени, и послужит отличным вложением в будущее – на случай, если что-то произойдет с жестким диском.Данные резервных копий особенно важны для базы данных HansaWorld, содержащей вашу финансовую информацию. Если вы потеряете все свои данные, то можете оказаться в весьма неловкой ситуации в отсутствие всех счетов-фактуры, квитанций, отчетов и т.д. Не забывайте, каждый раз при окончании работы с вашими счетами сохранять резервные копии. Систематизируйте названия копий, указав в них дату, так чтобы можно было легко восстановить базу данных в случае необходимости.
Если на вашем компьютере появился вирус, в первую очередь вы должны попытаться определить дату заражения компьютера. В таком случае, вы должны восстанавливать данные из резервных копий, созданных до даты заражения. Иначе вы подвергнете компьютер риску повторного заражения.
Метод использования резервных копий HansaWorld является быстрым и экономичным. Данные сохраняются как резервные копии, занимающие минимальное количества места, и файлы резервных копий не зависят от версии программы. Конечно, также возможно скопировать файл базы данных, чтобы он находился на жестком диске, но это не так экономично в отношении места, занимаемого на диске, и последующее восстановление может быть неудачным, если версия приложения HansaWorld с момента создания резервных копий менялась.
! | Встроенная функция HansaWorld гарантирует успешное восстановление информации. |
Чтобы создать резервную копию, следуйте данным этапам:
Обычно используется опция «Текстовая копия базы данных», как единственный способ выбрать сохранение резервных копий всей базы данных. Для спокойствия и надежности вы регулярно должны использовать эту опцию. Некоторые регистры и настройки (например, настройки «Конфигураций», «Почта» и «Конференции») сохраняются на уровне базы данных, а не на уровне «Компании». Такие данные не будут экспортированы при помощи опции «Текстовая копия компании», даже если ваша база данных содержит только одну компанию. Опция «Текстовая копия компании» рассчитана на использование в ситуации, когда вам необходимо переместить всю информацию по определенной компании из одной базы данных в другую.
В многопользовательской системе, «Текстовая копия базы данных» не может быть использована на оборудовании с прикладной программой. Ее можно использовать только на серверном оборудовании, когда больше никто из пользователей не подключен к системе. Вначале выберите «Выход, удалив режим автоматической загрузки сервера» из меню «Файл» и перезагрузите HansaWorld. Затем выберите модуль «Система» из меню «Модули». Если работать с сервера неудобно, используйте функцию автоматического регулярного создания резервных копий.
Если сервер не имеет графического интерфейса, вы можете использовать автоматическую функцию регулярного создания резервных копий, или создавать файлы резервных копий путем ввода в «Terminal»:
Рекомендуется хранить файлы резервных копий в папке или директории под названием "Backup", которая должна находится в той же самой папке или директории, что и приложение HansaWorld. Все файлы резервных копий в данной папке будут отображены в списке импортируемых файлов, если будет необходимо восстановить информацию из резервных копий.
Окно сообщения проинформирует вас о состоянии процесса экспорта.
! | Ни при каких обстоятельствах не редактируйте и не меняйте файл резервной копии при помощи другой программы. |
Text Back-ups
The "text back-up" method of backing up will copy the data in your database to a separate back-up file. You will always be able to recreate your database from such a back-up file, even if you have updated the version of your HansaWorld Enterprise application since making the back-up.To create a text back-up file, follow these steps:
Usually, you should use the 'Database Text Backup' 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 Backup' option, even if your database only contains a single Company. Attachments also will not be exported by the 'Company Text Backup' option. This 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 Backup' option on a client machine (it will not be included in the 'Exports' list illustrated in step 2). You can only use it on the server machine, when no other user is logged in and when you access the server database using the GUI application. If it is not convenient to work from the server, use the automatic timed back-up feature from a client.
If you are using the command line server application (Mac OS X or Linux), you can use the automatic timed back-up feature from a client, or you can create a back-up file on the server by typing into the Terminal:
If you are using the service application (Windows), you will need to place the --backup parameter in a "parameters.txt" file before launching the application, as described in the 'Launching the Server with Parameters ' section on the Loading an Existing Database and Company page. When the back-up file is complete, the application will quit (you may need to monitor the log file (named "hansa.log") to see when the application quits). Remove the --backup parameter from the "parameters.txt" file before restarting the application.
It is recommended that you save the back-up file in a folder or directory named "Backup" which should be in the folder or directory containing the HansaWorld Enterprise 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.
A message window informs you about the progress of the export.
! | Under no circumstances should you edit or change a back-up file with another program. |
In this chapter:
Автоматическое регулярное создание резервных копий
Степень важность автоматической функции создания резервных копий не может быть преувеличена, потому что HansaWorld – как и все финансовые системы – работает с единой базой данных, в которой хранятся все ваши данные о клиентах, счетах-фактуры, финансовом регистре и т.д. Если вы теряете этот файл, пропадает не просто один документ, а вся ваша информация по счетам и клиентам.Чтобы упростить процесс сохранения резервных копий, HansaWorld предлагает функцию регулярной копии, таким образом, файл резервной копии базы данных может создаваться автоматически каждый день. Для того чтобы определить, когда должны создаваться файлы резервных копий, и где они должны храниться, следуйте описанным ниже пунктам. В многопользовательской системе, данные действия должны производиться только на серверном оборудовании.
Если работать на сервере не удобно (например, если он не имеет графического интерфейса или находится в другом здании), вы можете работать с прикладной программы. Войдите в систему как сотрудник, имеющий доступ к модулю «Технические параметры» (контролируемый «Группами доступа»).
Если в однопользовательской системе в меню модулей отсутствуют «Технические параметры», это может быть вызвано тем, что вы не предоставили себе доступ к модулю «Сервер» в настройках «Конфигураций».
Следующие примеры иллюстрируют правильную структуру пути для копии. Вы можете использовать либо символ «\», либо «/» в качестве знака разделения между наименованиями папок в Windows, Linux и Mac OS X, в то время как на Mac OS 9 используется символ «:». Обратите внимание, что знак разделения появляется как последний знак в указании пути.
Рекомендуется хранить файлы резервных копий в папке или директории под названием "Backup", которая должна находится в той же самой папке или директории, что и приложение HansaWorld. Все файлы резервных копий в данной папке будут отображены в списке импортируемых файлов, если будет необходимо восстановить информацию из резервных копий. В системах Windows XP, Linux и Mac OS X вы можете осуществить это, используя соответствующий путь:
Remote Back-ups
The timed back-up feature in Enterprise by HansaWorld means that a database text back-up file will be created automatically every day. The remote back-up feature provides additional security by ensuring an extra copy of each daily back-up file will be stored off-site on a remote server. It is always recommended that you store back-up files on more than one hard disk and in more than one location. While you can use the remote back-ups feature as a tool to help with this, you should of course keep your own copies of your back-up files and not rely solely on the remote server.The remote back-ups feature is a chargeable cloud service provided by HansaWorld. Please refer to your local HansaWorld representative for information about pricing and for details about registering for the service.
To start using remote back-ups, follow these steps:
To create a new single-user database, place your Enterprise by HansaWorld application and "hob" folder in a new folder together with the "dbdef.txt" and "default.txt" files and launch the application. When the 'Welcome to HansaWorld' window appears, click the [Single User Database] button and follow the instructions on the Creating a New Database - Single-user page.
In this chapter:
Создание рез.копии, используя спец. программное обеспечение
Как описано здесь, мы настоятельно рекомендуем использовать в качестве основной части создания резервных копий встроенные функции резервных копий HansaWorld. Они более экономичны в отношении места на диске и более надежны в плане успешного восстановления, гарантируемого даже если изменена версия HansaWorld.Тем не менее, возможно, некоторые пользователи предпочтут специализированное программное обеспечение для создания резервных копий, такое как Retrospect. При использовании такого программного обеспечения иногда возникают проблемы в создании файлов резервных копий, если файлы находятся в использовании. Например, если пользователь ушел домой, забыв выйти из системы (или оставив оборудование в процессе создания отчета), создание резервной копии, может произойти неудачно.
Для таких ситуаций в HansaWorld должна находится инструкция по изменению состояния базы данных на не находящееся в использовании, при создании резервных копий. Чтобы осуществить это, произведите следующие действия:
Database Duplication
In some circumstances, it may not be practical to create text back-up files every day using either the back-up facilities built in HansaWorld Enterprise or specialist back-up software. If the database is very large and/or 24-hour access is required, it may not be convenient to slow the speed of operation or to prevent users logging in altogether while back-up files are created. In this situation you can use the database duplication feature to create copies of the database file (the "HANSA.HDB" file) automatically.Remember that you will no longer be able to use an old "HANSA.HDB" file if you have updated the version of your HansaWorld Enterprise application. Therefore, while database duplication can play an important role in your back-up routine, you must still create a text back-up when you are about to update to a new version, and if you want to create an archive copy of your database that you want to be able to read in the future. Updating is described here. You can of course use a script to move the duplicate database to another machine, rename it "HANSA.HDB", start the command line server application and create a text back-up. To create a true back-up, the script should also move the other contents of the folder containing your HansaWorld Enterprise application, especially the "Attach" folder.
If you are using journaling, you must do so in combination with the database duplication feature.
The database duplication feature will create a copy of your database and store it in the folder containing your HansaWorld Enterprise application. This process will result in the following files being created:
Follow these steps to configure the database duplication feature:
If you are also using the Backup option to create a daily text back-up, make sure the text back-up is created at a different time to the copy. They should not be created at the same time.
To change the database copy speed, open the Optional Features setting in the System module and go to the 'Performance' card:
---
In this chapter:
Journaling
A busy system where many users are constantly saving large numbers of records can cause problems for a back-up strategy that relies on a text back-up file being created once a day and/or on copying the database twice a day. The volume of new records means that the text back-up file or database copy quickly becomes out-of-date. If you need to revert to a back-up, it will be difficult and time-consuming if not impossible to recreate the records entered since the text back-up or database copy was made. The journaling feature is designed to address this problem. If you are using this feature, every new record and every modification will be saved in the database and in a separate journal file. If you need to revert to an older copy of the database, you will be able to "apply" the journal. "Applying" the journal means importing the recent new records and modifications to the older copy of the database from the journal file. This will be much faster and more complete than recreating the recent records manually, or extracting them from the damaged database.You must use the journal feature together with the database duplication feature. If your database becomes damaged, you should revert to the most recent (undamaged) duplicate and apply the journal. It is not possible to revert to a text back-up and apply the journal. Therefore, if you are using journaling, you must make sure you are duplicating the database regularly. The text back-up will play a much less important role in your back-up strategy.
The journal file will grow in size very quickly, especially if you import large amounts of data while journaling is running. Therefore, you must take special care to monitor the level of free hard disk on the server if you are using this feature.
---
In this section:
Journaling - Starting Journaling
You can also use the Journaling setting to start journaling in a single-user system.
! | Never move, edit or rename the journal file or the "journal" folder. Make a copy of the journal file if you want to back it up. |
In this section:
Journaling - Applying the Journal
If you need to revert to an old database, follow these steps:Before reverting to this old database, you may wish to check that it does not contain the damage that caused you to revert to it. You must carry out this check using a copy of the "HANSA.HDB.COPY" file and a copy of the "J0000001.HJN" journal file. If you use the "HANSA.HDB.COPY" file itself for this check, you will no longer be able to apply the journal successfully because you will break the synchronicity between the database and the journal. You must not even open the "HANSA.HDB.COPY" file or log in to it, let alone save any records before applying the journal.
To carry out this check, place a copy of the "HANSA.HDB.COPY" database in the folder containing the HansaWorld Enterprise server application and ensure it is named "HANSA.HDB". As this database was created after you started journaling, a "J0000001.HJN" journal file must be present in the "journal" folder when testing. This must be a copy of the journal file, because anything that you save when testing will be added to this file.
! | Make sure you have an untouched "HANSA.HDB" file and journal file at all times. |
! | You must apply the journal immediately after reverting to the copy. If you open the copy and allow users to log in before applying the journal, the data in both the database and the journal file will be corrupted. |
In this section:
Journaling - Managing Journal Files
In a busy system with many users, it is likely that the journal file will grow in size very quickly. To prevent journal files becoming too large, you can use the Journaling setting in the System module to create new journal files periodically. Large journal files, as well as being cumbersome, will increase the time required to apply the journal.To create a new journal file, first open the Journaling setting. The journal file(s) that are currently in the "journal" folder will be listed on the right. In this example, we are still using the first journal file "J0000001.HJN":
It may be that you establish a routine for creating new journal files, for example creating a new one once a week. As you will also be duplicating your database regularly, such a routine will allow you to discard the older journal files, thus ensuring that they do not take up too much hard disk space. The older journal files will become redundant because the work they contain will also be stored in the more recent duplicate databases. But careful management is required, to ensure that you can combine each duplicate database with the required journal files. For example, let us assume you have the following journal files:
Journal File | Date Created |
J0000001.HJN | June 1 |
J0000002.HJN | June 8 |
J0000003.HJN | June 15 |
J0000004.HJN | June 22 |
J0000005.HJN | June 29 |
J0000006.HJN | July 5 |
J0000007.HJN | July 12 |
If the most recent database copy is from July 5, a date on which a new journal file was created, you should assume that "J0000005.HJN" will also be required when you apply the journal, because this may be the "current" journal file for that database. The "current" journal file is the one in which the last record was stored. When you create "J0000006.HJN", "J0000005.HJN" will remain the "current" journal file for the brief period until the next record is saved. This will be saved in "J0000006.HJN", which will then become the "current" journal file. If the database copy was made in the brief period before that record was saved, then "J0000005.HJN" will still be the "current" journal file in that database and so must be present in the "journal" folder when you apply the journal.
When you apply the journal, a message stating that "Current journal file not last file in journal folder J0000XXX.HJN" will be shown in the Terminal (Mac OS X and Linux) and in the log. In this message, "J0000XXX.HJN" is the "current" journal file for the database copy i.e. the earliest journal file that must be present in the "journal" folder. In the example, if you are reverting to a database copy created on July 10, this will be "J0000006.HJN". If "J0000006.HJN" is present in the "journal" folder, the journal will be applied. If it is not present, the journal will not be applied, and the Terminal and log will contain further messages, including "hole detected in journal". You should place "J0000006.HJN" in the "journal" folder and re-apply the journal.
The latest possible version of each journal file must be present in the "journal" folder when you apply the journal. As already mentioned, in the example, if you are reverting to a database copy created on July 10, you will need "J0000006.HJN" and "J0000007.HJN". This means the final version of "J0000006.HJN" as it was on July 12 at the moment that you created "J0000007.HJN", not any copy that you may have created on July 10 at the time of copying the database. A July 10 copy of "J0000006.HJN" will not be complete.
---
In this section:
Восстановление по резервным копиям
Чтобы восстановить информацию по резервным копиям, в первую очередь необходимо создать новую базу данных. Затем импортировать файл резервной копии, используя функцию «Импорт» из меню «Файл» в модуле «Система».Перемещение резервного файла является безопасным процессом, т.е. файл резервной копии не повреждается от процесса чтения. Это означает, что вы можете использовать один и тот же файл резервной копии более одного раза.
FВ целях сохранения скорости процесса, в многопользовательских установках рекомендуется производить восстановление по резервным копиям на серверном оборудовании. Если это невозможно, должна использоваться одна прикладная программа. Если у вас имеются отдельные файлы резервных копий для разных компаний, они должны быть импортированы индивидуально. Если вы будете пытаться импортировать их одновременно, используя другую прикладную программу, данные могут быть утеряны.
! | Очень важно произвести восстановление в новую, пустую базу данных, чтобы избежать путаницы между восстановленными данными и старой поврежденной базой данных. |
Файлы «DBDef.txt» и «Default.txt» всегда должны находится в той же директории/папке, что и приложение HansaWorld. Они содержат важную информацию, используемую при установке новой базы данных и создании новых компаний. Если данный файл отсутствует, возможно, приложение HansaWorld не будет работать должным образом!
В данном списке, имя каждого файла резервной копии отображается вместе с датой создания и любым описание, добавленным при создании (см. этап 4 на данной странице).
В большинстве операционных систем HansaWorld откроет стандартное окно диалога, в котором будет находится список файлов в текущей папке текущего тома. Чтобы найти файл резервной копии, просмотрите список или выберите другую папку или том обычным способом.
Окно сообщения проинформирует вас о состоянии процесса импорта.
The Raw Data Export
If your database somehow becomes damaged while you are using it, you will be prompted to create a Raw Data export. You should do so, using the Raw Data Export function in the System module or, if you are working on the server, by launching the server application with the --rawdata parameter. The Raw Data option exports data in byte order, while the Database Text Backup option exports data in record order, on a register-by-register basis. When a database is damaged, the Raw Data option may create an export file where the Database Text Backup option fails.If you need to revert to a back-up, you should do so in this order of priority:
Do not under any circumstances regard the file created by the Raw Data export as a means of successfully rebuilding your database. Restoration from a Raw Data file is extremely unlikely to produce a useable database. At the very best, use a Raw Data file as a reference to help recreate the data entered since the last successful back-up, as mentioned in points ii and iii above. Due to the method used to create the Raw Data file, and due to the fact that a Raw Data file will be created from a damaged database, it will not contain any user passwords, it is likely that many settings will be missing, it probably will not contain any user accounts, and many records may be missing or incomplete. For example, many records may be missing from the Contact or Transaction registers, and data may be missing from hidden fields in stock transactions, making it impossible to rebuild stock or obtain an accurate stock valuation.
If you need to create a test database from a Raw Data file for use as a reference, use the GUI application to follow these steps:
If the Raw Data file is large, you may prefer to use the command line (Linux or Mac OS X) or service (Windows) application for this step, as the speed benefit will be significant.
! | Never build a "live" database from a Raw Data file! |
In this chapter:
Обновление предыдущих версий HansaWorld
Последняя версия HansaWorld всегда доступна на сайте www.hansaworld.com, откуда должны производиться все обновления. Если вы подключены к сети, щелкнув на кнопку [HansaWorld.com] на панели управления, вы окажетесь на данном сайте.Новые версии неизменно подвергаются значительным структурным изменениям. Поэтому, существует возможность того, что новая версия не сможет открыть базу данных, созданную предыдущими версиями, если не используется функция экспорта и импорта.
Для того, чтобы произвести обновление, осуществите следующие этапы:
В целях сохранения скорости процесса, в многопользовательских установках рекомендуется производить создание резервных копий, восстановление и обновление на серверном оборудовании. Если это невозможно, должна использоваться одна прикладная программа. Если у вас имеются отдельные файлы резервных копий для разных компаний, они должны быть импортированы индивидуально. Если вы будете пытаться импортировать их одновременно, используя другую прикладную программу, данные могут быть утеряны.
Updating to New Versions of Enterprise by HansaWorld - Updating Clients Automatically
When you update to a new version of Enterprise by HansaWorld, you should ensure that you are update to the same new version on the server and on all client machines. If you have many client machines in your network, updating them manually can be a laborious job. To make this task easier, you can use the auto update feature that will cause the version on the client machines to be updated automatically the next time they connect to the server.To configure the auto update feature, follow these steps:
You can find the server's Web Port by opening the Program Mode register in the Technics module and going to the 'Web' card. If you need to specify a Web Port on the server or change the one that is there, you will need to restart the server for the change to take effect.
Folder | For Client | Application Name |
books | Books Mac | Books.app |
hansaraamaosx | HansaRaama Mac (only used in Estonia) | HansaRaama.app |
hansaraamawin | HansaRaama Windows (only used in Estonia) | HansaRaama.EXE |
hansaraamawindowsnet | HansaRaama Windows .Net (only used in Estonia) | HansaRaama.EXE |
linuxxt | Linux XT | HansaWorld |
linuxwine | Linux Wine | HansaWorld.EXE |
macosx | Mac OS X Cocoa | HansaWorld.app |
win98 | Windows 98/NT | HansaWorld.EXE |
wince | Windows CE | HansaWorld.EXE |
windows | Windows 2000/XP | HansaWorld.EXE |
windowsnet | Windows .Net | HansaWorld.EXE |
Run the 'Create Autoupdate Clients' Maintenance function:
The Maintenance function will create separate .ha files for each Client options, saving them in the "clients" folder (for example, "windows.ha", "windowsnet.ha" and "macosx.ha").
Open the Available Client Version setting in the Technics module:
In most cases, it is recommended that you make updates mandatory, as shown in the illustration. This will ensure that all client machines are using the same version.
If the new version contains structural changes compared to the old, the update will be set as mandatory automatically, irrespective of the field that you use in this setting.
The version number of the server will be shown in the Terminal window when you launch the server and will be written to the log file at the same time.
In this chapter:
Updating to New Versions of Enterprise by HansaWorld - Major Updates
Listed below are some major revisions that have been made to Enterprise by HansaWorld. When you update for the first time to a version that contains one of these revisions, you will need to update your data, usually by running a Maintenance function.Version | Revision | More Information |
3.8 | Assets module: Fixed Asset register replaced by Asset register | Description of Export to new Fixed Assets Module function |
4.1 | Customers and Suppliers combined into a single register | Combining Customers and Suppliers page |
4.1 | Definition of Key Financial Ratio and VAT Reports: change in syntax used in formulae | Defining Key Financial Ratios page |
5.0 | Customers/Suppliers and Contact Persons combined into a single register | Combining Customers and Contact Persons page |
5.1 | Stock module rewritten | Description of Rebuild Stock function |
5.3 070723 | Change in naming convention for attached files | Point 2iii above (update is automatic, requiring no user intervention) |
6.1 090510 | Currency added to Job Costing module | Use the 'Change Project Currency' Maintenance function in the Job Costing module to add Currencies to existing Projects |
In this chapter: