Database maintenance

数据库维护

  1. Set password(设置密码)

    Database password is used to protect database from unauthorized access. Within v7.x, database password only applies to data newly added into the database, and is unchangeable once it's been set; so, it's recommended to set a password as soon as the database is created, if you need a password-protected database.

    数据库密码可以用来保护数据库被非授权读取。在myBase v7.x中,只有密码被添加后,新添加的数据才会被见,而且数据库密码一旦设置好,就不能再更改。 如果需要使用加密的数据库,那么建议您在创建数据库后马上进行设置。

    To set a password for the current database, please select [File - Maintenance - Set password] menu item.

    可以通过菜单【文件 - 维护 - 设置密码】进行密码设置。

    If for any reason you'd like to change a database password, please try to replicate the database into a new database, by selecting the [File - Maintenance - Replicate database ...] menu item, that allows you to set a new password for the replication database.

    如须修改密码,则需将整个数据库复制为另一个新的数据库,使用菜单 【文件 - 维护 - 复制数据库】 这个工具, 即可为新数据库设置不同的密码。

  2. Undelete info items and files(恢复删除项)

    Any changes to the item content produces a new revision and trashes the previous revision into the recycle bin; Deleting an info item (branch) also trashes the item into the recycle bin. That's to say, we have a chance to undelete and retrieve the transhed entries if needed.

    每当编辑信息条目内容时,就会生成一个新的修订版本,而之前的版本会移入回收站;同样,如果删除节点或分支,它们也会被移入回收站,所以当需要的时候您可以把这些删除或改变的节点、文本恢复。

    To undelete trashed entries, please select the [File - Maintenance - Undelete items] menu item, then select the desired entries to undelete.

    您可以通过菜单【文件 - 维护 - 恢复删除项】打开这个工具,在弹出的窗口您可以选择需要恢复的项目。

    Note that the trashed entries will be preserved till you run the [File - Maintenance - Empty recyle bin] utility; In addition, the [File - Maintenance - Replicate database ...] utility doesn't replicate trashed entries, so the new replication databases won't contain any trashed entries;

    需要注意的是如果运行了【文件 - 维护 - 清空回收站】,那么被删除的条目则会被清除而无法恢复。另外,【文件 - 维护 - 复制数据库】并不会复制已删除项目。

  3. Optimize for size(优化数据库文件大小)

    myBase by default stores all outdated revisions and trashed entities within the database. This may waste some disk space and may bloat the .nyf database file. If you'd want to optimize database for size, please first select the [File - Maintenance - Empty recyle bin] menu item to wipe off the trashed entries, and then select the [File - Maintenance - Optimize for size] menu item to eliminate fragments from within the .nyf database file. After this operation, all trashed entries are wiped off permanently.

    默认情况下myBase会在回收站保留所有的过期的版本和删除的节点。虽然内置的压缩引擎会压缩数据库,但这样仍然有可能会浪费磁盘空间并使nyf数据库增大。 如果你想优化数据库的大小,您可以先通过【文件 - 维护 - 清空回收站】把回收站清空,然后再执行【文件 - 维护 - 优化数据库】以消除nyf数据库文件的碎片。执行以上操作后,回收站的数据将被彻底删除。

  4. Backup database(备份数据库)

    It's highly recommended to periodically create backup for important databases or simply enable the Auto-backup option in case of file corruption or disk failure.

    强烈建议您对每个数据库进行备份,或者通过自动备份来保护重要的数据。

    To manually create a backup for the currently working database, please select the [File - Maintenance - Create backup] menu item, then you can customize the file path and file name for the backup file.

    可以通过【文件 - 维护 - 备份数据库】进行手动备份。

    To schedule Auto-backup on loading databases or on database maintenance operations, please select the [View - Options] menu item, then you can enable the Auto-backup by checking the 'Create backup on ...' options under the 'Backup' tab.

    如需设置自动备份,可以通过菜单【查看 - 选项 - 备份】进行设置。

    In addition to the inbuilt backup utilities and options, you can also create backups by simply duplicating the .nyf files within the local file system, as all your information is stored in the .nyf database files.

    另外您也可以直接手动对nyf数据库文件进行复制以到达备份的目的。

  5. Replicate database(复制数据库)

    The [File - Maintenance - Replicate database...] utility replicates the current database to a new one that allows to set a new password.

    菜单【文件 - 维护 - 复制数据库】工具可以用来复制当前数据库到一个新的数据库,同时也可用于改变加密数据库的密码。

    This utility ignores trashed entries while replicating a database, consequently, the new replication database contains no revision history records available.

    本工具不会复制已删除项目,所以新的数据库不会包含历史版本的相关信息。

    The new replication database is automactically done with size optimization, so it is useful when you want to eliminate space fragment and make the database file size compact.

    另外通过复制数据库后,新的数据库文件大小也会被自动优化,所以如果您想减少数据库空间碎片或者压缩文件大小,也可使用此工具。

  6. Recover database(修复数据库)

    The [File - Maintenance - Recover database...] utility invokes the command line tool "ssg5recover" to recover database from a given corrupted .nyf file. The command line tool is not shipped within the setup package, you'll need to download it separately from on the webpage;

    菜单【文件 - 维护 - 修复数据库】通过使用命令行工具ssg5recover测试修复损坏的.nyf数据库文件。需要注意的是ssg5recover命令行工具需要事先从网页下载才可使用。

  7. Compression level(设置压缩级别)

    The [File - Maintenance - Set compression level ...] utility is used to adjust the compression level for the current database. You can set the compression level to a number from 0 to 9; "9" stands for maximum compression ratio of data, "1" for minimum compression ratio but with a higher performance, while "0" simple disables the integrated Zlib compression algorithm.

    菜单【文件 - 维护 - 设置压缩级别】可以用来调整当前数据库的压缩级别。级别可以为0到9级,9代表最高级别压缩,1代表最低级别压缩,0则是无压缩。

    Note that changes to the compression level only apply to data newly added to the database.

    需要注意的是压缩级别的修改只对新加入数据库的数据生效。