Translation

type: Content of: <section><section><para><screen>
linux:/opt/otrs# cd scripts/
linux:/opt/otrs/scripts# ./backup.pl --help
backup.pl - backup script
Copyright (C) 2001-2021 OTRS AG, https://otrs.com/
usage: backup.pl -d /data_backup_dir/ [-c gzip|bzip2] [-r 30] [-t fullbackup|nofullbackup|dbonly]
linux:/opt/otrs/scripts#
273/2730
Context English Chinese (Simplified) State
<graphic fileref="screenshots/administration/dynamicfields/dynamicfields-userpreferences.png" scalefit="1" width="100%" contentdepth="100%"></graphic> <graphic fileref="screenshots/administration/dynamicfields/dynamicfields-userpreferences.png" scalefit="1" width="100%" contentdepth="100%"></graphic>
A dynamic field is a special kind of field in OTRS, created to extend the information stored on a ticket or article. These fields are not fixed in the system and they can appear only in specific screens, they can be mandatory or not, and their representation in the screens depends on the field type defined at their creation time according to the data to be held by the field. For example, there are fields to hold a text, a date, a selection of items, etc. 动态字段是OTRS中一种特殊种类的字段,创建来扩展信息,存储在工单或信件中。这些字段不是固定在系统中的,它们可能仅在特定的屏幕中出现,它们可以是必填的或可选的,它们在屏幕中的呈现方式取决于创建时根据该字段存储的数据定义的字段类型。例如,存储一行文本、一个日期、一个选择项等等的动态字段。
Dynamic fields are the evolution of TicketFreeText, TicketFreeKey, TicketFreeTime, ArticleFreeText and ArticleFreeKey fields that where commonly used in OTRS 3.0 and before. The limitation of these "Free Fields" was that they can be defined up to 16 (text or dropdown) fields and 6 time fields for a ticket and 3 (text or dropdown) fields for each article only, not more. 动态字段是由TicketFreeText(工单自定义文本)、TicketFreeKey(工单自定义键)、TicketFreeTime(工单自定义时间)、ArticleFreeText(信件自定义文本)和ArticleFreeKey(信件自定义键)字段(一般在OTRS 3.0之前中使用)演变而来。这些“自定义字段”的限制是:一个工单最多定义16个(文本或下拉)字段和6个时间字段,每个信件3个(文本或下拉)字段,不能更多。
Now with dynamic fields the limitation in the number of fields per ticket or article is removed, you can create as many dynamic fields you like either for ticket or articles. And beyond that, the framework behind the dynamic fields is prepared to handle custom fields for other objects rather than just ticket and articles. 现在使用动态字段后每个工单或信件的这种字段数量限制被移除了,你可以为工单或信件创建想要的任意数量的动态字段。除此之外,动态字段背后的框架已经准备好处理其它对象的定制字段了,而不仅仅是工单和信件。
This new framework that handles the dynamic fields is build using a modular approach, where each kind of dynamic field can be seen as a plug-in module for the framework. This means that the variety of dynamic fields can be easily extended by public OTRS modules, OTRS Feature Add-ons, OTRS custom developments, and other custom developments. 这个新的处理动态字段的框架使用了模块化方法来构建,每种动态字段可以被看作是这个框架的插件模块。这意味着通过公共的OTRS模块、OTRS功能插件、OTRS定制开发和其它定制开发,可以轻易扩展大量的动态字段。
The following dynamic field types are included with this release: 这个版本包括了下列动态字段类型:
Text (one line of text) 文本(一行文本)
Textarea (multiple lines of text) 多行文本(多行文本)
Dropdown (single choice, multiple values) 下拉列表框(单个选择,多个值)
Multiselect (multiple choice, multiple values) 多选框(多个选择,多个值)
Backing Up the System 备份系统
This chapter describes the backup and restore of the OTRS data. 本章描述了ORTS数据的备份和恢复。
Backup 备份
There are two types of data to backup: application files (e.g. the files in <filename>/opt/otrs</filename>), and the data stored in the database. 有两种类型的数据需要备份:应用程序文件(如<filename>/opt/otrs</filename>目录下的文件)和存储在数据库中的数据。
To simplify backups, the script <filename>scripts/backup.pl</filename> is included with every OTRS installation. It can be run to backup all important data (see Script below). 为了简化备份,在每个OTRS安装中已经包括了脚本<filename>scripts/backup.pl</filename>。运行它可以备份所有重要的数据(见下面的脚本)。
linux:/opt/otrs# cd scripts/
linux:/opt/otrs/scripts# ./backup.pl --help
backup.pl - backup script
Copyright (C) 2001-2021 OTRS AG, https://otrs.com/
usage: backup.pl -d /data_backup_dir/ [-c gzip|bzip2] [-r 30] [-t fullbackup|nofullbackup|dbonly]
linux:/opt/otrs/scripts#
linux:/opt/otrs# cd scripts/
linux:/opt/otrs/scripts# ./backup.pl --help
backup.pl - backup script
Copyright (C) 2001-2020 OTRS AG, https://otrs.com/
usage: backup.pl -d /data_backup_dir/ [-c gzip|bzip2] [-r 30] [-t fullbackup|nofullbackup|dbonly]
linux:/opt/otrs/scripts#
<emphasis>Script: Getting help about the OTRS backup mechanism.</emphasis> <emphasis>脚本:获取关于OTRS备份机制的帮助。</emphasis>
Execute the command specified in the script below to create a backup: 执行下面脚本中指定的命令来创建一个备份:
linux:/opt/otrs/scripts# ./backup.pl -d /backup/
Backup /backup//2010-09-07_14-28/Config.tar.gz ... done
Backup /backup//2010-09-07_14-28/Application.tar.gz ... done
Dump MySQL rdbms ... done
Compress SQL-file... done
linux:/opt/otrs/scripts#
linux:/opt/otrs/scripts# ./backup.pl -d /backup/
Backup /backup//2010-09-07_14-28/Config.tar.gz ... done
Backup /backup//2010-09-07_14-28/Application.tar.gz ... done
Dump MySQL rdbms ... done
Compress SQL-file... done
linux:/opt/otrs/scripts#
<emphasis>Script: Creating a backup.</emphasis> <emphasis>脚本:创建一个备份。</emphasis>
All data was stored in the directory <filename>/backup/2010-09-07_14-28/</filename> (see Script below). Additionally, the data was saved into a .tar.gz file. 所有数据都保存在目录<filename>/backup/2010-09-07_14-28/</filename>下(见下面的脚本)。另外,这些数据被保存到一个.tar.gz文件。
linux:/opt/otrs/scripts# ls /backup/2010-09-07_14-28/
Application.tar.gz Config.tar.gz DatabaseBackup.sql.gz
linux:/opt/otrs/scripts#
linux:/opt/otrs/scripts# ls /backup/2010-09-07_14-28/
Application.tar.gz Config.tar.gz DatabaseBackup.sql.gz
linux:/opt/otrs/scripts#
<emphasis>Script: Checking the backup files.</emphasis> <emphasis>脚本:检查备份文件。</emphasis>
Restore 恢复
To restore a backup, the saved application data has to be written back into the installation directory, e.g. <filename>/opt/otrs</filename>. Also the database has to be restored. 要恢复一个备份,保存的应用程序数据必须被写回到安装目录,如<filename>/opt/otrs</filename>。还必须要恢复数据库。
A script <filename>scripts/restore.pl</filename> (see Script below), which simplifies the restore process, is shipped with every OTRS installation. It supports MySQL and PostgreSQL. 每个OTRS安装都自带了一个脚本文件<filename>scripts/restore.pl</filename>(见下面的脚本),它简化了恢复过程,支持MySQL和PostgreSQL。
linux:/opt/otrs/scripts# ./restore.pl --help
restore.pl - restore script
Copyright (C) 2001-2021 OTRS AG, https://otrs.com/
usage: restore.pl -b /data_backup/&lt;TIME&gt;/ -d /opt/otrs/
linux:/opt/otrs/scripts#
linux:/opt/otrs/scripts# ./restore.pl --help
restore.pl - restore script
Copyright (C) 2001-2020 OTRS AG, https://otrs.com/
usage: restore.pl -b /data_backup/&lt;TIME&gt;/ -d /opt/otrs/
linux:/opt/otrs/scripts#
<emphasis>Script: Getting help about the restore mechanism.</emphasis> <emphasis>脚本:获取关于OTRS恢复机制的帮助。</emphasis>
Data that is stored, for example, in the directory <filename>/backup/2010-09-07_14-28/</filename>, can be restored with the command specified in the script below, assuming the OTRS installation is at <filename>/opt/otrs</filename>. 例如:数据保存在目录<filename>/backup/2010-09-07_14-28/</filename>下,可以使用下面脚本中指定的命令来恢复,假定OTRS安装在<filename>/opt/otrs</filename>目录。
linux:/opt/otrs/scripts# ./restore.pl -b /backup/2010-09-07_14-28 -d /opt/otrs/
Restore /backup/2010-09-07_14-28//Config.tar.gz ...
Restore /backup/2010-09-07_14-28//Application.tar.gz ...
create MySQL
decompresses SQL-file ...
cat SQL-file into MySQL database
compress SQL-file...
linux:/opt/otrs/scripts#
linux:/opt/otrs/scripts# ./restore.pl -b /backup/2010-09-07_14-28 -d /opt/otrs/
Restore /backup/2010-09-07_14-28//Config.tar.gz ...
Restore /backup/2010-09-07_14-28//Application.tar.gz ...
create MySQL
decompresses SQL-file ...
cat SQL-file into MySQL database
compress SQL-file...
linux:/opt/otrs/scripts#
<emphasis>Script: Restoring OTRS data.</emphasis> <emphasis>脚本:恢复OTRS数据。</emphasis>

Loading…

No matching activity found.

Browse all component changes

Glossary

English Chinese (Simplified)
No related strings found in the glossary.

Source information

Source string comment
type: Content of: <section><section><para><screen>
Flags
ignore-same, no-wrap
Source string location
en/content/administration/backup-and-restore.xml:25
String age
10 months ago
Source string age
10 months ago
Translation file
i18n/doc-admin.zh_CN.po, string 2267