diff --git a/.translation-cache/Securing_and_compacting_a_table/Backup_and_restore.md.json b/.translation-cache/Securing_and_compacting_a_table/Backup_and_restore.md.json deleted file mode 100644 index 8c93ca0aae..0000000000 --- a/.translation-cache/Securing_and_compacting_a_table/Backup_and_restore.md.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "9bee27530968dd923432631728a138dd2f9653dc35f3f5bb3d3bec5bedb81da4": { - "original": "To start a restore job, run `manticore-backup` with the flag `--restore=backup name`, where `backup name` is the name of the backup directory within the `--backup-dir`. Note that:\n1. There can't be any Manticore instance running on the same host and port as the one being restored.\n2. The old `manticore.json` file must not exist.\n3. The old configuration file must not exist.\n4. The old data directory must exist and be empty.\n\nIf all conditions are met, the restore will proceed. The tool will provide hints, so you don't have to memorize them. It's crucial to avoid overwriting existing files, so make sure to remove them prior to the restore if they still exist. Hence all the conditions.\n\n\nCODE_BLOCK_11\n\n\n\nCODE_BLOCK_12\n\n\n\n## Backup and restore with mysqldump\n\nManticore supports `mysqldump` utility from MySQL up to 9.5 and `mariadb-dump` utility from MariaDB up to 12.1.\n\n\n\n> NOTE: some versions of `mysqldump` / `mariadb-dump` require [Manticore Buddy](../Installation/Manticore_Buddy.md). If the dump isn't working, make sure Buddy is installed.\n\nTo create a backup of your Manticore Search database, you can use the `mysqldump` command. We will use the default port and host in the examples.\n\nNote, `mysqldump` is supported only for real-time tables.\n\n\nCODE_BLOCK_13\n\nExecuting this command will produce a backup file named `manticore_backup.sql`. This file will hold all data and table schemas.\n\n\nCODE_BLOCK_14\n\nThis will produce a backup file `tbl.sql` with `replace` commands instead of `insert`, with column names retained in each batch. Documents will be batched up to 16 megabytes large. There will be no `drop`/`create table` commands. This is useful for full-text reindexation after changing tokenization settings.\n\n\nCODE_BLOCK_15\n\nIn this case, `mysqldump` will generate commands like `REPLACE INTO cluster:table ...`, which will be sent directly to the Manticore instance, resulting in the documents being reinserted.\nUse the `cluster` user and the `-t` flag to enable replication mode. See the details in the notes below.\n\n\n\n\n### Restore\n\nIf you're looking to restore a Manticore Search database from a backup file, the mysql client is your tool of choice.\n\nNote, if you are restoring in [Plain mode](../Read_this_first.md#Real-time-mode-vs-plain-mode), you cannot drop and recreate tables directly. Therefore, you should:\n- Use `mysqldump` with the `-t` option to exclude `CREATE TABLE` statements from your backup.\n- Manually [TRUNCATE](../Emptying_a_table.md) the tables before proceeding with the restoration.\n\n\nCODE_BLOCK_16\n\nThis command enables you to restore everything from the `manticore_backup.sql` file.\n\n\n### Additional options\n\nHere are some more settings that can be used with mysqldump to tailor your backup:\n\n- `-t` skips `drop`/`create` table commands. Useful for full-text reindexation of a table after changing tokenization settings.\n- `--no-data`: This setting omits table data from the backup, resulting in a backup file that consists only of table schemas.\n- `--ignore-table=[database_name].[table_name]`: This option allows you to bypass a particular table during the backup operation. Note that the database name must be `manticore`.\n- `--replace` to perform `replace` instead of `insert`. Useful for full-text reindexation of a table after changing tokenization settings.\n- `--net-buffer-length=16M` to make batches up to 16 megabytes large for faster restoration.\n- `-e` to batch up documents. Useful for faster restoration.\n- `-c` to keep column names. Useful for reindexation of a table after changing its schema (e.g., changing field order).\n\nFor a comprehensive list of settings and their thorough descriptions, kindly refer to the official [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html) or [MariaDB documentation](https://mariadb.com/kb/en/mariadb-dump/).\n\n### Notes\n\n* To create a dump in replication mode (where the dump includes `INSERT/REPLACE INTO :`):\n - Make sure the table isn't changed while it's being dumped.\n - Use the `cluster` user. For example: `mysqldump -u cluster ...` or `mariadb-dump -u cluster ...`. You can change the username that enables replication mode for `mysqldump` by running `SET GLOBAL cluster_user = new_name`.\n - Use the `-t` flag.\n - Use the `--skip-lock-tables` flag.\n - When specifying a table in replication mode, you need to follow the `cluster_name:table_name` syntax. For example: `mysqldump -P9306 -h0 -t -ucluster manticore cluster:tbl`.\n* It's recommended to explicitly specify the `manticore` database when you plan to back up all databases, instead of using the `--all-databases` option.\n* Note that `mysqldump` does not support backing up distributed tables and cannot back up tables containing non-stored fields. For such cases, consider using `manticore-backup` or the `BACKUP` SQL command. If you have distributed tables, it is recommended to always specify the tables to be dumped.\n\n\n", - "translations": { - "chinese": "\u8981\u542f\u52a8\u6062\u590d\u4efb\u52a1\uff0c\u8bf7\u8fd0\u884c\u5e26\u6709 `--restore=backup name` \u6807\u5fd7\u7684 `manticore-backup`\uff0c\u5176\u4e2d `backup name` \u662f `--backup-dir` \u76ee\u5f55\u4e0b\u7684\u5907\u4efd\u6587\u4ef6\u5939\u540d\u79f0\u3002\u8bf7\u6ce8\u610f\uff1a\n1. \u5728\u88ab\u6062\u590d\u7684\u540c\u4e00\u4e3b\u673a\u548c\u7aef\u53e3\u4e0a\uff0c\u4e0d\u80fd\u6709\u4efb\u4f55 Manticore \u5b9e\u4f8b\u6b63\u5728\u8fd0\u884c\u3002\n2. \u65e7\u7684 `manticore.json` \u6587\u4ef6\u4e0d\u5f97\u5b58\u5728\u3002\n3. \u65e7\u7684\u914d\u7f6e\u6587\u4ef6\u4e0d\u5f97\u5b58\u5728\u3002\n4. \u65e7\u7684\u6570\u636e\u76ee\u5f55\u5fc5\u987b\u5b58\u5728\u4e14\u4e3a\u7a7a\u3002\n\n\u5982\u679c\u6240\u6709\u6761\u4ef6\u90fd\u6ee1\u8db3\uff0c\u6062\u590d\u5c06\u7ee7\u7eed\u3002\u8be5\u5de5\u5177\u4f1a\u63d0\u4f9b\u63d0\u793a\uff0c\u6240\u4ee5\u60a8\u4e0d\u5fc5\u8bb0\u4f4f\u6240\u6709\u7ec6\u8282\u3002\u907f\u514d\u8986\u76d6\u5df2\u6709\u6587\u4ef6\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u6b64\u5982\u679c\u8fd9\u4e9b\u6587\u4ef6\u4ecd\u7136\u5b58\u5728\uff0c\u8bf7\u5148\u5c06\u5176\u5220\u9664\u3002\u56e0\u6b64\u6709\u4ee5\u4e0a\u6240\u6709\u6761\u4ef6\u8981\u6c42\u3002\n\n\nCODE_BLOCK_11\n\n\n\nCODE_BLOCK_12\n\n\n\n## \u4f7f\u7528 mysqldump \u5907\u4efd\u548c\u6062\u590d\n\nManticore \u652f\u6301 MySQL \u4e2d\u7684 `mysqldump` \u5de5\u5177\u5230 9.5 \u7248\u672c\u4ee5\u53ca MariaDB \u7684 `mariadb-dump` \u5de5\u5177\u5230 12.1 \u7248\u672c\u3002\n\n\n\n> \u6ce8\u610f\uff1a\u67d0\u4e9b\u7248\u672c\u7684 `mysqldump` / `mariadb-dump` \u9700\u8981\u5b89\u88c5 [Manticore Buddy](../Installation/Manticore_Buddy.md)\u3002\u5982\u679c\u8f6c\u50a8\u64cd\u4f5c\u4e0d\u6210\u529f\uff0c\u8bf7\u786e\u4fdd\u5df2\u5b89\u88c5 Buddy\u3002\n\n\u8981\u521b\u5efa Manticore Search \u6570\u636e\u5e93\u7684\u5907\u4efd\uff0c\u53ef\u4ee5\u4f7f\u7528 `mysqldump` \u547d\u4ee4\u3002\u4ee5\u4e0b\u793a\u4f8b\u4e2d\u5c06\u4f7f\u7528\u9ed8\u8ba4\u7aef\u53e3\u548c\u4e3b\u673a\u3002\n\n\u8bf7\u6ce8\u610f\uff0c`mysqldump` \u4ec5\u652f\u6301\u5b9e\u65f6\u8868\u3002\n\n\nCODE_BLOCK_13\n\n\u6267\u884c\u6b64\u547d\u4ee4\u5c06\u751f\u6210\u540d\u4e3a `manticore_backup.sql` \u7684\u5907\u4efd\u6587\u4ef6\u3002\u8be5\u6587\u4ef6\u5305\u542b\u6240\u6709\u6570\u636e\u548c\u8868\u7ed3\u6784\u3002\n\n\nCODE_BLOCK_14\n\n\u8fd9\u5c06\u751f\u6210\u4e00\u4e2a\u540d\u4e3a `tbl.sql` \u7684\u5907\u4efd\u6587\u4ef6\uff0c\u5176\u4e2d\u4f7f\u7528 `replace` \u547d\u4ee4\u4ee3\u66ff `insert`\uff0c\u5e76\u5728\u6bcf\u4e2a\u6279\u6b21\u4e2d\u4fdd\u7559\u5217\u540d\u3002\u6587\u6863\u5c06\u6279\u5904\u7406\u4e3a\u6700\u5927 16 \u5146\u5b57\u8282\u5927\u5c0f\u3002\u4e0d\u4f1a\u6709 `drop`/`create table` \u547d\u4ee4\u3002\u8fd9\u5bf9\u4e8e\u66f4\u6539\u5206\u8bcd\u8bbe\u7f6e\u540e\u8fdb\u884c\u5168\u6587\u91cd\u5efa\u7d22\u5f15\u975e\u5e38\u6709\u7528\u3002\n\n\nCODE_BLOCK_15\n\n\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c`mysqldump` \u4f1a\u751f\u6210\u8bf8\u5982 `REPLACE INTO cluster:table ...` \u7684\u547d\u4ee4\uff0c\u8fd9\u4e9b\u547d\u4ee4\u4f1a\u76f4\u63a5\u53d1\u9001\u5230 Manticore \u5b9e\u4f8b\uff0c\u4ece\u800c\u91cd\u65b0\u63d2\u5165\u6587\u6863\u3002\n\u4f7f\u7528 `cluster` \u7528\u6237\u548c `-t` \u6807\u5fd7\u4ee5\u542f\u7528\u590d\u5236\u6a21\u5f0f\u3002\u8be6\u7ec6\u4fe1\u606f\u89c1\u4e0b\u65b9\u6ce8\u91ca\u3002\n\n\n\n\n### \u6062\u590d\n\n\u5982\u679c\u60a8\u60f3\u8981\u4ece\u5907\u4efd\u6587\u4ef6\u6062\u590d Manticore Search \u6570\u636e\u5e93\uff0cmysql \u5ba2\u6237\u7aef\u662f\u60a8\u7684\u9996\u9009\u5de5\u5177\u3002\n\n\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u60a8\u5728[\u7eaf\u6a21\u5f0f](../Read_this_first.md#Real-time-mode-vs-plain-mode)\u4e0b\u6062\u590d\uff0c\u5219\u4e0d\u80fd\u76f4\u63a5\u5220\u9664\u5e76\u91cd\u5efa\u8868\u3002\u56e0\u6b64\uff0c\u60a8\u5e94\u5f53\uff1a\n- \u4f7f\u7528\u5e26 `-t` \u9009\u9879\u7684 `mysqldump` \u4ee5\u4ece\u5907\u4efd\u4e2d\u6392\u9664 `CREATE TABLE` \u8bed\u53e5\u3002\n- \u5728\u7ee7\u7eed\u6062\u590d\u4e4b\u524d\uff0c\u624b\u52a8[TRUNCATE](../Emptying_a_table.md)\u8868\u3002\n\n\nCODE_BLOCK_16\n\n\u6b64\u547d\u4ee4\u4f7f\u60a8\u80fd\u591f\u4ece `manticore_backup.sql` \u6587\u4ef6\u4e2d\u6062\u590d\u6240\u6709\u5185\u5bb9\u3002\n\n\n### \u989d\u5916\u9009\u9879\n\n\u4ee5\u4e0b\u662f\u4e00\u4e9b\u53ef\u4ee5\u4e0e mysqldump \u4e00\u8d77\u4f7f\u7528\u4ee5\u5b9a\u5236\u5907\u4efd\u7684\u66f4\u591a\u8bbe\u7f6e\uff1a\n\n- `-t` \u8df3\u8fc7 `drop`/`create` \u8868\u547d\u4ee4\u3002\u5bf9\u66f4\u6539\u5206\u8bcd\u8bbe\u7f6e\u540e\u8fdb\u884c\u5168\u6587\u91cd\u5efa\u7d22\u5f15\u975e\u5e38\u6709\u7528\u3002\n- `--no-data`\uff1a\u6b64\u8bbe\u7f6e\u5c06\u5ffd\u7565\u8868\u6570\u636e\uff0c\u53ea\u5907\u4efd\u8868\u7ed3\u6784\u3002\n- `--ignore-table=[database_name].[table_name]`\uff1a\u6b64\u9009\u9879\u5141\u8bb8\u5728\u5907\u4efd\u65f6\u8df3\u8fc7\u7279\u5b9a\u8868\u3002\u6ce8\u610f\u6570\u636e\u5e93\u540d\u79f0\u5fc5\u987b\u4e3a `manticore`\u3002\n- `--replace` \u4f7f\u7528 `replace` \u66ff\u4ee3 `insert`\u3002\u5bf9\u66f4\u6539\u5206\u8bcd\u8bbe\u7f6e\u540e\u5168\u6587\u91cd\u5efa\u7d22\u5f15\u975e\u5e38\u6709\u7528\u3002\n- `--net-buffer-length=16M` \u5c06\u6279\u5904\u7406\u5927\u5c0f\u8c03\u6574\u4e3a\u6700\u591a 16 \u5146\u5b57\u8282\uff0c\u4ee5\u52a0\u5feb\u6062\u590d\u901f\u5ea6\u3002\n- `-e` \u7528\u4e8e\u6279\u5904\u7406\u6587\u6863\u3002\u52a0\u901f\u6062\u590d\u3002\n- `-c` \u4fdd\u7559\u5217\u540d\u79f0\u3002\u5728\u66f4\u6539\u8868\u67b6\u6784\uff08\u4f8b\u5982\u5b57\u6bb5\u987a\u5e8f\u6539\u53d8\uff09\u540e\u91cd\u5efa\u7d22\u5f15\u65f6\u5f88\u6709\u7528\u3002\n\n\u6b32\u4e86\u89e3\u8bbe\u7f6e\u7684\u5b8c\u6574\u5217\u8868\u53ca\u8be6\u7ec6\u8bf4\u660e\uff0c\u8bf7\u53c2\u9605\u5b98\u65b9\u7684 [MySQL \u6587\u6863](https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html) \u6216 [MariaDB \u6587\u6863](https://mariadb.com/kb/en/mariadb-dump/)\u3002\n\n### \u6ce8\u91ca\n\n* \u521b\u5efa\u590d\u5236\u6a21\u5f0f\u7684\u8f6c\u50a8\uff08\u8f6c\u50a8\u5305\u62ec `INSERT/REPLACE INTO :`\uff09\u65f6\uff1a\n - \u786e\u4fdd\u5728\u8f6c\u50a8\u8fc7\u7a0b\u4e2d\u8868\u672a\u88ab\u66f4\u6539\u3002\n - \u4f7f\u7528 `cluster` \u7528\u6237\u3002\u4f8b\u5982\uff1a`mysqldump -u cluster ...` \u6216 `mariadb-dump -u cluster ...`\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u6267\u884c `SET GLOBAL cluster_user = new_name` \u6765\u66f4\u6539\u542f\u7528\u590d\u5236\u6a21\u5f0f\u7684 `mysqldump` \u7528\u6237\u540d\u3002\n - \u4f7f\u7528 `-t` \u6807\u5fd7\u3002\n - \u4f7f\u7528 `--skip-lock-tables` \u6807\u5fd7\u3002\n - \u5728\u590d\u5236\u6a21\u5f0f\u4e0b\u6307\u5b9a\u8868\u65f6\uff0c\u9700\u4f7f\u7528 `cluster_name:table_name` \u8bed\u6cd5\u3002\u4f8b\u5982\uff1a`mysqldump -P9306 -h0 -t -ucluster manticore cluster:tbl`\u3002\n* \u5efa\u8bae\u5728\u8ba1\u5212\u5907\u4efd\u6240\u6709\u6570\u636e\u5e93\u65f6\u660e\u786e\u6307\u5b9a `manticore` \u6570\u636e\u5e93\uff0c\u800c\u4e0d\u662f\u4f7f\u7528 `--all-databases` \u9009\u9879\u3002\n* \u6ce8\u610f\uff0c`mysqldump` \u4e0d\u652f\u6301\u5907\u4efd\u5206\u5e03\u5f0f\u8868\uff0c\u4e5f\u4e0d\u80fd\u5907\u4efd\u5305\u542b\u975e\u5b58\u50a8\u5b57\u6bb5\u7684\u8868\u3002\u5bf9\u4e8e\u8fd9\u4e9b\u60c5\u51b5\uff0c\u5efa\u8bae\u4f7f\u7528 `manticore-backup` \u6216\u8005 `BACKUP` SQL \u547d\u4ee4\u3002\u5982\u679c\u60a8\u6709\u5206\u5e03\u5f0f\u8868\uff0c\u63a8\u8350\u59cb\u7ec8\u6307\u5b9a\u8981\u8f6c\u50a8\u7684\u8868\u3002\n\n", - "russian": "\u0427\u0442\u043e\u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 `manticore-backup` \u0441 \u0444\u043b\u0430\u0433\u043e\u043c `--restore=\u0438\u043c\u044f_\u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439_\u043a\u043e\u043f\u0438\u0438`, \u0433\u0434\u0435 `\u0438\u043c\u044f_\u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439_\u043a\u043e\u043f\u0438\u0438` \u2014 \u044d\u0442\u043e \u0438\u043c\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 `--backup-dir`. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e:\n1. \u041d\u0430 \u0442\u043e\u043c \u0436\u0435 \u0445\u043e\u0441\u0442\u0435 \u0438 \u043f\u043e\u0440\u0442\u0443, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435, \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 Manticore.\n2. \u0421\u0442\u0430\u0440\u044b\u0439 \u0444\u0430\u0439\u043b `manticore.json` \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c.\n3. \u0421\u0442\u0430\u0440\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c.\n4. \u0421\u0442\u0430\u0440\u0430\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u043b\u0436\u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0438 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u043e\u0439.\n\n\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b, \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0441\u044f. \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0445 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c. \u041a\u0440\u0430\u0439\u043d\u0435 \u0432\u0430\u0436\u043d\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u043b\u0438 \u0438\u0445 \u0434\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0435\u0449\u0451 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442. \u041e\u0442\u0441\u044e\u0434\u0430 \u0438 \u0432\u0441\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f.\n\n\nCODE_BLOCK_11\n\n\n\nCODE_BLOCK_12\n\n\n\n## \u0420\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e mysqldump\n\nManticore \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 `mysqldump` \u0438\u0437 MySQL \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 9.5 \u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 `mariadb-dump` \u0438\u0437 MariaDB \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 12.1.\n\n\n\n> \u041f\u0420\u0418\u041c\u0415\u0427\u0410\u041d\u0418\u0415: \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 `mysqldump` / `mariadb-dump` \u0442\u0440\u0435\u0431\u0443\u044e\u0442 [Manticore Buddy](../Installation/Manticore_Buddy.md). \u0415\u0441\u043b\u0438 \u0434\u0430\u043c\u043f \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e Buddy \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d.\n\n\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0432\u0430\u0448\u0435\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 Manticore Search \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 `mysqldump`. \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0440\u0442 \u0438 \u0445\u043e\u0441\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.\n\n\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e `mysqldump` \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446 \u0441 \u0440\u0435\u0436\u0438\u043c\u043e\u043c \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.\n\n\nCODE_BLOCK_13\n\n\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0444\u0430\u0439\u043b \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c `manticore_backup.sql`. \u042d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0441\u0445\u0435\u043c\u044b \u0442\u0430\u0431\u043b\u0438\u0446.\n\n\nCODE_BLOCK_14\n\n\u042d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0444\u0430\u0439\u043b \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 `tbl.sql` \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 `replace` \u0432\u043c\u0435\u0441\u0442\u043e `insert`, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0438\u043c\u0435\u043d\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u0442\u0438\u0438. \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0430\u0440\u0442\u0438\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u0434\u043e 16 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442. \u041a\u043e\u043c\u0430\u043d\u0434 `drop`/`create table` \u043d\u0435 \u0431\u0443\u0434\u0435\u0442. \u042d\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0442\u043e\u043a\u0435\u043d\u0438\u0437\u0430\u0446\u0438\u0438.\n\n\nCODE_BLOCK_15\n\n\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 `mysqldump` \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432\u0438\u0434\u0430 `REPLACE INTO cluster:table ...`, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u0432 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 Manticore, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0447\u0435\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b.\n\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f `cluster` \u0438 \u0444\u043b\u0430\u0433 `-t` \u0434\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0430 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441\u043c. \u0432 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f\u0445 \u043d\u0438\u0436\u0435.\n\n\n\n\n### \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\n\n\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 Manticore Search \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438, \u043a\u043b\u0438\u0435\u043d\u0442 mysql \u2014 \u0432\u0430\u0448 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442.\n\n\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0435 \u0432 [Plain \u0440\u0435\u0436\u0438\u043c\u0435](../Read_this_first.md#Real-time-mode-vs-plain-mode), \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043b\u0435\u0434\u0443\u0435\u0442:\n- \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c `mysqldump` \u0441 \u043e\u043f\u0446\u0438\u0435\u0439 `-t`, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b `CREATE TABLE` \u0438\u0437 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438.\n- \u0412\u0440\u0443\u0447\u043d\u0443\u044e [TRUNCATE](../Emptying_a_table.md) \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u0435\u0440\u0435\u0434 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c.\n\n\nCODE_BLOCK_16\n\n\u042d\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0441\u0451 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 `manticore_backup.sql`.\n\n\n### \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\n\n\u0412\u043e\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441 mysqldump \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:\n\n- `-t` \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b `drop`/`create` \u0442\u0430\u0431\u043b\u0438\u0446. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0442\u043e\u043a\u0435\u043d\u0438\u0437\u0430\u0446\u0438\u0438.\n- `--no-data`: \u042d\u0442\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u0438\u0437 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0444\u0430\u0439\u043b, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0445\u0435\u043c\u044b \u0442\u0430\u0431\u043b\u0438\u0446.\n- `--ignore-table=[database_name].[table_name]`: \u042d\u0442\u0430 \u043e\u043f\u0446\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0438\u0437 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0438\u043c\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c `manticore`.\n- `--replace` \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b `replace` \u0432\u043c\u0435\u0441\u0442\u043e `insert`. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0442\u043e\u043a\u0435\u043d\u0438\u0437\u0430\u0446\u0438\u0438.\n- `--net-buffer-length=16M` \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u0440\u0442\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u0434\u043e 16 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442 \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u043e\u0439 \u0440\u0435\u0441\u0442\u0430\u0432\u0440\u0430\u0446\u0438\u0438.\n- `-e` \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u0431\u0430\u0442\u0447\u0438. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u043e\u0439 \u0440\u0435\u0441\u0442\u0430\u0432\u0440\u0430\u0446\u0438\u0438.\n- `-c` \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438\u043c\u0451\u043d \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0435\u0451 \u0441\u0445\u0435\u043c\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u043f\u043e\u043b\u0435\u0439).\n\n\u0414\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u0438\u0445 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 [\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 MySQL](https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html) \u0438\u043b\u0438 [\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 MariaDB](https://mariadb.com/kb/en/mariadb-dump/).\n\n### \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f\n\n* \u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u0430\u043c\u043f \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 (\u0433\u0434\u0435 \u0434\u0430\u043c\u043f \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 `INSERT/REPLACE INTO :`):\n - \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0430\u043c\u043f\u0430.\n - \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f `cluster`. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: `mysqldump -u cluster ...` \u0438\u043b\u0438 `mariadb-dump -u cluster ...`. \u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0449\u0435\u0433\u043e \u0440\u0435\u0436\u0438\u043c \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0434\u043b\u044f `mysqldump`, \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 `SET GLOBAL cluster_user = new_name`.\n - \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0444\u043b\u0430\u0433 `-t`.\n - \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0444\u043b\u0430\u0433 `--skip-lock-tables`.\n - \u041f\u0440\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 `cluster_name:table_name`. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: `mysqldump -P9306 -h0 -t -ucluster manticore cluster:tbl`.\n* \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 `manticore` \u043f\u0440\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u043c \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0432\u0441\u0435\u0445 \u0431\u0430\u0437, \u0432\u043c\u0435\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u043f\u0446\u0438\u0438 `--all-databases`.\n* \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e `mysqldump` \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u0438 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 \u043d\u0435\u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0435 (non-stored) \u043f\u043e\u043b\u044f. \u0412 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f `manticore-backup` \u0438\u043b\u0438 SQL-\u043a\u043e\u043c\u0430\u043d\u0434\u044b `BACKUP`. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c.\n\n" - }, - "is_code_or_comment": false, - "model": "openai:gpt-4.1-mini", - "updated_at": 1766376007 - }, - "598fbf733498ce446740f250308a8129cb0f9f39e2d769ccd20c1b87f288d123": { - "original": "# Backup and Restore\n\nBacking up your tables on a regular basis is essential for recovery in the event of system crashes, hardware failure, or data corruption/loss. It's also highly recommended to make backups before upgrading to a new Manticore Search version or running [ALTER TABLE](../Updating_table_schema_and_settings.md#Updating-table-schema-in-RT-mode).\n\nBacking up database systems can be done in two unique ways: logical and physical backups. Each of these methods has its pros and cons, which may vary based on the specific database environment and needs. Here, we'll delve into the distinction between these two types of backups.\n\n### Logical Backups\n\nLogical backups entail exporting the database schema and data as SQL statements or as data formats specific to the database. This backup form is typically readable by humans and can be employed to restore the database on various systems or database engines.\n\nPros and cons of logical backups:\n- \u2795 **Portability:** Logical backups are generally more portable than physical backups, as they can be used to restore the database on different hardware or operating systems.\n- \u2795 **Flexibility:** Logical backups allow you to selectively restore specific tables, indexes, or other database objects.\n- \u2795 **Compatibility:** Logical backups can be used to migrate data between different database management systems or versions, provided the target system supports the exported format or SQL statements.\n- \u2796 **Slower Backup and Restore:** Logical backups can be slower than physical backups, as they require the database engine to convert the data into SQL statements or another export format.\n- \u2796 **Increased System Load:** Creating logical backups can cause higher system load, as the process requires more CPU and memory resources to process and export the data.\n\nManticore Search supports [mysqldump](../Securing_and_compacting_a_table/Backup_and_restore.md#Backup-and-restore-with-mysqldump) for logical backups.\n\n### Physical Backups\n\nPhysical backups involve copying the raw data files and system files that comprise the database. This type of backup essentially creates a snapshot of the database's physical state at a given point in time.\n\nPros and cons of physical backups:\n- \u2795 **Speed:** Physical backups are usually faster than logical backups, as they involve copying raw data files directly from disk.\n- \u2795 **Consistency:** Physical backups ensure a consistent backup of the entire database, as all related files are copied together.\n- \u2795 **Lower System Load:** Creating physical backups generally places less load on the system compared to logical backups, as the process does not involve additional data processing.\n- \u2796 **Portability:** Physical backups are typically less portable than logical backups, as they may be dependent on the specific hardware, operating system, or database engine configuration.\n- \u2796 **Flexibility:** Physical backups do not allow for the selective restoration of specific database objects, as the backup contains the entire database's raw files.\n- \u2796 **Compatibility:** Physical backups cannot be used to migrate data between different database management systems or versions, as the raw data files may not be compatible across different platforms or software.\n\nManticore Search has [manticore-backup](../Securing_and_compacting_a_table/Backup_and_restore.md#Using-manticore-backup-command-line-tool) command line tool for physical backups.\n\nIn summary, logical backups provide more flexibility, portability, and compatibility but can be slower and more resource-intensive, while physical backups are faster, more consistent, and less resource-intensive but may be limited in terms of portability and flexibility. The choice between these two backup methods will depend on your specific database environment, hardware, and requirements.\n\n## Using manticore-backup command line tool\n\nThe `manticore-backup` tool, included in the official Manticore Search [packages](https://manticoresearch.com/install), automates the process of backing up tables for an instance running in [RT mode](../Read_this_first.md#Real-time-mode-vs-plain-mode).\n\n### Installation\n\n**If you followed [the official installation instructions](https://manticoresearch.com/install/), you should already have everything installed and don't need to worry.** Otherwise, [`manticore-backup`](https://github.com/manticoresoftware/manticoresearch-backup) requires PHP 8.1.10 and [specific modules](https://github.com/manticoresoftware/executor/blob/main/build-linux) or [`manticore-executor`](https://github.com/manticoresoftware/executor), which is a part of the `manticore-extra` package, and you need to ensure that one of these is available.\n\nNote that `manticore-backup` is not available for Windows yet.\n\n### How to use\n\nFirst, make sure you're running `manticore-backup` on the same server where the Manticore instance you are about to back up is running.\n\nSecond, we recommend running the tool under the `root` user so the tool can transfer ownership of the files you are backing up. Otherwise, a backup will be also made but with no ownership transfer. In either case, you should make sure that `manticore-backup` has access to the data dir of the Manticore instance.\n\n\n\nThe only required argument for `manticore-backup` is `--backup-dir`, which specifies the destination for the backup. If you don't provide any additional arguments, `manticore-backup` will:\n- locate a Manticore instance running with the default configuration\n- create a subdirectory in the `--backup-dir` directory with a timestamped name\n- backup all tables found in the instance\n\n\nCODE_BLOCK_0\n\n\nCODE_BLOCK_1\n\n\n\nTo back up specific tables only, use the `--tables` flag followed by a comma-separated list of tables, for example `--tables=tbl1,tbl2`. This will only backup the specified tables and ignore the rest.\n\n\nCODE_BLOCK_2\n\n\nCODE_BLOCK_3\n\n\n### Arguments", - "translations": { - "chinese": "# \u5907\u4efd\u4e0e\u6062\u590d\n\n\u5b9a\u671f\u5907\u4efd\u60a8\u7684\u8868\u5bf9\u4e8e\u5728\u7cfb\u7edf\u5d29\u6e83\u3001\u786c\u4ef6\u6545\u969c\u6216\u6570\u636e\u635f\u574f/\u4e22\u5931\u65f6\u8fdb\u884c\u6062\u590d\u81f3\u5173\u91cd\u8981\u3002\u5f3a\u70c8\u5efa\u8bae\u5728\u5347\u7ea7\u5230\u65b0\u7684 Manticore Search \u7248\u672c\u6216\u8fd0\u884c [ALTER TABLE](../Updating_table_schema_and_settings.md#Updating-table-schema-in-RT-mode) \u524d\u8fdb\u884c\u5907\u4efd\u3002\n\n\u6570\u636e\u5e93\u7cfb\u7edf\u5907\u4efd\u6709\u4e24\u79cd\u72ec\u7279\u7684\u65b9\u6cd5\uff1a\u903b\u8f91\u5907\u4efd\u548c\u7269\u7406\u5907\u4efd\u3002\u8fd9\u4e24\u79cd\u65b9\u6cd5\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u7279\u5b9a\u7684\u6570\u636e\u5e93\u73af\u5883\u548c\u9700\u6c42\u3002\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u6df1\u5165\u63a2\u8ba8\u8fd9\u4e24\u79cd\u5907\u4efd\u7c7b\u578b\u7684\u533a\u522b\u3002\n\n### \u903b\u8f91\u5907\u4efd\n\n\u903b\u8f91\u5907\u4efd\u6d89\u53ca\u5c06\u6570\u636e\u5e93\u6a21\u5f0f\u548c\u6570\u636e\u5bfc\u51fa\u4e3a SQL \u8bed\u53e5\u6216\u6570\u636e\u5e93\u7279\u5b9a\u7684\u6570\u636e\u683c\u5f0f\u3002\u8fd9\u79cd\u5907\u4efd\u5f62\u5f0f\u901a\u5e38\u5bf9\u4eba\u7c7b\u53ef\u8bfb\uff0c\u5e76\u4e14\u53ef\u7528\u4e8e\u5728\u4e0d\u540c\u7cfb\u7edf\u6216\u6570\u636e\u5e93\u5f15\u64ce\u4e0a\u6062\u590d\u6570\u636e\u5e93\u3002\n\n\u903b\u8f91\u5907\u4efd\u7684\u4f18\u7f3a\u70b9\uff1a\n- \u2795 **\u53ef\u79fb\u690d\u6027\uff1a** \u903b\u8f91\u5907\u4efd\u901a\u5e38\u6bd4\u7269\u7406\u5907\u4efd\u66f4\u5177\u53ef\u79fb\u690d\u6027\uff0c\u56e0\u4e3a\u5b83\u4eec\u53ef\u4ee5\u7528\u4e8e\u5728\u4e0d\u540c\u786c\u4ef6\u6216\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u6062\u590d\u6570\u636e\u5e93\u3002\n- \u2795 **\u7075\u6d3b\u6027\uff1a** \u903b\u8f91\u5907\u4efd\u5141\u8bb8\u60a8\u9009\u62e9\u6027\u5730\u6062\u590d\u7279\u5b9a\u7684\u8868\u3001\u7d22\u5f15\u6216\u5176\u4ed6\u6570\u636e\u5e93\u5bf9\u8c61\u3002\n- \u2795 **\u517c\u5bb9\u6027\uff1a** \u903b\u8f91\u5907\u4efd\u53ef\u7528\u4e8e\u5728\u4e0d\u540c\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u6216\u7248\u672c\u4e4b\u95f4\u8fc1\u79fb\u6570\u636e\uff0c\u53ea\u8981\u76ee\u6807\u7cfb\u7edf\u652f\u6301\u5bfc\u51fa\u683c\u5f0f\u6216 SQL \u8bed\u53e5\u3002\n- \u2796 **\u5907\u4efd\u4e0e\u6062\u590d\u901f\u5ea6\u8f83\u6162\uff1a** \u903b\u8f91\u5907\u4efd\u901a\u5e38\u6bd4\u7269\u7406\u5907\u4efd\u6162\uff0c\u56e0\u4e3a\u9700\u8981\u6570\u636e\u5e93\u5f15\u64ce\u5c06\u6570\u636e\u8f6c\u6362\u4e3a SQL \u8bed\u53e5\u6216\u5176\u4ed6\u5bfc\u51fa\u683c\u5f0f\u3002\n- \u2796 **\u7cfb\u7edf\u8d1f\u8f7d\u589e\u52a0\uff1a** \u521b\u5efa\u903b\u8f91\u5907\u4efd\u53ef\u80fd\u5bfc\u81f4\u7cfb\u7edf\u8d1f\u8f7d\u8f83\u9ad8\uff0c\u56e0\u4e3a\u8be5\u8fc7\u7a0b\u9700\u8981\u66f4\u591a\u7684 CPU \u548c\u5185\u5b58\u8d44\u6e90\u6765\u5904\u7406\u548c\u5bfc\u51fa\u6570\u636e\u3002\n\nManticore Search \u652f\u6301\u4f7f\u7528 [mysqldump](../Securing_and_compacting_a_table/Backup_and_restore.md#Backup-and-restore-with-mysqldump) \u8fdb\u884c\u903b\u8f91\u5907\u4efd\u3002\n\n### \u7269\u7406\u5907\u4efd\n\n\u7269\u7406\u5907\u4efd\u6d89\u53ca\u590d\u5236\u6784\u6210\u6570\u636e\u5e93\u7684\u539f\u59cb\u6570\u636e\u6587\u4ef6\u548c\u7cfb\u7edf\u6587\u4ef6\u3002\u8fd9\u79cd\u5907\u4efd\u7c7b\u578b\u672c\u8d28\u4e0a\u662f\u521b\u5efa\u6570\u636e\u5e93\u5728\u67d0\u4e00\u65f6\u95f4\u70b9\u7684\u7269\u7406\u72b6\u6001\u5feb\u7167\u3002\n\n\u7269\u7406\u5907\u4efd\u7684\u4f18\u7f3a\u70b9\uff1a\n- \u2795 **\u901f\u5ea6\uff1a** \u7269\u7406\u5907\u4efd\u901a\u5e38\u6bd4\u903b\u8f91\u5907\u4efd\u5feb\uff0c\u56e0\u4e3a\u5b83\u4eec\u76f4\u63a5\u4ece\u78c1\u76d8\u590d\u5236\u539f\u59cb\u6570\u636e\u6587\u4ef6\u3002\n- \u2795 **\u4e00\u81f4\u6027\uff1a** \u7269\u7406\u5907\u4efd\u786e\u4fdd\u6574\u4e2a\u6570\u636e\u5e93\u7684\u4e00\u81f4\u6027\u5907\u4efd\uff0c\u56e0\u4e3a\u6240\u6709\u76f8\u5173\u6587\u4ef6\u90fd\u4f1a\u88ab\u4e00\u8d77\u590d\u5236\u3002\n- \u2795 **\u7cfb\u7edf\u8d1f\u8f7d\u8f83\u4f4e\uff1a** \u4e0e\u903b\u8f91\u5907\u4efd\u76f8\u6bd4\uff0c\u521b\u5efa\u7269\u7406\u5907\u4efd\u901a\u5e38\u5bf9\u7cfb\u7edf\u8d1f\u8f7d\u8f83\u5c0f\uff0c\u56e0\u4e3a\u8fc7\u7a0b\u4e0d\u6d89\u53ca\u989d\u5916\u7684\u6570\u636e\u5904\u7406\u3002\n- \u2796 **\u53ef\u79fb\u690d\u6027\uff1a** \u7269\u7406\u5907\u4efd\u901a\u5e38\u6bd4\u903b\u8f91\u5907\u4efd\u7684\u53ef\u79fb\u690d\u6027\u5dee\uff0c\u56e0\u4e3a\u5b83\u4eec\u53ef\u80fd\u4f9d\u8d56\u4e8e\u7279\u5b9a\u7684\u786c\u4ef6\u3001\u64cd\u4f5c\u7cfb\u7edf\u6216\u6570\u636e\u5e93\u5f15\u64ce\u914d\u7f6e\u3002\n- \u2796 **\u7075\u6d3b\u6027\uff1a** \u7269\u7406\u5907\u4efd\u4e0d\u5141\u8bb8\u9009\u62e9\u6027\u6062\u590d\u7279\u5b9a\u6570\u636e\u5e93\u5bf9\u8c61\uff0c\u56e0\u4e3a\u5907\u4efd\u5305\u542b\u6574\u4e2a\u6570\u636e\u5e93\u7684\u539f\u59cb\u6587\u4ef6\u3002\n- \u2796 **\u517c\u5bb9\u6027\uff1a** \u7269\u7406\u5907\u4efd\u4e0d\u80fd\u7528\u4e8e\u5728\u4e0d\u540c\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u6216\u7248\u672c\u4e4b\u95f4\u8fc1\u79fb\u6570\u636e\uff0c\u56e0\u4e3a\u539f\u59cb\u6570\u636e\u6587\u4ef6\u5728\u4e0d\u540c\u5e73\u53f0\u6216\u8f6f\u4ef6\u95f4\u53ef\u80fd\u4e0d\u517c\u5bb9\u3002\n\nManticore Search \u63d0\u4f9b\u4e86\u7528\u4e8e\u7269\u7406\u5907\u4efd\u7684\u547d\u4ee4\u884c\u5de5\u5177 [manticore-backup](../Securing_and_compacting_a_table/Backup_and_restore.md#Using-manticore-backup-command-line-tool)\u3002\n\n\u603b\u4e4b\uff0c\u903b\u8f91\u5907\u4efd\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u7075\u6d3b\u6027\u3001\u53ef\u79fb\u690d\u6027\u548c\u517c\u5bb9\u6027\uff0c\u4f46\u53ef\u80fd\u8f83\u6162\u4e14\u8d44\u6e90\u6d88\u8017\u8f83\u9ad8\uff1b\u7269\u7406\u5907\u4efd\u66f4\u5feb\u3001\u66f4\u4e00\u81f4\u4e14\u8d44\u6e90\u6d88\u8017\u8f83\u4f4e\uff0c\u4f46\u5728\u53ef\u79fb\u690d\u6027\u548c\u7075\u6d3b\u6027\u65b9\u9762\u53ef\u80fd\u53d7\u9650\u3002\u60a8\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u7684\u6570\u636e\u5e93\u73af\u5883\u3001\u786c\u4ef6\u548c\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5907\u4efd\u65b9\u6cd5\u3002\n\n## \u4f7f\u7528 manticore-backup \u547d\u4ee4\u884c\u5de5\u5177\n\n`manticore-backup` \u5de5\u5177\u5305\u542b\u5728\u5b98\u65b9 Manticore Search [\u5b89\u88c5\u5305](https://manticoresearch.com/install)\u4e2d\uff0c\u53ef\u81ea\u52a8\u5907\u4efd\u4ee5 [RT \u6a21\u5f0f](../Read_this_first.md#Real-time-mode-vs-plain-mode) \u8fd0\u884c\u7684\u5b9e\u4f8b\u4e2d\u7684\u8868\u3002\n\n### \u5b89\u88c5\n\n**\u5982\u679c\u60a8\u6309\u7167\u4e86[\u5b98\u65b9\u5b89\u88c5\u8bf4\u660e](https://manticoresearch.com/install/)\uff0c\u5e94\u8be5\u5df2\u7ecf\u5b89\u88c5\u5b8c\u6210\uff0c\u65e0\u9700\u989d\u5916\u64cd\u4f5c\u3002** \u5426\u5219\uff0c [`manticore-backup`](https://github.com/manticoresoftware/manticoresearch-backup) \u9700\u8981 PHP 8.1.10 \u548c [\u7279\u5b9a\u6a21\u5757](https://github.com/manticoresoftware/executor/blob/main/build-linux) \u6216 [`manticore-executor`](https://github.com/manticoresoftware/executor)\uff0c\u540e\u8005\u662f `manticore-extra` \u5305\u7684\u4e00\u90e8\u5206\uff0c\u60a8\u9700\u8981\u786e\u4fdd\u5176\u4e2d\u4e4b\u4e00\u53ef\u7528\u3002\n\n\u6ce8\u610f\uff0c\u76ee\u524d `manticore-backup` \u5c1a\u4e0d\u652f\u6301 Windows\u3002\n\n### \u4f7f\u7528\u65b9\u6cd5\n\n\u9996\u5148\uff0c\u786e\u4fdd\u60a8\u5728\u8fd0\u884c\u8981\u5907\u4efd\u7684 Manticore \u5b9e\u4f8b\u7684\u540c\u4e00\u670d\u52a1\u5668\u4e0a\u8fd0\u884c `manticore-backup`\u3002\n\n\u5176\u6b21\uff0c\u5efa\u8bae\u4ee5 `root` \u7528\u6237\u8fd0\u884c\u6b64\u5de5\u5177\uff0c\u4ee5\u4fbf\u5de5\u5177\u80fd\u8f6c\u79fb\u60a8\u5907\u4efd\u6587\u4ef6\u7684\u6240\u6709\u6743\u3002\u5426\u5219\uff0c\u5c06\u751f\u6210\u5907\u4efd\u4f46\u4e0d\u8fdb\u884c\u6240\u6709\u6743\u8f6c\u79fb\u3002\u65e0\u8bba\u54ea\u79cd\u60c5\u51b5\uff0c\u90fd\u5e94\u786e\u4fdd `manticore-backup` \u6709\u6743\u8bbf\u95ee\u8be5 Manticore \u5b9e\u4f8b\u7684\u6570\u636e\u76ee\u5f55\u3002\n\n\n\n`manticore-backup` \u552f\u4e00\u5fc5\u9700\u7684\u53c2\u6570\u662f `--backup-dir`\uff0c\u7528\u4e8e\u6307\u5b9a\u5907\u4efd\u7684\u76ee\u6807\u4f4d\u7f6e\u3002\u5982\u679c\u4e0d\u63d0\u4f9b\u5176\u4ed6\u53c2\u6570\uff0c`manticore-backup` \u5c06\uff1a\n- \u5b9a\u4f4d\u4e00\u4e2a\u4f7f\u7528\u9ed8\u8ba4\u914d\u7f6e\u8fd0\u884c\u7684 Manticore \u5b9e\u4f8b\n- \u5728 `--backup-dir` \u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u5e26\u65f6\u95f4\u6233\u7684\u5b50\u76ee\u5f55\n- \u5907\u4efd\u8be5\u5b9e\u4f8b\u4e2d\u7684\u6240\u6709\u8868\n\n\nCODE_BLOCK_0\n\n\nCODE_BLOCK_1\n\n\n\n\u8981\u4ec5\u5907\u4efd\u7279\u5b9a\u8868\uff0c\u8bf7\u4f7f\u7528 `--tables` \u6807\u5fd7\uff0c\u540e\u8ddf\u9017\u53f7\u5206\u9694\u7684\u8868\u540d\u5217\u8868\uff0c\u4f8b\u5982 `--tables=tbl1,tbl2`\u3002\u8fd9\u53ea\u5907\u4efd\u6307\u5b9a\u7684\u8868\uff0c\u5ffd\u7565\u5176\u4f59\u8868\u3002\n\n\nCODE_BLOCK_2\n\n\nCODE_BLOCK_3\n\n\n### \u53c2\u6570", - "russian": "# \u0420\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\n\n\u0420\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0431\u043e\u0435\u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043e\u0442\u043a\u0430\u0437\u0430 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f/\u043f\u043e\u0442\u0435\u0440\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. \u0422\u0430\u043a\u0436\u0435 \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043f\u0435\u0440\u0435\u0434 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0434\u043e \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Manticore Search \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b [ALTER TABLE](../Updating_table_schema_and_settings.md#Updating-table-schema-in-RT-mode).\n\n\u0420\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0434\u0432\u0443\u043c\u044f \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u044d\u0442\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0432\u0430\u0440\u044c\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u0435\u0439. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u044d\u0442\u0438\u043c\u0438 \u0434\u0432\u0443\u043c\u044f \u0442\u0438\u043f\u0430\u043c\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0445 \u043a\u043e\u043f\u0438\u0439.\n\n### \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438\n\n\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442 \u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u0441\u0445\u0435\u043c\u044b \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0432\u0438\u0434\u0435 SQL-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438\u043b\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0445 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445. \u042d\u0442\u043e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u043e\u0431\u044b\u0447\u043d\u043e \u0447\u0438\u0442\u0430\u0435\u043c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c \u0438 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0438\u043b\u0438 \u0434\u0432\u0438\u0436\u043a\u0430\u0445 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445.\n\n\u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0445 \u043a\u043e\u043f\u0438\u0439:\n- \u2795 **\u041f\u043e\u0440\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c:** \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043e\u0431\u044b\u0447\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u044b, \u0447\u0435\u043c \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0440\u0430\u0437\u043d\u043e\u043c \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u043c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0438 \u0438\u043b\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445.\n- \u2795 **\u0413\u0438\u0431\u043a\u043e\u0441\u0442\u044c:** \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0432\u044b\u0431\u043e\u0440\u043e\u0447\u043d\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.\n- \u2795 **\u0421\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c:** \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438, \u043f\u0440\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0438, \u0447\u0442\u043e \u0446\u0435\u043b\u0435\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0438\u043b\u0438 SQL-\u0437\u0430\u043f\u0440\u043e\u0441\u044b.\n- \u2796 **\u041c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435:** \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043c\u043e\u0433\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u0442\u0430\u043a \u043a\u0430\u043a \u0434\u0432\u0438\u0436\u043a\u0443 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 SQL-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0438\u043b\u0438 \u0438\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430.\n- \u2796 **\u041f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0443:** \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0445 \u043a\u043e\u043f\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 CPU \u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0434\u0430\u043d\u043d\u044b\u0445.\n\nManticore Search \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 [mysqldump](../Securing_and_compacting_a_table/Backup_and_restore.md#Backup-and-restore-with-mysqldump) \u0434\u043b\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.\n\n### \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438\n\n\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u044b\u0440\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445. \u0422\u0430\u043a\u043e\u0439 \u0442\u0438\u043f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0441\u043d\u0438\u043c\u043e\u043a \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438.\n\n\u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0445 \u043a\u043e\u043f\u0438\u0439:\n- \u2795 **\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c:** \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0438 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442 \u043f\u0440\u044f\u043c\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u044b\u0440\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0434\u0438\u0441\u043a\u0430.\n- \u2795 **\u0421\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0441\u0442\u044c:** \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0442 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0432\u0441\u0435\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435.\n- \u2795 **\u041d\u0438\u0437\u043a\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0443:** \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0445 \u043a\u043e\u043f\u0438\u0439 \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445.\n- \u2796 **\u041f\u043e\u0440\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c:** \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043e\u0431\u044b\u0447\u043d\u043e \u043c\u0435\u043d\u0435\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u044b, \u0447\u0435\u043c \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u043e\u0433\u0443\u0442 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u043b\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u0432\u0438\u0436\u043a\u0430 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.\n- \u2796 **\u0413\u0438\u0431\u043a\u043e\u0441\u0442\u044c:** \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0432\u044b\u0431\u043e\u0440\u043e\u0447\u043d\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0442\u0430\u043a \u043a\u0430\u043a \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0430\u044f \u043a\u043e\u043f\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u044b\u0440\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0432\u0441\u0435\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.\n- \u2796 **\u0421\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c:** \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u044b\u0440\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c\u0438 \u0438\u043b\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u043c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435\u043c.\n\nManticore Search \u0438\u043c\u0435\u0435\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 [manticore-backup](../Securing_and_compacting_a_table/Backup_and_restore.md#Using-manticore-backup-command-line-tool) \u0434\u043b\u044f \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0445 \u043a\u043e\u043f\u0438\u0439.\n\n\u0412 \u0438\u0442\u043e\u0433\u0435, \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c, \u043f\u043e\u0440\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c, \u043d\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u0442\u043e\u0433\u0434\u0430 \u043a\u0430\u043a \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u0438 \u043c\u0435\u043d\u044c\u0448\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u043d\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b \u0432 \u043f\u043b\u0430\u043d\u0435 \u043f\u043e\u0440\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u0438. \u0412\u044b\u0431\u043e\u0440 \u043c\u0435\u0436\u0434\u0443 \u044d\u0442\u0438\u043c\u0438 \u0434\u0432\u0443\u043c\u044f \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0432\u0430\u0448\u0435\u0439 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439.\n\n## \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 manticore-backup\n\n\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 `manticore-backup`, \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 [\u043f\u0430\u043a\u0435\u0442\u043e\u0432](https://manticoresearch.com/install) Manticore Search, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0446 \u0434\u043b\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u0432 [RT \u0440\u0435\u0436\u0438\u043c\u0435](../Read_this_first.md#Real-time-mode-vs-plain-mode).\n\n### \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\n\n**\u0415\u0441\u043b\u0438 \u0432\u044b \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u0438 [\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435](https://manticoresearch.com/install/), \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0432\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u0438 \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0438\u0442\u044c\u0441\u044f \u043d\u0435 \u043e \u0447\u0435\u043c.** \u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, [`manticore-backup`](https://github.com/manticoresoftware/manticoresearch-backup) \u0442\u0440\u0435\u0431\u0443\u0435\u0442 PHP 8.1.10 \u0438 [\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438](https://github.com/manticoresoftware/executor/blob/main/build-linux) \u0438\u043b\u0438 [`manticore-executor`](https://github.com/manticoresoftware/executor), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 \u043f\u0430\u043a\u0435\u0442 `manticore-extra`, \u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0438\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d.\n\n\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e `manticore-backup` \u043f\u043e\u043a\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f Windows.\n\n### \u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\n\n\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0435 `manticore-backup` \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0433\u0434\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 Manticore, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c.\n\n\u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c `root`, \u0447\u0442\u043e\u0431\u044b \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043c\u043e\u0433 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 \u0444\u0430\u0439\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u0442\u0435. \u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e, \u043d\u043e \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u0440\u0430\u0432 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438. \u0412 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e `manticore-backup` \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 Manticore.\n\n\n\n\u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0434\u043b\u044f `manticore-backup` \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f `--backup-dir`, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043c\u0435\u0441\u0442\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438. \u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0443\u043a\u0430\u0436\u0435\u0442\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432, `manticore-backup` \u0431\u0443\u0434\u0435\u0442:\n- \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0442\u044c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 Manticore, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\n- \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 `--backup-dir` \u0441 \u0438\u043c\u0435\u043d\u0435\u043c, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0438\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043c\u0435\u0442\u043a\u0443\n- \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0442\u0430\u0431\u043b\u0438\u0446, \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0432 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0435\n\n\nCODE_BLOCK_0\n\n\nCODE_BLOCK_1\n\n\n\n\u0427\u0442\u043e\u0431\u044b \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0444\u043b\u0430\u0433 `--tables`, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 `--tables=tbl1,tbl2`. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b.\n\n\nCODE_BLOCK_2\n\n\nCODE_BLOCK_3\n\n\n### \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b" - }, - "is_code_or_comment": false, - "model": "openai:gpt-4.1-mini", - "updated_at": 1766339813 - }, - "d8d870460bdb5c657d00e845436a8aa89aa7a4b453d52a1f07399f176bd1134e": { - "original": "| Argument | Description |\n|-|-|\n| `--backup-dir=path` | This is the path to the backup directory where the backup will be stored. The directory must already exist. This argument is required and has no default value. On each backup run, manticore-backup will create a subdirectory in the provided directory with a timestamp in the name (`backup-[datetime]`), and will copy all required tables to it. So the `--backup-dir` is a container for all your backups, and it's safe to run the script multiple times.|\n| `--restore[=backup]` | Restore from `--backup-dir`. Just --restore lists available backups. `--restore=backup` will restore from `<--backup-dir>/backup`. |\n| `--force` | Skip versions check on restore and gracefully restore the backup. |\n| `--disable-telemetry` | Pass this flag in case you want to disable sending anonymized metrics to Manticore. You can also use environment variable TELEMETRY=0 |\n| `--config=/path/to/manticore.conf` | Path to the Manticore configuration. Optional. If not provided, a default configuration for your operating system will be used. Used to determine the host and port for communication with the Manticore daemon. The `manticore-backup` tool supports [dynamic configuration](../Server_settings/Scripted_configuration.md) files. You can specify the `--config` option multiple times if your configuration is spread across multiple files. |\n| `--tables=tbl1,tbl2, ...` | Semicolon-separated list of tables that you want to back up. To back up all tables, omit this argument. All the provided tables must exist in the Manticore instance you are backing up from, or the backup will fail. |\n| `--compress` | Whether the backed up files should be compressed. Not enabled by default. | optional |\n| `--unlock` | In rare cases when something goes wrong, tables can be left in a locked state. Use this argument to unlock them. |\n| `--version` | Show the current version. |\n| `--help` | Show this help. |\n\n## BACKUP SQL command reference\n\nYou can also back up your data through SQL by running the simple command `BACKUP TO /path/to/backup`.\n\n> NOTE: `BACKUP` is not supported in Windows. Consider using [mysqldump](../Securing_and_compacting_a_table/Backup_and_restore.md#Backup-and-restore-with-mysqldump) instead.\n\n> NOTE: `BACKUP` requires [Manticore Buddy](../Installation/Manticore_Buddy.md). If it doesn't work, make sure Buddy is installed.\n\n### General syntax of BACKUP\n\nCODE_BLOCK_4\n\nFor instance, to back up tables `a` and `b` to the `/backup` directory, run the following command:\n\nCODE_BLOCK_5\n\nThere are options available to control and adjust the backup process, such as:\n\n* `async`: makes the backup non-blocking, allowing you to receive a response with the backup path immediately and run other queries while the backup is ongoing. The default value is `0`.\n* `compress`: enables file compression using zstd. The default value is `0`.\n\nFor example, to run a backup of all tables in async mode with compression enabled to the `/tmp` directory:\n\nCODE_BLOCK_6\n\n### Async backup behavior\n\nWhen using `async = 1` (or `yes`, `on`, `true`), the backup operation runs in a background task:\n\n* The command returns immediately with the backup path\n* You can continue running other queries while the backup is in progress\n* The backup task runs in a separate thread managed by Manticore Buddy\n* While running, the backup task will appear in `SHOW QUERIES` output and will be removed automatically when complete\n\n**Example of async backup:**\n\nCODE_BLOCK_7\n\nThis will return immediately with output like:\nCODE_BLOCK_8\n\nYou can check if the backup is still running by using `SHOW QUERIES`. Once complete, the task will disappear from the queries list and all backup files will be present in the specified directory.\n\n### Important considerations\n\n1. The backup path can contain spaces if enclosed in single quotes, e.g., `BACKUP TO '/path/with spaces'`\n2. Paths without spaces don't require quotes: `BACKUP TO /tmp/backup`\n3. Windows paths are supported: `BACKUP TO 'C:\\path'` or `BACKUP TO C:\\windows\\backup`\n4. Ensure that Manticore Buddy is launched (it is by default)\n5. The backup directory must exist and be writable by the Manticore process\n\n### How backup maintains consistency of tables\n\nTo ensure consistency of tables during backup, Manticore Search's backup tools use the innovative [FREEZE and UNFREEZE](../Securing_and_compacting_a_table/Freezing_and_locking_a_table.md) commands. Unlike the traditional lock and unlock tables feature of e.g. MySQL, `FREEZE` stops flushing data to disk while still permitting writing (to some extent) and selecting updated data from the table.\n\nHowever, if your RAM chunk size grows beyond the `rt_mem_limit` threshold during lengthy backup operations involving many inserts, data may be flushed to disk, and write operations will be blocked until flushing is complete. Despite this, the tool maintains a balance between table locking, data consistency, and database write availability while the table is frozen.\n\nWhen you use `manticore-backup` or the SQL `BACKUP` command, the `FREEZE` command is executed once and freezes all tables you are backing up simultaneously. The backup process subsequently backs up each table one by one, releasing the freeze after successfully backing up each table.\n\nIf backup fails or gets interrupted, the tool tries to unfreeze all the tables.\n\n## Restore by using manticore-backup tool\n\n\nTo restore a Manticore instance from a backup, use the `manticore-backup` command with the `--backup-dir` and `--restore` arguments. For example: `manticore-backup --backup-dir=/path/to/backups --restore`. If you don't provide any argument for `--restore`, it will simply list all the backups in the `--backup-dir`.\n\n\nCODE_BLOCK_9\n\n\n\nCODE_BLOCK_10\n\n\n\n", - "translations": { - "chinese": "| \u53c2\u6570 | \u63cf\u8ff0 |\n|-|-|\n| `--backup-dir=path` | \u8fd9\u662f\u5907\u4efd\u76ee\u5f55\u7684\u8def\u5f84\uff0c\u5907\u4efd\u5c06\u5b58\u50a8\u5728\u8be5\u76ee\u5f55\u4e2d\u3002\u76ee\u5f55\u5fc5\u987b\u5df2\u5b58\u5728\u3002\u6b64\u53c2\u6570\u4e3a\u5fc5\u9700\u4e14\u65e0\u9ed8\u8ba4\u503c\u3002\u6bcf\u6b21\u5907\u4efd\u8fd0\u884c\u65f6\uff0cmanticore-backup \u4f1a\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u5e26\u65f6\u95f4\u6233\u7684\u5b50\u76ee\u5f55\uff08`backup-[datetime]`\uff09\uff0c\u5e76\u5c06\u6240\u6709\u5fc5\u9700\u7684\u8868\u590d\u5236\u5230\u8be5\u76ee\u5f55\u3002\u56e0\u6b64\uff0c`--backup-dir` \u662f\u6240\u6709\u5907\u4efd\u7684\u5bb9\u5668\uff0c\u5b89\u5168\u5730\u591a\u6b21\u8fd0\u884c\u8be5\u811a\u672c\u3002|\n| `--restore[=backup]` | \u4ece`--backup-dir`\u6062\u590d\u3002\u4ec5\u4f7f\u7528--restore\u4f1a\u5217\u51fa\u53ef\u7528\u5907\u4efd\u3002`--restore=backup`\u5c06\u4ece`<--backup-dir>/backup`\u6062\u590d\u3002|\n| `--force` | \u5728\u6062\u590d\u65f6\u8df3\u8fc7\u7248\u672c\u68c0\u67e5\uff0c\u5e76\u4f18\u96c5\u5730\u6062\u590d\u5907\u4efd\u3002|\n| `--disable-telemetry` | \u5982\u679c\u60a8\u60f3\u7981\u7528\u5411 Manticore \u53d1\u9001\u533f\u540d\u6307\u6807\uff0c\u8bf7\u4f7f\u7528\u6b64\u6807\u5fd7\u3002\u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528\u73af\u5883\u53d8\u91cf TELEMETRY=0 |\n| `--config=/path/to/manticore.conf` | Manticore \u914d\u7f6e\u6587\u4ef6\u8def\u5f84\u3002\u53ef\u9009\u3002\u5982\u679c\u672a\u63d0\u4f9b\uff0c\u5219\u4f7f\u7528\u64cd\u4f5c\u7cfb\u7edf\u7684\u9ed8\u8ba4\u914d\u7f6e\u3002\u7528\u4e8e\u786e\u5b9a\u4e0e Manticore \u5b88\u62a4\u8fdb\u7a0b\u901a\u4fe1\u7684\u4e3b\u673a\u548c\u7aef\u53e3\u3002`manticore-backup` \u5de5\u5177\u652f\u6301[\u52a8\u6001\u914d\u7f6e](../Server_settings/Scripted_configuration.md)\u6587\u4ef6\u3002\u5982\u679c\u914d\u7f6e\u5206\u6563\u5728\u591a\u4e2a\u6587\u4ef6\u4e2d\uff0c\u53ef\u591a\u6b21\u6307\u5b9a`--config`\u9009\u9879\u3002|\n| `--tables=tbl1,tbl2, ...` | \u4f60\u60f3\u5907\u4efd\u7684\u8868\u7684\u5206\u53f7\u5206\u9694\u5217\u8868\u3002\u8981\u5907\u4efd\u6240\u6709\u8868\uff0c\u53ef\u7701\u7565\u6b64\u53c2\u6570\u3002\u6240\u6709\u63d0\u4f9b\u7684\u8868\u5fc5\u987b\u5b58\u5728\u4e8e\u4f60\u8981\u5907\u4efd\u7684 Manticore \u5b9e\u4f8b\u4e2d\uff0c\u5426\u5219\u5907\u4efd\u4f1a\u5931\u8d25\u3002|\n| `--compress` | \u662f\u5426\u538b\u7f29\u5907\u4efd\u6587\u4ef6\u3002\u9ed8\u8ba4\u672a\u542f\u7528\u3002| \u53ef\u9009 |\n| `--unlock` | \u5728\u6781\u5c11\u6570\u60c5\u51b5\u4e0b\uff0c\u5f53\u51fa\u73b0\u5f02\u5e38\u65f6\uff0c\u8868\u53ef\u80fd\u88ab\u9501\u5b9a\u3002\u4f7f\u7528\u6b64\u53c2\u6570\u89e3\u9501\u5b83\u4eec\u3002|\n| `--version` | \u663e\u793a\u5f53\u524d\u7248\u672c\u3002|\n| `--help` | \u663e\u793a\u6b64\u5e2e\u52a9\u4fe1\u606f\u3002|\n\n## BACKUP SQL \u547d\u4ee4\u53c2\u8003\n\n\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u7b80\u5355\u547d\u4ee4 `BACKUP TO /path/to/backup` \u6765\u5907\u4efd\u6570\u636e\u3002\n\n> \u6ce8\u610f\uff1a Windows \u4e0d\u652f\u6301 `BACKUP`\u3002\u5efa\u8bae\u6539\u7528 [mysqldump](../Securing_and_compacting_a_table/Backup_and_restore.md#Backup-and-restore-with-mysqldump)\u3002\n\n> \u6ce8\u610f\uff1a `BACKUP` \u9700\u8981 [Manticore Buddy](../Installation/Manticore_Buddy.md)\u3002\u5982\u679c\u4e0d\u8d77\u4f5c\u7528\uff0c\u8bf7\u786e\u8ba4 Buddy \u5df2\u5b89\u88c5\u3002\n\n### BACKUP \u7684\u901a\u7528\u8bed\u6cd5\n\nCODE_BLOCK_4\n\n\u4f8b\u5982\uff0c\u8981\u5907\u4efd\u8868 `a` \u548c `b` \u5230 `/backup` \u76ee\u5f55\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a\n\nCODE_BLOCK_5\n\n\u5907\u4efd\u8fc7\u7a0b\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u9009\u9879\u8fdb\u884c\u63a7\u5236\u548c\u8c03\u6574\uff1a\n\n* `async`\uff1a\u4f7f\u5907\u4efd\u975e\u963b\u585e\uff0c\u7acb\u5373\u8fd4\u56de\u5907\u4efd\u8def\u5f84\u54cd\u5e94\uff0c\u5907\u4efd\u8fdb\u884c\u65f6\u53ef\u4ee5\u6267\u884c\u5176\u4ed6\u67e5\u8be2\u3002\u9ed8\u8ba4\u503c\u4e3a `0`\u3002\n* `compress`\uff1a\u542f\u7528\u4f7f\u7528 zstd \u7684\u6587\u4ef6\u538b\u7f29\u3002\u9ed8\u8ba4\u503c\u4e3a `0`\u3002\n\n\u4f8b\u5982\uff0c\u8981\u4ee5\u5f02\u6b65\u6a21\u5f0f\u542f\u7528\u538b\u7f29\u5c06\u6240\u6709\u8868\u5907\u4efd\u5230 `/tmp` \u76ee\u5f55\uff1a\n\nCODE_BLOCK_6\n\n### \u5f02\u6b65\u5907\u4efd\u884c\u4e3a\n\n\u4f7f\u7528 `async = 1`\uff08\u6216 `yes`\u3001`on`\u3001`true`\uff09\u65f6\uff0c\u5907\u4efd\u64cd\u4f5c\u5728\u540e\u53f0\u4efb\u52a1\u4e2d\u8fd0\u884c\uff1a\n\n* \u547d\u4ee4\u7acb\u5373\u8fd4\u56de\u5907\u4efd\u8def\u5f84\n* \u5907\u4efd\u8fdb\u884c\u65f6\u53ef\u7ee7\u7eed\u6267\u884c\u5176\u4ed6\u67e5\u8be2\n* \u5907\u4efd\u4efb\u52a1\u7531 Manticore Buddy \u7ba1\u7406\u7684\u72ec\u7acb\u7ebf\u7a0b\u8fd0\u884c\n* \u4efb\u52a1\u8fd0\u884c\u671f\u95f4\u4f1a\u51fa\u73b0\u5728 `SHOW QUERIES` \u8f93\u51fa\u4e2d\uff0c\u5b8c\u6210\u540e\u81ea\u52a8\u79fb\u9664\n\n**\u5f02\u6b65\u5907\u4efd\u793a\u4f8b\uff1a**\n\nCODE_BLOCK_7\n\n\u5c06\u7acb\u5373\u8fd4\u56de\u7c7b\u4f3c\u4e0b\u5217\u8f93\u51fa\uff1a\nCODE_BLOCK_8\n\n\u4f60\u53ef\u4ee5\u4f7f\u7528 `SHOW QUERIES` \u68c0\u67e5\u5907\u4efd\u662f\u5426\u4ecd\u5728\u8fd0\u884c\u3002\u5907\u4efd\u5b8c\u6210\u540e\u4efb\u52a1\u5c06\u4ece\u67e5\u8be2\u5217\u8868\u6d88\u5931\uff0c\u6240\u6709\u5907\u4efd\u6587\u4ef6\u5c06\u5b58\u5728\u6307\u5b9a\u76ee\u5f55\u3002\n\n### \u91cd\u8981\u6ce8\u610f\u4e8b\u9879\n\n1. \u5982\u679c\u5907\u4efd\u8def\u5f84\u5305\u542b\u7a7a\u683c\uff0c\u8bf7\u7528\u5355\u5f15\u53f7\u62ec\u8d77\u6765\uff0c\u4f8b\u5982 `BACKUP TO '/path/with spaces'`\n2. \u4e0d\u542b\u7a7a\u683c\u7684\u8def\u5f84\u65e0\u9700\u5f15\u53f7\uff1a`BACKUP TO /tmp/backup`\n3. \u652f\u6301 Windows \u8def\u5f84\uff1a`BACKUP TO 'C:\\path'` \u6216 `BACKUP TO C:\\windows\\backup`\n4. \u786e\u4fdd Manticore Buddy \u5df2\u542f\u52a8\uff08\u9ed8\u8ba4\u542f\u52a8\uff09\n5. \u5907\u4efd\u76ee\u5f55\u5fc5\u987b\u5b58\u5728\u4e14 Manticore \u8fdb\u7a0b\u6709\u5199\u6743\u9650\n\n### \u5907\u4efd\u5982\u4f55\u4fdd\u6301\u8868\u7684\u4e00\u81f4\u6027\n\n\u4e3a\u786e\u4fdd\u5907\u4efd\u671f\u95f4\u8868\u7684\u4e00\u81f4\u6027\uff0cManticore Search \u7684\u5907\u4efd\u5de5\u5177\u91c7\u7528\u521b\u65b0\u7684 [FREEZE \u548c UNFREEZE](../Securing_and_compacting_a_table/Freezing_and_locking_a_table.md) \u547d\u4ee4\u3002\u4e0d\u540c\u4e8e MySQL \u7b49\u4f20\u7edf\u7684\u9501\u8868\u529f\u80fd\uff0c`FREEZE` \u505c\u6b62\u5411\u78c1\u76d8\u5237\u65b0\u6570\u636e\uff0c\u4f46\u4ecd\u5141\u8bb8\u5bf9\u8868\u8fdb\u884c\u5199\u5165\uff08\u5728\u67d0\u79cd\u7a0b\u5ea6\u4e0a\uff09\u548c\u9009\u62e9\u66f4\u65b0\u6570\u636e\u3002\n\n\u4f46\u5982\u679c\u5728\u6d89\u53ca\u5927\u91cf\u63d2\u5165\u7684\u957f\u65f6\u95f4\u5907\u4efd\u64cd\u4f5c\u4e2d\uff0c\u5185\u5b58\u5757\u5927\u5c0f\u8d85\u51fa `rt_mem_limit` \u9608\u503c\uff0c\u6570\u636e\u53ef\u80fd\u88ab\u5237\u65b0\u5230\u78c1\u76d8\uff0c\u6b64\u65f6\u5199\u64cd\u4f5c\u5c06\u88ab\u963b\u585e\u76f4\u5230\u5237\u65b0\u5b8c\u6210\u3002\u5c3d\u7ba1\u5982\u6b64\uff0c\u8be5\u5de5\u5177\u5728\u8868\u51bb\u7ed3\u671f\u95f4\u5728\u8868\u9501\u3001\u6570\u636e\u4e00\u81f4\u6027\u548c\u6570\u636e\u5e93\u5199\u5165\u53ef\u7528\u6027\u4e4b\u95f4\u4fdd\u6301\u5e73\u8861\u3002\n\n\u4f7f\u7528 `manticore-backup` \u6216 SQL `BACKUP` \u547d\u4ee4\u65f6\uff0c\u4f1a\u6267\u884c\u4e00\u6b21 `FREEZE` \u6765\u51bb\u7ed3\u6240\u6709\u8981\u5907\u4efd\u7684\u8868\u3002\u63a5\u7740\u5907\u4efd\u8fc7\u7a0b\u9010\u4e2a\u5907\u4efd\u8868\uff0c\u6210\u529f\u5907\u4efd\u540e\u91ca\u653e\u76f8\u5e94\u8868\u7684\u51bb\u7ed3\u72b6\u6001\u3002\n\n\u5982\u679c\u5907\u4efd\u5931\u8d25\u6216\u4e2d\u65ad\uff0c\u5de5\u5177\u4f1a\u5c1d\u8bd5\u89e3\u51bb\u6240\u6709\u8868\u3002\n\n## \u4f7f\u7528 manticore-backup \u5de5\u5177\u6062\u590d\n\n\n\u8981\u4ece\u5907\u4efd\u6062\u590d Manticore \u5b9e\u4f8b\uff0c\u4f7f\u7528\u5e26\u6709 `--backup-dir` \u548c `--restore` \u53c2\u6570\u7684 `manticore-backup` \u547d\u4ee4\u3002\u4f8b\u5982\uff1a`manticore-backup --backup-dir=/path/to/backups --restore`\u3002\u5982\u679c `--restore` \u672a\u6307\u5b9a\u53c2\u6570\uff0c\u5219\u53ea\u4f1a\u5217\u51fa `--backup-dir` \u4e2d\u7684\u6240\u6709\u5907\u4efd\u3002\n\n\nCODE_BLOCK_9\n\n\n\nCODE_BLOCK_10\n\n\n\n", - "russian": "| Argument | \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 |\n|-|-|\n| `--backup-dir=path` | \u042d\u0442\u043e \u043f\u0443\u0442\u044c \u043a \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0430\u044f \u043a\u043e\u043f\u0438\u044f. \u041a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c. \u042d\u0442\u043e\u0442 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d \u0438 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u041f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f manticore-backup \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043f\u043e\u0434\u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \u0441 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043c\u0435\u0442\u043a\u043e\u0439 \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 (`backup-[datetime]`) \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442 \u0432 \u043d\u0435\u0433\u043e \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, `--backup-dir` \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u043c \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0432\u0430\u0448\u0438\u0445 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0445 \u043a\u043e\u043f\u0438\u0439, \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437.|\n| `--restore[=backup]` | \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u0437 `--backup-dir`. \u041f\u0440\u043e\u0441\u0442\u043e `--restore` \u0432\u044b\u0432\u0435\u0434\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0445 \u043a\u043e\u043f\u0438\u0439. `--restore=backup` \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u0438\u0437 `<--backup-dir>/backup`. |\n| `--force` | \u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0432\u0435\u0440\u0441\u0438\u0439 \u043f\u0440\u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a. |\n| `--disable-telemetry` | \u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u0444\u043b\u0430\u0433, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u0430\u043d\u043e\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u0442\u0440\u0438\u043a \u0432 Manticore. \u041c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f TELEMETRY=0 |\n| `--config=/path/to/manticore.conf` | \u041f\u0443\u0442\u044c \u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 Manticore. \u041d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e. \u0415\u0441\u043b\u0438 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d, \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0445\u043e\u0441\u0442\u0430 \u0438 \u043f\u043e\u0440\u0442\u0430 \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u0441 \u0434\u0435\u043c\u043e\u043d\u043e\u043c Manticore. \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 `manticore-backup` \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 [\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438](../Server_settings/Scripted_configuration.md). \u041c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u043f\u0446\u0438\u044e `--config` \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437, \u0435\u0441\u043b\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0440\u0430\u0437\u0431\u0440\u043e\u0441\u0430\u043d\u0430 \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u0444\u0430\u0439\u043b\u0430\u043c. |\n| `--tables=tbl1,tbl2, ...` | \u0421\u043f\u0438\u0441\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446 \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u0447\u043a\u0443 \u0441 \u0437\u0430\u043f\u044f\u0442\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e. \u0414\u043b\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u044d\u0442\u043e\u0442 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c. \u0412\u0441\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0435 Manticore, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0438\u043d\u0430\u0447\u0435 \u043e\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u043e\u0439. |\n| `--compress` | \u041d\u0443\u0436\u043d\u043e \u043b\u0438 \u0441\u0436\u0438\u043c\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e. | \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e |\n| `--unlock` | \u0412 \u0440\u0435\u0434\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u043a\u043e\u0433\u0434\u0430 \u0447\u0442\u043e-\u0442\u043e \u0438\u0434\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a, \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043c\u043e\u0433\u0443\u0442 \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u044d\u0442\u043e\u0442 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0438\u0445 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438. |\n| `--version` | \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e. |\n| `--help` | \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u044d\u0442\u0443 \u0441\u043f\u0440\u0430\u0432\u043a\u0443. |\n\n## \u041a\u043e\u043c\u0430\u043d\u0434\u0430 SQL BACKUP\n\n\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 SQL, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 `BACKUP TO /path/to/backup`.\n\n> \u041f\u0420\u0418\u041c\u0415\u0427\u0410\u041d\u0418\u0415: `BACKUP` \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 Windows. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 [mysqldump](../Securing_and_compacting_a_table/Backup_and_restore.md#Backup-and-restore-with-mysqldump) \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e.\n\n> \u041f\u0420\u0418\u041c\u0415\u0427\u0410\u041d\u0418\u0415: `BACKUP` \u0442\u0440\u0435\u0431\u0443\u0435\u0442 [Manticore Buddy](../Installation/Manticore_Buddy.md). \u0415\u0441\u043b\u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e Buddy \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d.\n\n### \u041e\u0431\u0449\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 BACKUP\n\nCODE_BLOCK_4\n\n\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0442\u0430\u0431\u043b\u0438\u0446 `a` \u0438 `b` \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 `/backup`, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:\n\nCODE_BLOCK_5\n\n\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043e\u043f\u0446\u0438\u0438 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a:\n\n* `async`: \u0434\u0435\u043b\u0430\u0435\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u043c, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u0441 \u043f\u0443\u0442\u0435\u043c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u2014 `0`.\n* `compress`: \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0441\u0436\u0430\u0442\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e zstd. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u2014 `0`.\n\n\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u0432 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0441 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c \u0441\u0436\u0430\u0442\u0438\u0435\u043c \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 `/tmp`:\n\nCODE_BLOCK_6\n\n### \u041f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\n\n\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 `async = 1` (\u0438\u043b\u0438 `yes`, `on`, `true`) \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0432 \u0444\u043e\u043d\u043e\u0432\u043e\u043c \u0437\u0430\u0434\u0430\u043d\u0438\u0438:\n\n* \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u0441 \u043f\u0443\u0442\u0435\u043c \u043a \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438\n* \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\n* \u0417\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435, \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u043c Manticore Buddy\n* \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u0432\u044b\u0432\u043e\u0434\u0435 `SHOW QUERIES` \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0441\u0447\u0435\u0437\u043d\u0435\u0442 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f\n\n**\u041f\u0440\u0438\u043c\u0435\u0440 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:**\n\nCODE_BLOCK_7\n\n\u042d\u0442\u043e \u0432\u0435\u0440\u043d\u0435\u0442 \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u0432\u043e\u0434, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:\nCODE_BLOCK_8\n\n\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f `SHOW QUERIES`. \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0438\u0441\u0447\u0435\u0437\u043d\u0435\u0442 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0430 \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435.\n\n### \u0412\u0430\u0436\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b\n\n1. \u041f\u0443\u0442\u044c \u043a \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u0435\u043b\u044b, \u0435\u0441\u043b\u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d \u0432 \u043e\u0434\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, `BACKUP TO '/path/with spaces'`\n2. \u041f\u0443\u0442\u0438 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0442: `BACKUP TO /tmp/backup`\n3. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0443\u0442\u0438 Windows: `BACKUP TO 'C:\\path'` \u0438\u043b\u0438 `BACKUP TO C:\\windows\\backup`\n4. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e Manticore Buddy \u0437\u0430\u043f\u0443\u0449\u0435\u043d (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0437\u0430\u043f\u0443\u0449\u0435\u043d)\n5. \u041a\u0430\u0442\u0430\u043b\u043e\u0433 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0438 \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c Manticore\n\n### \u041a\u0430\u043a \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\n\n\u0427\u0442\u043e\u0431\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Manticore Search \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0438\u043d\u043d\u043e\u0432\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b [FREEZE \u0438 UNFREEZE](../Securing_and_compacting_a_table/Freezing_and_locking_a_table.md). \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446 \u0432 MySQL, `FREEZE` \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0441\u0431\u0440\u043e\u0441 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0434\u0438\u0441\u043a, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044f \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c (\u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438) \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b.\n\n\u041e\u0434\u043d\u0430\u043a\u043e, \u0435\u0441\u043b\u0438 \u0440\u0430\u0437\u043c\u0435\u0440 \u0447\u0430\u043d\u043a\u0430 \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043f\u043e\u0440\u043e\u0433 `rt_mem_limit` \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0432\u0441\u0442\u0430\u0432\u043e\u043a, \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u0431\u0440\u043e\u0448\u0435\u043d\u044b \u043d\u0430 \u0434\u0438\u0441\u043a, \u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0434\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0441\u0431\u0440\u043e\u0441\u0430. \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u044d\u0442\u043e, \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0431\u0430\u043b\u0430\u043d\u0441 \u043c\u0435\u0436\u0434\u0443 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446, \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043c\u043e\u0440\u043e\u0437\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446.\n\n\u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 `manticore-backup` \u0438\u043b\u0438 SQL-\u043a\u043e\u043c\u0430\u043d\u0434\u0443 `BACKUP`, \u043a\u043e\u043c\u0430\u043d\u0434\u0430 `FREEZE` \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0438 \u0437\u0430\u043c\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0435, \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442 \u043a\u0430\u0436\u0434\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0441\u043d\u0438\u043c\u0430\u044f \u0437\u0430\u043c\u043e\u0440\u043e\u0437\u043a\u0443 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0431\u044d\u043a\u0430\u043f\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b.\n\n\u0415\u0441\u043b\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043c\u043e\u0440\u043e\u0437\u0438\u0442\u044c \u0432\u0441\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b.\n\n## \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 manticore-backup\n\n\n\u0414\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 Manticore \u0438\u0437 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 `manticore-backup` \u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 `--backup-dir` \u0438 `--restore`. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: `manticore-backup --backup-dir=/path/to/backups --restore`. \u0415\u0441\u043b\u0438 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f `--restore`, \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0445 \u043a\u043e\u043f\u0438\u0439 \u0432 `--backup-dir`.\n\n\nCODE_BLOCK_9\n\n\n\nCODE_BLOCK_10\n\n\n\n" - }, - "is_code_or_comment": false, - "model": "openai:gpt-4.1-mini", - "updated_at": 1766339814 - }, - "__meta": { - "source_text": "# Backup and Restore\n\nBacking up your tables on a regular basis is essential for recovery in the event of system crashes, hardware failure, or data corruption/loss. It's also highly recommended to make backups before upgrading to a new Manticore Search version or running [ALTER TABLE](../Updating_table_schema_and_settings.md#Updating-table-schema-in-RT-mode).\n\nBacking up database systems can be done in two unique ways: logical and physical backups. Each of these methods has its pros and cons, which may vary based on the specific database environment and needs. Here, we'll delve into the distinction between these two types of backups.\n\n### Logical Backups\n\nLogical backups entail exporting the database schema and data as SQL statements or as data formats specific to the database. This backup form is typically readable by humans and can be employed to restore the database on various systems or database engines.\n\nPros and cons of logical backups:\n- \u2795 **Portability:** Logical backups are generally more portable than physical backups, as they can be used to restore the database on different hardware or operating systems.\n- \u2795 **Flexibility:** Logical backups allow you to selectively restore specific tables, indexes, or other database objects.\n- \u2795 **Compatibility:** Logical backups can be used to migrate data between different database management systems or versions, provided the target system supports the exported format or SQL statements.\n- \u2796 **Slower Backup and Restore:** Logical backups can be slower than physical backups, as they require the database engine to convert the data into SQL statements or another export format.\n- \u2796 **Increased System Load:** Creating logical backups can cause higher system load, as the process requires more CPU and memory resources to process and export the data.\n\nManticore Search supports [mysqldump](../Securing_and_compacting_a_table/Backup_and_restore.md#Backup-and-restore-with-mysqldump) for logical backups.\n\n### Physical Backups\n\nPhysical backups involve copying the raw data files and system files that comprise the database. This type of backup essentially creates a snapshot of the database's physical state at a given point in time.\n\nPros and cons of physical backups:\n- \u2795 **Speed:** Physical backups are usually faster than logical backups, as they involve copying raw data files directly from disk.\n- \u2795 **Consistency:** Physical backups ensure a consistent backup of the entire database, as all related files are copied together.\n- \u2795 **Lower System Load:** Creating physical backups generally places less load on the system compared to logical backups, as the process does not involve additional data processing.\n- \u2796 **Portability:** Physical backups are typically less portable than logical backups, as they may be dependent on the specific hardware, operating system, or database engine configuration.\n- \u2796 **Flexibility:** Physical backups do not allow for the selective restoration of specific database objects, as the backup contains the entire database's raw files.\n- \u2796 **Compatibility:** Physical backups cannot be used to migrate data between different database management systems or versions, as the raw data files may not be compatible across different platforms or software.\n\nManticore Search has [manticore-backup](../Securing_and_compacting_a_table/Backup_and_restore.md#Using-manticore-backup-command-line-tool) command line tool for physical backups.\n\nIn summary, logical backups provide more flexibility, portability, and compatibility but can be slower and more resource-intensive, while physical backups are faster, more consistent, and less resource-intensive but may be limited in terms of portability and flexibility. The choice between these two backup methods will depend on your specific database environment, hardware, and requirements.\n\n## Using manticore-backup command line tool\n\nThe `manticore-backup` tool, included in the official Manticore Search [packages](https://manticoresearch.com/install), automates the process of backing up tables for an instance running in [RT mode](../Read_this_first.md#Real-time-mode-vs-plain-mode).\n\n### Installation\n\n**If you followed [the official installation instructions](https://manticoresearch.com/install/), you should already have everything installed and don't need to worry.** Otherwise, [`manticore-backup`](https://github.com/manticoresoftware/manticoresearch-backup) requires PHP 8.1.10 and [specific modules](https://github.com/manticoresoftware/executor/blob/main/build-linux) or [`manticore-executor`](https://github.com/manticoresoftware/executor), and you need to ensure that one of these is available.\n\nNote that `manticore-backup` is not available for Windows yet.\n\n### How to use\n\nFirst, make sure you're running `manticore-backup` on the same server where the Manticore instance you are about to back up is running.\n\nSecond, we recommend running the tool under the `root` user so the tool can transfer ownership of the files you are backing up. Otherwise, a backup will be also made but with no ownership transfer. In either case, you should make sure that `manticore-backup` has access to the data dir of the Manticore instance.\n\n\n\nThe only required argument for `manticore-backup` is `--backup-dir`, which specifies the destination for the backup. If you don't provide any additional arguments, `manticore-backup` will:\n- locate a Manticore instance running with the default configuration\n- create a subdirectory in the `--backup-dir` directory with a timestamped name\n- backup all tables found in the instance\n\n\n```bash\nmanticore-backup --config=path/to/manticore.conf --backup-dir=backupdir\n```\n\n\n```bash\nCopyright (c) 2023-2024, Manticore Software LTD (https://manticoresearch.com)\n\nManticore config file: /etc/manticoresearch/manticore.conf\nTables to backup: all tables\nTarget dir: /mnt/backup/\n\nManticore config\n endpoint = 127.0.0.1:9308\n\nManticore versions:\n manticore: 5.0.2\n columnar: 1.15.4\n secondary: 1.15.4\n2022-10-04 17:18:39 [Info] Starting the backup...\n2022-10-04 17:18:39 [Info] Backing up config files...\n2022-10-04 17:18:39 [Info] config files - OK\n2022-10-04 17:18:39 [Info] Backing up tables...\n2022-10-04 17:18:39 [Info] pq (percolate) [425B]...\n2022-10-04 17:18:39 [Info] OK\n2022-10-04 17:18:39 [Info] products (rt) [512B]...\n2022-10-04 17:18:39 [Info] OK\n2022-10-04 17:18:39 [Info] Running sync\n2022-10-04 17:18:42 [Info] OK\n2022-10-04 17:18:42 [Info] You can find backup here: /mnt/backup/backup-20221004171839\n2022-10-04 17:18:42 [Info] Elapsed time: 2.76s\n2022-10-04 17:18:42 [Info] Done\n```\n\n\n\nTo back up specific tables only, use the `--tables` flag followed by a comma-separated list of tables, for example `--tables=tbl1,tbl2`. This will only backup the specified tables and ignore the rest.\n\n\n```bash\nmanticore-backup --backup-dir=/mnt/backup/ --tables=products\n```\n\n\n```bash\nCopyright (c) 2023-2024, Manticore Software LTD (https://manticoresearch.com)\n\nManticore config file: /etc/manticoresearch/manticore.conf\nTables to backup: products\nTarget dir: /mnt/backup/\n\nManticore config\n endpoint = 127.0.0.1:9308\n\nManticore versions:\n manticore: 5.0.3\n columnar: 1.16.1\n secondary: 0.0.0\n2022-10-04 17:25:02 [Info] Starting the backup...\n2022-10-04 17:25:02 [Info] Backing up config files...\n2022-10-04 17:25:02 [Info] config files - OK\n2022-10-04 17:25:02 [Info] Backing up tables...\n2022-10-04 17:25:02 [Info] products (rt) [512B]...\n2022-10-04 17:25:02 [Info] OK\n2022-10-04 17:25:02 [Info] Running sync\n2022-10-04 17:25:06 [Info] OK\n2022-10-04 17:25:06 [Info] You can find backup here: /mnt/backup/backup-20221004172502\n2022-10-04 17:25:06 [Info] Elapsed time: 4.82s\n2022-10-04 17:25:06 [Info] Done\n```\n\n\n### Arguments\n\n| Argument | Description |\n|-|-|\n| `--backup-dir=path` | This is the path to the backup directory where the backup will be stored. The directory must already exist. This argument is required and has no default value. On each backup run, manticore-backup will create a subdirectory in the provided directory with a timestamp in the name (`backup-[datetime]`), and will copy all required tables to it. So the `--backup-dir` is a container for all your backups, and it's safe to run the script multiple times.|\n| `--restore[=backup]` | Restore from `--backup-dir`. Just --restore lists available backups. `--restore=backup` will restore from `<--backup-dir>/backup`. |\n| `--force` | Skip versions check on restore and gracefully restore the backup. |\n| `--disable-telemetry` | Pass this flag in case you want to disable sending anonymized metrics to Manticore. You can also use environment variable TELEMETRY=0 |\n| `--config=/path/to/manticore.conf` | Path to the Manticore configuration. Optional. If not provided, a default configuration for your operating system will be used. Used to determine the host and port for communication with the Manticore daemon. The `manticore-backup` tool supports [dynamic configuration](../Server_settings/Scripted_configuration.md) files. You can specify the `--config` option multiple times if your configuration is spread across multiple files. |\n| `--tables=tbl1,tbl2, ...` | Semicolon-separated list of tables that you want to back up. To back up all tables, omit this argument. All the provided tables must exist in the Manticore instance you are backing up from, or the backup will fail. |\n| `--compress` | Whether the backed up files should be compressed. Not enabled by default. | optional |\n| `--unlock` | In rare cases when something goes wrong, tables can be left in a locked state. Use this argument to unlock them. |\n| `--version` | Show the current version. |\n| `--help` | Show this help. |\n\n## BACKUP SQL command reference\n\nYou can also back up your data through SQL by running the simple command `BACKUP TO /path/to/backup`.\n\n> NOTE: `BACKUP` is not supported in Windows. Consider using [mysqldump](../Securing_and_compacting_a_table/Backup_and_restore.md#Backup-and-restore-with-mysqldump) instead.\n\n> NOTE: `BACKUP` requires [Manticore Buddy](../Installation/Manticore_Buddy.md). If it doesn't work, make sure Buddy is installed.\n\n### General syntax of BACKUP\n\n```sql\nBACKUP\n [{TABLE | TABLES} a[, b]]\n TO path_to_backup\n [{OPTION | OPTIONS}\n async = {on | off | 1 | 0 | true | false | yes | no}\n [, compress = {on | off | 1 | 0 | true | false | yes | no}]\n ]\n```\n\nFor instance, to back up tables `a` and `b` to the `/backup` directory, run the following command:\n\n```sql\nBACKUP TABLES a, b TO /backup\n```\n\nThere are options available to control and adjust the backup process, such as:\n\n* `async`: makes the backup non-blocking, allowing you to receive a response with the backup path immediately and run other queries while the backup is ongoing. The default value is `0`.\n* `compress`: enables file compression using zstd. The default value is `0`.\n\nFor example, to run a backup of all tables in async mode with compression enabled to the `/tmp` directory:\n\n```sql\nBACKUP TO /tmp OPTION async = yes, compress = yes\n```\n\n### Async backup behavior\n\nWhen using `async = 1` (or `yes`, `on`, `true`), the backup operation runs in a background task:\n\n* The command returns immediately with the backup path\n* You can continue running other queries while the backup is in progress\n* The backup task runs in a separate thread managed by Manticore Buddy\n* While running, the backup task will appear in `SHOW QUERIES` output and will be removed automatically when complete\n\n**Example of async backup:**\n\n```sql\nBACKUP TO /tmp/mybackup OPTION async = 1\n```\n\nThis will return immediately with output like:\n```\n+----------------------------------+\n| Path |\n+----------------------------------+\n| /tmp/mybackup/backup-20221004... |\n+----------------------------------+\n```\n\nYou can check if the backup is still running by using `SHOW QUERIES`. Once complete, the task will disappear from the queries list and all backup files will be present in the specified directory.\n\n### Important considerations\n\n1. The backup path can contain spaces if enclosed in single quotes, e.g., `BACKUP TO '/path/with spaces'`\n2. Paths without spaces don't require quotes: `BACKUP TO /tmp/backup`\n3. Windows paths are supported: `BACKUP TO 'C:\\path'` or `BACKUP TO C:\\windows\\backup`\n4. Ensure that Manticore Buddy is launched (it is by default)\n5. The backup directory must exist and be writable by the Manticore process\n\n### How backup maintains consistency of tables\n\nTo ensure consistency of tables during backup, Manticore Search's backup tools use the innovative [FREEZE and UNFREEZE](../Securing_and_compacting_a_table/Freezing_and_locking_a_table.md) commands. Unlike the traditional lock and unlock tables feature of e.g. MySQL, `FREEZE` stops flushing data to disk while still permitting writing (to some extent) and selecting updated data from the table.\n\nHowever, if your RAM chunk size grows beyond the `rt_mem_limit` threshold during lengthy backup operations involving many inserts, data may be flushed to disk, and write operations will be blocked until flushing is complete. Despite this, the tool maintains a balance between table locking, data consistency, and database write availability while the table is frozen.\n\nWhen you use `manticore-backup` or the SQL `BACKUP` command, the `FREEZE` command is executed once and freezes all tables you are backing up simultaneously. The backup process subsequently backs up each table one by one, releasing the freeze after successfully backing up each table.\n\nIf backup fails or gets interrupted, the tool tries to unfreeze all the tables.\n\n## Restore by using manticore-backup tool\n\n\nTo restore a Manticore instance from a backup, use the `manticore-backup` command with the `--backup-dir` and `--restore` arguments. For example: `manticore-backup --backup-dir=/path/to/backups --restore`. If you don't provide any argument for `--restore`, it will simply list all the backups in the `--backup-dir`.\n\n\n```bash\nmanticore-backup --backup-dir=/mnt/backup/ --restore\n```\n\n\n\n```bash\nCopyright (c) 2023-2024, Manticore Software LTD (https://manticoresearch.com)\n\nManticore config file:\nBackup dir: /tmp/\n\nAvailable backups: 3\n backup-20221006144635 (Oct 06 2022 14:46:35)\n backup-20221006145233 (Oct 06 2022 14:52:33)\n backup-20221007104044 (Oct 07 2022 10:40:44)\n```\n\n\n\n\n\nTo start a restore job, run `manticore-backup` with the flag `--restore=backup name`, where `backup name` is the name of the backup directory within the `--backup-dir`. Note that:\n1. There can't be any Manticore instance running on the same host and port as the one being restored.\n2. The old `manticore.json` file must not exist.\n3. The old configuration file must not exist.\n4. The old data directory must exist and be empty.\n\nIf all conditions are met, the restore will proceed. The tool will provide hints, so you don't have to memorize them. It's crucial to avoid overwriting existing files, so make sure to remove them prior to the restore if they still exist. Hence all the conditions.\n\n\n```bash\nmanticore-backup --backup-dir=/mnt/backup/ --restore=backup-20221007104044\n```\n\n\n\n```bash\nCopyright (c) 2023-2024, Manticore Software LTD (https://manticoresearch.com)\n\nManticore config file:\nBackup dir: /tmp/\n2022-10-07 11:17:25 [Info] Starting to restore...\n\nManticore config\n endpoint = 127.0.0.1:9308\n2022-10-07 11:17:25 [Info] Restoring config files...\n2022-10-07 11:17:25 [Info] config files - OK\n2022-10-07 11:17:25 [Info] Restoring state files...\n2022-10-07 11:17:25 [Info] config files - OK\n2022-10-07 11:17:25 [Info] Restoring data files...\n2022-10-07 11:17:25 [Info] config files - OK\n2022-10-07 11:17:25 [Info] The backup '/tmp/backup-20221007104044' was successfully restored.\n2022-10-07 11:17:25 [Info] Elapsed time: 0.02s\n2022-10-07 11:17:25 [Info] Done\n```\n\n\n\n## Backup and restore with mysqldump\n\nManticore supports `mysqldump` utility from MySQL up to 9.6 and `mariadb-dump` utility from MariaDB up to 12.2.\n\n\n\n> NOTE: some versions of `mysqldump` / `mariadb-dump` require [Manticore Buddy](../Installation/Manticore_Buddy.md). If the dump isn't working, make sure Buddy is installed.\n\nTo create a backup of your Manticore Search database, you can use the `mysqldump` command. We will use the default port and host in the examples.\n\nNote, `mysqldump` is supported only for real-time tables.\n\n\n```bash\nmysqldump -h0 -P9306 manticore > manticore_backup.sql\nmariadb-dump -h0 -P9306 manticore > manticore_backup.sql\n```\n\nExecuting this command will produce a backup file named `manticore_backup.sql`. This file will hold all data and table schemas.\n\n\n```bash\nmysqldump -h0 -P9306 --replace --net-buffer-length=16m -etc manticore tbl > tbl.sql\n```\n\nThis will produce a backup file `tbl.sql` with `replace` commands instead of `insert`, with column names retained in each batch. Documents will be batched up to 16 megabytes large. There will be no `drop`/`create table` commands. This is useful for full-text reindexation after changing tokenization settings.\n\n\n```bash\nmysqldump -etc --replace -h0 -P9306 -ucluster manticore --skip-lock-tables cluster:tbl | mysql -P9306 -h0\nmariadb-dump -etc --replace -h0 -P9306 -ucluster manticore --skip-lock-tables cluster:tbl | mysql -P9306 -h0\n```\n\nIn this case, `mysqldump` will generate commands like `REPLACE INTO cluster:table ...`, which will be sent directly to the Manticore instance, resulting in the documents being reinserted.\nUse the `cluster` user and the `-t` flag to enable replication mode. See the details in the notes below.\n\n\n\n\n### Restore\n\nIf you're looking to restore a Manticore Search database from a backup file, the mysql client is your tool of choice.\n\nNote, if you are restoring in [Plain mode](../Read_this_first.md#Real-time-mode-vs-plain-mode), you cannot drop and recreate tables directly. Therefore, you should:\n- Use `mysqldump` with the `-t` option to exclude `CREATE TABLE` statements from your backup.\n- Manually [TRUNCATE](../Emptying_a_table.md) the tables before proceeding with the restoration.\n\n\n```bash\nmysql -h0 -P9306 < manticore_backup.sql\nmariadb -h0 -P9306 < manticore_backup.sql\n```\n\nThis command enables you to restore everything from the `manticore_backup.sql` file.\n\n\n### Additional options\n\nHere are some more settings that can be used with mysqldump to tailor your backup:\n\n- `-t` skips `drop`/`create` table commands. Useful for full-text reindexation of a table after changing tokenization settings.\n- `--no-data`: This setting omits table data from the backup, resulting in a backup file that consists only of table schemas.\n- `--ignore-table=[database_name].[table_name]`: This option allows you to bypass a particular table during the backup operation. Note that the database name must be `manticore`.\n- `--replace` to perform `replace` instead of `insert`. Useful for full-text reindexation of a table after changing tokenization settings.\n- `--net-buffer-length=16M` to make batches up to 16 megabytes large for faster restoration.\n- `-e` to batch up documents. Useful for faster restoration.\n- `-c` to keep column names. Useful for reindexation of a table after changing its schema (e.g., changing field order).\n\nFor a comprehensive list of settings and their thorough descriptions, kindly refer to the official [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html) or [MariaDB documentation](https://mariadb.com/kb/en/mariadb-dump/).\n\n### Notes\n\n* To create a dump in replication mode (where the dump includes `INSERT/REPLACE INTO :`):\n - Make sure the table isn't changed while it's being dumped.\n - Use the `cluster` user. For example: `mysqldump -u cluster ...` or `mariadb-dump -u cluster ...`. You can change the username that enables replication mode for `mysqldump` by running `SET GLOBAL cluster_user = new_name`.\n - Use the `-t` flag.\n - Use the `--skip-lock-tables` flag.\n - When specifying a table in replication mode, you need to follow the `cluster_name:table_name` syntax. For example: `mysqldump -P9306 -h0 -t -ucluster manticore cluster:tbl`.\n* It's recommended to explicitly specify the `manticore` database when you plan to back up all databases, instead of using the `--all-databases` option.\n* Note that `mysqldump` does not support backing up distributed tables and cannot back up tables containing non-stored fields. For such cases, consider using `manticore-backup` or the `BACKUP` SQL command. If you have distributed tables, it is recommended to always specify the tables to be dumped.\n\n\n", - "updated_at": 1774672505, - "source_md5": "072d6ae6476afcfdee4cd0bc8edba3e2", - "source_snapshot": "/private/var/folders/19/fcmvcvj57qg026vpv2z93rg80000gn/T/translator-source-i9mppddeqr0j16QD6Jx", - "target_snapshot": "/private/var/folders/19/fcmvcvj57qg026vpv2z93rg80000gn/T/translator-target-502glvphpsau0i614LR" - }, - "8157903252ec6e8fa637726eb45b37b9f1a3dded1cfc19b55dbaf29b6b136c23": { - "original": "To start a restore job, run `manticore-backup` with the flag `--restore=backup name`, where `backup name` is the name of the backup directory within the `--backup-dir`. Note that:\n1. There can't be any Manticore instance running on the same host and port as the one being restored.\n2. The old `manticore.json` file must not exist.\n3. The old configuration file must not exist.\n4. The old data directory must exist and be empty.\n\nIf all conditions are met, the restore will proceed. The tool will provide hints, so you don't have to memorize them. It's crucial to avoid overwriting existing files, so make sure to remove them prior to the restore if they still exist. Hence all the conditions.\n\n\nCODE_BLOCK_11\n\n\n\nCODE_BLOCK_12\n\n\n\n## Backup and restore with mysqldump\n\nManticore supports `mysqldump` utility from MySQL up to 9.6 and `mariadb-dump` utility from MariaDB up to 12.1.\n\n\n\n> NOTE: some versions of `mysqldump` / `mariadb-dump` require [Manticore Buddy](../Installation/Manticore_Buddy.md). If the dump isn't working, make sure Buddy is installed.\n\nTo create a backup of your Manticore Search database, you can use the `mysqldump` command. We will use the default port and host in the examples.\n\nNote, `mysqldump` is supported only for real-time tables.\n\n\nCODE_BLOCK_13\n\nExecuting this command will produce a backup file named `manticore_backup.sql`. This file will hold all data and table schemas.\n\n\nCODE_BLOCK_14\n\nThis will produce a backup file `tbl.sql` with `replace` commands instead of `insert`, with column names retained in each batch. Documents will be batched up to 16 megabytes large. There will be no `drop`/`create table` commands. This is useful for full-text reindexation after changing tokenization settings.\n\n\nCODE_BLOCK_15\n\nIn this case, `mysqldump` will generate commands like `REPLACE INTO cluster:table ...`, which will be sent directly to the Manticore instance, resulting in the documents being reinserted.\nUse the `cluster` user and the `-t` flag to enable replication mode. See the details in the notes below.\n\n\n\n\n### Restore\n\nIf you're looking to restore a Manticore Search database from a backup file, the mysql client is your tool of choice.\n\nNote, if you are restoring in [Plain mode](../Read_this_first.md#Real-time-mode-vs-plain-mode), you cannot drop and recreate tables directly. Therefore, you should:\n- Use `mysqldump` with the `-t` option to exclude `CREATE TABLE` statements from your backup.\n- Manually [TRUNCATE](../Emptying_a_table.md) the tables before proceeding with the restoration.\n\n\nCODE_BLOCK_16\n\nThis command enables you to restore everything from the `manticore_backup.sql` file.\n\n\n### Additional options\n\nHere are some more settings that can be used with mysqldump to tailor your backup:\n\n- `-t` skips `drop`/`create` table commands. Useful for full-text reindexation of a table after changing tokenization settings.\n- `--no-data`: This setting omits table data from the backup, resulting in a backup file that consists only of table schemas.\n- `--ignore-table=[database_name].[table_name]`: This option allows you to bypass a particular table during the backup operation. Note that the database name must be `manticore`.\n- `--replace` to perform `replace` instead of `insert`. Useful for full-text reindexation of a table after changing tokenization settings.\n- `--net-buffer-length=16M` to make batches up to 16 megabytes large for faster restoration.\n- `-e` to batch up documents. Useful for faster restoration.\n- `-c` to keep column names. Useful for reindexation of a table after changing its schema (e.g., changing field order).\n\nFor a comprehensive list of settings and their thorough descriptions, kindly refer to the official [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html) or [MariaDB documentation](https://mariadb.com/kb/en/mariadb-dump/).\n\n### Notes\n\n* To create a dump in replication mode (where the dump includes `INSERT/REPLACE INTO :`):\n - Make sure the table isn't changed while it's being dumped.\n - Use the `cluster` user. For example: `mysqldump -u cluster ...` or `mariadb-dump -u cluster ...`. You can change the username that enables replication mode for `mysqldump` by running `SET GLOBAL cluster_user = new_name`.\n - Use the `-t` flag.\n - Use the `--skip-lock-tables` flag.\n - When specifying a table in replication mode, you need to follow the `cluster_name:table_name` syntax. For example: `mysqldump -P9306 -h0 -t -ucluster manticore cluster:tbl`.\n* It's recommended to explicitly specify the `manticore` database when you plan to back up all databases, instead of using the `--all-databases` option.\n* Note that `mysqldump` does not support backing up distributed tables and cannot back up tables containing non-stored fields. For such cases, consider using `manticore-backup` or the `BACKUP` SQL command. If you have distributed tables, it is recommended to always specify the tables to be dumped.\n\n\n", - "translations": { - "chinese": "\u8981\u542f\u52a8\u6062\u590d\u4efb\u52a1\uff0c\u8bf7\u4f7f\u7528 `manticore-backup` \u5e76\u6dfb\u52a0 `--restore=backup name` \u6807\u5fd7\uff0c\u5176\u4e2d `backup name` \u662f `--backup-dir` \u5185\u7684\u5907\u4efd\u76ee\u5f55\u540d\u79f0\u3002\u8bf7\u6ce8\u610f\uff1a\n1. \u4e0d\u80fd\u5728\u4e0e\u6b63\u5728\u6062\u590d\u7684\u5b9e\u4f8b\u76f8\u540c\u7684\u4e3b\u673a\u548c\u7aef\u53e3\u4e0a\u8fd0\u884c\u4efb\u4f55 Manticore \u5b9e\u4f8b\u3002\n2. \u65e7\u7684 `manticore.json` \u6587\u4ef6\u5fc5\u987b\u4e0d\u5b58\u5728\u3002\n3. \u65e7\u7684\u914d\u7f6e\u6587\u4ef6\u5fc5\u987b\u4e0d\u5b58\u5728\u3002\n4. \u65e7\u7684\u6570\u636e\u76ee\u5f55\u5fc5\u987b\u5b58\u5728\u4e14\u4e3a\u7a7a\u3002\n\n\u5982\u679c\u6240\u6709\u6761\u4ef6\u90fd\u6ee1\u8db3\uff0c\u6062\u590d\u5c06\u5f00\u59cb\u3002\u8be5\u5de5\u5177\u4f1a\u63d0\u4f9b\u63d0\u793a\uff0c\u56e0\u6b64\u60a8\u65e0\u9700\u8bb0\u4f4f\u5b83\u4eec\u3002\u4e3a\u4e86\u907f\u514d\u8986\u76d6\u73b0\u6709\u6587\u4ef6\uff0c\u52a1\u5fc5\u5728\u6062\u590d\u524d\u5220\u9664\u5b83\u4eec\uff08\u5982\u679c\u4ecd\u7136\u5b58\u5728\uff09\u3002\u56e0\u6b64\u6240\u6709\u6761\u4ef6\u3002\n\n\nCODE_BLOCK_11\n\n\n\nCODE_BLOCK_12\n\n\n\n## \u4f7f\u7528 mysqldump \u8fdb\u884c\u5907\u4efd\u548c\u6062\u590d\n\nManticore \u652f\u6301\u6765\u81ea MySQL \u7684 `mysqldump` \u5de5\u5177\uff08\u6700\u9ad8\u5230 9.6 \u7248\u672c\uff09\u548c\u6765\u81ea MariaDB \u7684 `mariadb-dump` \u5de5\u5177\uff08\u6700\u9ad8\u5230 12.1 \u7248\u672c\uff09\u3002\n\n\n\n> \u6ce8\u610f\uff1a\u67d0\u4e9b\u7248\u672c\u7684 `mysqldump` / `mariadb-dump` \u9700\u8981 [Manticore Buddy](../Installation/Manticore_Buddy.md)\u3002\u5982\u679c\u8f6c\u50a8\u4e0d\u8d77\u4f5c\u7528\uff0c\u8bf7\u786e\u4fdd\u5df2\u5b89\u88c5 Buddy\u3002\n\n\u8981\u521b\u5efa Manticore Search \u6570\u636e\u5e93\u7684\u5907\u4efd\uff0c\u53ef\u4ee5\u4f7f\u7528 `mysqldump` \u547d\u4ee4\u3002\u5728\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u9ed8\u8ba4\u7aef\u53e3\u548c\u4e3b\u673a\u3002\n\n\u6ce8\u610f\uff0c`mysqldump` \u4ec5\u652f\u6301\u5b9e\u65f6\u8868\u3002\n\n\nCODE_BLOCK_13\n\n\u6267\u884c\u6b64\u547d\u4ee4\u5c06\u751f\u6210\u4e00\u4e2a\u540d\u4e3a `manticore_backup.sql` \u7684\u5907\u4efd\u6587\u4ef6\u3002\u8be5\u6587\u4ef6\u5c06\u5305\u542b\u6240\u6709\u6570\u636e\u548c\u8868\u6a21\u5f0f\u3002\n\n\nCODE_BLOCK_14\n\n\u8fd9\u5c06\u751f\u6210\u4e00\u4e2a\u540d\u4e3a `tbl.sql` \u7684\u5907\u4efd\u6587\u4ef6\uff0c\u5176\u4e2d\u4f7f\u7528 `replace` \u547d\u4ee4\u4ee3\u66ff `insert`\uff0c\u5e76\u4fdd\u7559\u6bcf\u6279\u4e2d\u7684\u5217\u540d\u3002\u6587\u6863\u5c06\u88ab\u5206\u6279\u5904\u7406\uff0c\u6bcf\u6279\u6700\u5927\u4e3a 16 \u5146\u5b57\u8282\u3002\u4e0d\u4f1a\u5305\u542b `drop`/`create table` \u547d\u4ee4\u3002\u8fd9\u5bf9\u4e8e\u5728\u66f4\u6539\u5206\u8bcd\u8bbe\u7f6e\u540e\u8fdb\u884c\u5168\u6587\u91cd\u65b0\u7d22\u5f15\u975e\u5e38\u6709\u7528\u3002\n\n\nCODE_BLOCK_15\n\n\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c`mysqldump` \u5c06\u751f\u6210\u7c7b\u4f3c `REPLACE INTO cluster:table ...` \u7684\u547d\u4ee4\uff0c\u8fd9\u4e9b\u547d\u4ee4\u5c06\u76f4\u63a5\u53d1\u9001\u5230 Manticore \u5b9e\u4f8b\uff0c\u4ece\u800c\u5bfc\u81f4\u6587\u6863\u88ab\u91cd\u65b0\u63d2\u5165\u3002\n\u4f7f\u7528 `cluster` \u7528\u6237\u548c `-t` \u6807\u5fd7\u4ee5\u542f\u7528\u590d\u5236\u6a21\u5f0f\u3002\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u4e0b\u9762\u7684\u6ce8\u610f\u4e8b\u9879\u3002\n\n\n\n\n### \u6062\u590d\n\n\u5982\u679c\u60a8\u60f3\u4ece\u5907\u4efd\u6587\u4ef6\u6062\u590d Manticore Search \u6570\u636e\u5e93\uff0c\u5219 mysql \u5ba2\u6237\u7aef\u662f\u60a8\u7684\u9996\u9009\u5de5\u5177\u3002\n\n\u6ce8\u610f\uff0c\u5982\u679c\u60a8\u5728 [Plain mode](../Read_this_first.md#Real-time-mode-vs-plain-mode) \u4e2d\u8fdb\u884c\u6062\u590d\uff0c\u4e0d\u80fd\u76f4\u63a5\u5220\u9664\u548c\u91cd\u65b0\u521b\u5efa\u8868\u3002\u56e0\u6b64\uff0c\u60a8\u5e94\u8be5\uff1a\n- \u4f7f\u7528 `mysqldump` \u7684 `-t` \u9009\u9879\uff0c\u4ece\u5907\u4efd\u4e2d\u6392\u9664 `CREATE TABLE` \u8bed\u53e5\u3002\n- \u5728\u8fdb\u884c\u6062\u590d\u4e4b\u524d\uff0c\u624b\u52a8 [TRUNCATE](../Emptying_a_table.md) \u8868\u3002\n\n\nCODE_BLOCK_16\n\n\u6b64\u547d\u4ee4\u4f7f\u60a8\u80fd\u591f\u4ece `manticore_backup.sql` \u6587\u4ef6\u6062\u590d\u6240\u6709\u5185\u5bb9\u3002\n\n\n### \u5176\u4ed6\u9009\u9879\n\n\u4ee5\u4e0b\u662f\u4e00\u4e9b\u53ef\u4ee5\u4e0e mysqldump \u4e00\u8d77\u4f7f\u7528\u7684\u66f4\u591a\u8bbe\u7f6e\uff0c\u4ee5\u5b9a\u5236\u60a8\u7684\u5907\u4efd\uff1a\n\n- `-t` \u8df3\u8fc7 `drop`/`create` \u8868\u547d\u4ee4\u3002\u5728\u66f4\u6539\u5206\u8bcd\u8bbe\u7f6e\u540e\u5bf9\u8868\u8fdb\u884c\u5168\u6587\u91cd\u65b0\u7d22\u5f15\u65f6\u5f88\u6709\u7528\u3002\n- `--no-data`\uff1a\u6b64\u8bbe\u7f6e\u4f1a\u4ece\u5907\u4efd\u4e2d\u7701\u7565\u8868\u6570\u636e\uff0c\u5bfc\u81f4\u5907\u4efd\u6587\u4ef6\u4ec5\u5305\u542b\u8868\u6a21\u5f0f\u3002\n- `--ignore-table=[database_name].[table_name]`\uff1a\u6b64\u9009\u9879\u5141\u8bb8\u60a8\u5728\u5907\u4efd\u64cd\u4f5c\u671f\u95f4\u8df3\u8fc7\u7279\u5b9a\u8868\u3002\u8bf7\u6ce8\u610f\uff0c\u6570\u636e\u5e93\u540d\u79f0\u5fc5\u987b\u662f `manticore`\u3002\n- `--replace` \u4ee5 `replace` \u4ee3\u66ff `insert`\u3002\u5728\u66f4\u6539\u5206\u8bcd\u8bbe\u7f6e\u540e\u5bf9\u8868\u8fdb\u884c\u5168\u6587\u91cd\u65b0\u7d22\u5f15\u65f6\u5f88\u6709\u7528\u3002\n- `--net-buffer-length=16M` \u4ee5\u4f7f\u6279\u6b21\u6700\u5927\u8fbe\u5230 16 \u5146\u5b57\u8282\uff0c\u4ece\u800c\u52a0\u5feb\u6062\u590d\u901f\u5ea6\u3002\n- `-e` \u4ee5\u6279\u91cf\u5904\u7406\u6587\u6863\u3002\u5bf9\u4e8e\u66f4\u5feb\u7684\u6062\u590d\u5f88\u6709\u7528\u3002\n- `-c` \u4ee5\u4fdd\u7559\u5217\u540d\u3002\u5728\u66f4\u6539\u8868\u6a21\u5f0f\uff08\u4f8b\u5982\u66f4\u6539\u5b57\u6bb5\u987a\u5e8f\uff09\u540e\u5bf9\u8868\u8fdb\u884c\u91cd\u65b0\u7d22\u5f15\u65f6\u5f88\u6709\u7528\u3002\n\n\u6709\u5173\u8bbe\u7f6e\u7684\u5b8c\u6574\u5217\u8868\u53ca\u5176\u8be6\u7ec6\u63cf\u8ff0\uff0c\u8bf7\u53c2\u8003\u5b98\u65b9 [MySQL \u6587\u6863](https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html) \u6216 [MariaDB \u6587\u6863](https://mariadb.com/kb/en/mariadb-dump/)\u3002\n\n### \u6ce8\u610f\u4e8b\u9879\n\n* \u8981\u5728\u590d\u5236\u6a21\u5f0f\u4e0b\u521b\u5efa\u8f6c\u50a8\uff08\u5176\u4e2d\u8f6c\u50a8\u5305\u542b `INSERT/REPLACE INTO :`\uff09\uff1a\n - \u786e\u4fdd\u5728\u8f6c\u50a8\u671f\u95f4\u8868\u672a\u88ab\u66f4\u6539\u3002\n - \u4f7f\u7528 `cluster` \u7528\u6237\u3002\u4f8b\u5982\uff1a`mysqldump -u cluster ...` \u6216 `mariadb-dump -u cluster ...`\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c `SET GLOBAL cluster_user = new_name` \u6765\u66f4\u6539\u542f\u7528\u590d\u5236\u6a21\u5f0f\u7684 `mysqldump` \u7684\u7528\u6237\u540d\u3002\n - \u4f7f\u7528 `-t` \u6807\u5fd7\u3002\n - \u4f7f\u7528 `--skip-lock-tables` \u6807\u5fd7\u3002\n - \u5728\u590d\u5236\u6a21\u5f0f\u4e0b\u6307\u5b9a\u8868\u65f6\uff0c\u9700\u8981\u9075\u5faa `cluster_name:table_name` \u8bed\u6cd5\u3002\u4f8b\u5982\uff1a`mysqldump -P9306 -h0 -t -ucluster manticore cluster:tbl`\u3002\n* \u5efa\u8bae\u5728\u8ba1\u5212\u5907\u4efd\u6240\u6709\u6570\u636e\u5e93\u65f6\uff0c\u663e\u5f0f\u6307\u5b9a `manticore` \u6570\u636e\u5e93\uff0c\u800c\u4e0d\u662f\u4f7f\u7528 `--all-databases` \u9009\u9879\u3002\n* \u8bf7\u6ce8\u610f\uff0c`mysqldump` \u4e0d\u652f\u6301\u5907\u4efd\u5206\u5e03\u5f0f\u8868\uff0c\u4e5f\u65e0\u6cd5\u5907\u4efd\u5305\u542b\u975e\u5b58\u50a8\u5b57\u6bb5\u7684\u8868\u3002\u5bf9\u4e8e\u8fd9\u4e9b\u60c5\u51b5\uff0c\u8bf7\u8003\u8651\u4f7f\u7528 `manticore-backup` \u6216 `BACKUP` SQL \u547d\u4ee4\u3002\u5982\u679c\u60a8\u6709\u5206\u5e03\u5f0f\u8868\uff0c\u5efa\u8bae\u59cb\u7ec8\u6307\u5b9a\u8981\u8f6c\u50a8\u7684\u8868\u3002\n\n\n", - "russian": "\u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 `manticore-backup` \u0441 \u0444\u043b\u0430\u0433\u043e\u043c `--restore=\u0438\u043c\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438`, \u0433\u0434\u0435 `\u0438\u043c\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438` \u2014 \u044d\u0442\u043e \u0438\u043c\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 `--backup-dir`. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e:\n1. \u041d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 Manticore \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u0445\u043e\u0441\u0442\u0435 \u0438 \u043f\u043e\u0440\u0442\u0443, \u0447\u0442\u043e \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c\u044b\u0439.\n2. \u0421\u0442\u0430\u0440\u044b\u0439 \u0444\u0430\u0439\u043b `manticore.json` \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c.\n3. \u0421\u0442\u0430\u0440\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c.\n4. \u0421\u0442\u0430\u0440\u0430\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u043b\u0436\u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0438 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u043e\u0439.\n\n\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b, \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f. \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0445 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c. \u041a\u0440\u0430\u0439\u043d\u0435 \u0432\u0430\u0436\u043d\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u043b\u0438 \u0438\u0445 \u043f\u0435\u0440\u0435\u0434 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0432\u0441\u0435 \u0435\u0449\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442. \u041e\u0442\u0441\u044e\u0434\u0430 \u0438 \u0432\u0441\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f.\n\n\nCODE_BLOCK_11\n\n\n\nCODE_BLOCK_12\n\n\n\n## \u0420\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e mysqldump\n\nManticore \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 `mysqldump` \u0438\u0437 MySQL \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 9.6 \u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 `mariadb-dump` \u0438\u0437 MariaDB \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 12.1.\n\n\n\n> \u041f\u0420\u0418\u041c\u0415\u0427\u0410\u041d\u0418\u0415: \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 `mysqldump` / `mariadb-dump` \u0442\u0440\u0435\u0431\u0443\u044e\u0442 [Manticore Buddy](../Installation/Manticore_Buddy.md). \u0415\u0441\u043b\u0438 \u0434\u0430\u043c\u043f \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e Buddy \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d.\n\n\u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0432\u0430\u0448\u0435\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 Manticore Search, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 `mysqldump`. \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0440\u0442 \u0438 \u0445\u043e\u0441\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.\n\n\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, `mysqldump` \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.\n\n\nCODE_BLOCK_13\n\n\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0444\u0430\u0439\u043b \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c `manticore_backup.sql`. \u042d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0441\u0445\u0435\u043c\u044b \u0442\u0430\u0431\u043b\u0438\u0446.\n\n\nCODE_BLOCK_14\n\n\u042d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0444\u0430\u0439\u043b \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 `tbl.sql` \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 `replace` \u0432\u043c\u0435\u0441\u0442\u043e `insert`, \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0438\u043c\u0435\u043d \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u0442\u0438\u0438. \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u043f\u0430\u0440\u0442\u0438\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u0434\u043e 16 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442. \u041a\u043e\u043c\u0430\u043d\u0434 `drop`/`create table` \u043d\u0435 \u0431\u0443\u0434\u0435\u0442. \u042d\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0442\u043e\u043a\u0435\u043d\u0438\u0437\u0430\u0446\u0438\u0438.\n\n\nCODE_BLOCK_15\n\n\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 `mysqldump` \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432\u0438\u0434\u0430 `REPLACE INTO cluster:table ...`, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 Manticore, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043a \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0439 \u0432\u0441\u0442\u0430\u0432\u043a\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432.\n\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f `cluster` \u0438 \u0444\u043b\u0430\u0433 `-t` \u0434\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0430 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f\u0445 \u043d\u0438\u0436\u0435.\n\n\n\n\n### \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\n\n\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 Manticore Search \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438, \u043a\u043b\u0438\u0435\u043d\u0442 mysql \u2014 \u0432\u0430\u0448 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432\u044b\u0431\u043e\u0440\u0430.\n\n\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0435 \u0432 [\u0440\u0435\u0436\u0438\u043c\u0435 Plain](../Read_this_first.md#Real-time-mode-vs-plain-mode), \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442:\n- \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c `mysqldump` \u0441 \u043e\u043f\u0446\u0438\u0435\u0439 `-t`, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b `CREATE TABLE` \u0438\u0437 \u0432\u0430\u0448\u0435\u0439 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438.\n- \u0412\u0440\u0443\u0447\u043d\u0443\u044e [\u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c (TRUNCATE)](../Emptying_a_table.md) \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f.\n\n\nCODE_BLOCK_16\n\n\u042d\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 `manticore_backup.sql`.\n\n\n### \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u043f\u0446\u0438\u0438\n\n\u0412\u043e\u0442 \u0435\u0449\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441 mysqldump \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:\n\n- `-t` \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b `drop`/`create` \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0442\u043e\u043a\u0435\u043d\u0438\u0437\u0430\u0446\u0438\u0438.\n- `--no-data`: \u042d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438\u0437 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0447\u0435\u0433\u043e \u0444\u0430\u0439\u043b \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0445\u0435\u043c\u044b \u0442\u0430\u0431\u043b\u0438\u0446.\n- `--ignore-table=[\u0438\u043c\u044f_\u0431\u0430\u0437\u044b_\u0434\u0430\u043d\u043d\u044b\u0445].[\u0438\u043c\u044f_\u0442\u0430\u0431\u043b\u0438\u0446\u044b]`: \u042d\u0442\u0430 \u043e\u043f\u0446\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0438\u043c\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c `manticore`.\n- `--replace` \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f `replace` \u0432\u043c\u0435\u0441\u0442\u043e `insert`. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0442\u043e\u043a\u0435\u043d\u0438\u0437\u0430\u0446\u0438\u0438.\n- `--net-buffer-length=16M` \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0430\u0440\u0442\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u0434\u043e 16 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442 \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f.\n- `-e` \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f.\n- `-c` \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u043d \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0435\u0435 \u0441\u0445\u0435\u043c\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u043f\u043e\u043b\u0435\u0439).\n\n\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0438 \u0438\u0445 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0439 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 [\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 MySQL](https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html) \u0438\u043b\u0438 [\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 MariaDB](https://mariadb.com/kb/en/mariadb-dump/).\n\n### \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f\n\n* \u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u0430\u043c\u043f \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 (\u0433\u0434\u0435 \u0434\u0430\u043c\u043f \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 `INSERT/REPLACE INTO <\u0438\u043c\u044f_\u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430>:<\u0438\u043c\u044f_\u0442\u0430\u0431\u043b\u0438\u0446\u044b>`):\n - \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0430\u043c\u043f\u0430.\n - \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f `cluster`. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: `mysqldump -u cluster ...` \u0438\u043b\u0438 `mariadb-dump -u cluster ...`. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0440\u0435\u0436\u0438\u043c \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0434\u043b\u044f `mysqldump`, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 `SET GLOBAL cluster_user = new_name`.\n - \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0444\u043b\u0430\u0433 `-t`.\n - \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0444\u043b\u0430\u0433 `--skip-lock-tables`.\n - \u041f\u0440\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 `\u0438\u043c\u044f_\u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430:\u0438\u043c\u044f_\u0442\u0430\u0431\u043b\u0438\u0446\u044b`. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: `mysqldump -P9306 -h0 -t -ucluster manticore cluster:tbl`.\n* \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 `manticore`, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0432\u0441\u0435\u0445 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432\u043c\u0435\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u043f\u0446\u0438\u0438 `--all-databases`.\n* \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e `mysqldump` \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u0438 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 \u043d\u0435\u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435 \u043f\u043e\u043b\u044f. \u0412 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f `manticore-backup` \u0438\u043b\u0438 SQL-\u043a\u043e\u043c\u0430\u043d\u0434\u044b `BACKUP`. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0434\u043b\u044f \u0434\u0430\u043c\u043f\u0430.\n\n\n" - }, - "is_code_or_comment": false, - "model": "deepseek/deepseek-v3.2", - "updated_at": 1769054453 - }, - "0edb2ac99ca821f76c65d788eff230d215aa7d184c5f688072d24a0ba7a53b6c": { - "original": "To start a restore job, run `manticore-backup` with the flag `--restore=backup name`, where `backup name` is the name of the backup directory within the `--backup-dir`. Note that:\n1. There can't be any Manticore instance running on the same host and port as the one being restored.\n2. The old `manticore.json` file must not exist.\n3. The old configuration file must not exist.\n4. The old data directory must exist and be empty.\n\nIf all conditions are met, the restore will proceed. The tool will provide hints, so you don't have to memorize them. It's crucial to avoid overwriting existing files, so make sure to remove them prior to the restore if they still exist. Hence all the conditions.\n\n\nCODE_BLOCK_11\n\n\n\nCODE_BLOCK_12\n\n\n\n## Backup and restore with mysqldump\n\nManticore supports `mysqldump` utility from MySQL up to 9.6 and `mariadb-dump` utility from MariaDB up to 12.2.\n\n\n\n> NOTE: some versions of `mysqldump` / `mariadb-dump` require [Manticore Buddy](../Installation/Manticore_Buddy.md). If the dump isn't working, make sure Buddy is installed.\n\nTo create a backup of your Manticore Search database, you can use the `mysqldump` command. We will use the default port and host in the examples.\n\nNote, `mysqldump` is supported only for real-time tables.\n\n\nCODE_BLOCK_13\n\nExecuting this command will produce a backup file named `manticore_backup.sql`. This file will hold all data and table schemas.\n\n\nCODE_BLOCK_14\n\nThis will produce a backup file `tbl.sql` with `replace` commands instead of `insert`, with column names retained in each batch. Documents will be batched up to 16 megabytes large. There will be no `drop`/`create table` commands. This is useful for full-text reindexation after changing tokenization settings.\n\n\nCODE_BLOCK_15\n\nIn this case, `mysqldump` will generate commands like `REPLACE INTO cluster:table ...`, which will be sent directly to the Manticore instance, resulting in the documents being reinserted.\nUse the `cluster` user and the `-t` flag to enable replication mode. See the details in the notes below.\n\n\n\n\n### Restore\n\nIf you're looking to restore a Manticore Search database from a backup file, the mysql client is your tool of choice.\n\nNote, if you are restoring in [Plain mode](../Read_this_first.md#Real-time-mode-vs-plain-mode), you cannot drop and recreate tables directly. Therefore, you should:\n- Use `mysqldump` with the `-t` option to exclude `CREATE TABLE` statements from your backup.\n- Manually [TRUNCATE](../Emptying_a_table.md) the tables before proceeding with the restoration.\n\n\nCODE_BLOCK_16\n\nThis command enables you to restore everything from the `manticore_backup.sql` file.\n\n\n### Additional options\n\nHere are some more settings that can be used with mysqldump to tailor your backup:\n\n- `-t` skips `drop`/`create` table commands. Useful for full-text reindexation of a table after changing tokenization settings.\n- `--no-data`: This setting omits table data from the backup, resulting in a backup file that consists only of table schemas.\n- `--ignore-table=[database_name].[table_name]`: This option allows you to bypass a particular table during the backup operation. Note that the database name must be `manticore`.\n- `--replace` to perform `replace` instead of `insert`. Useful for full-text reindexation of a table after changing tokenization settings.\n- `--net-buffer-length=16M` to make batches up to 16 megabytes large for faster restoration.\n- `-e` to batch up documents. Useful for faster restoration.\n- `-c` to keep column names. Useful for reindexation of a table after changing its schema (e.g., changing field order).\n\nFor a comprehensive list of settings and their thorough descriptions, kindly refer to the official [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html) or [MariaDB documentation](https://mariadb.com/kb/en/mariadb-dump/).\n\n### Notes\n\n* To create a dump in replication mode (where the dump includes `INSERT/REPLACE INTO :`):\n - Make sure the table isn't changed while it's being dumped.\n - Use the `cluster` user. For example: `mysqldump -u cluster ...` or `mariadb-dump -u cluster ...`. You can change the username that enables replication mode for `mysqldump` by running `SET GLOBAL cluster_user = new_name`.\n - Use the `-t` flag.\n - Use the `--skip-lock-tables` flag.\n - When specifying a table in replication mode, you need to follow the `cluster_name:table_name` syntax. For example: `mysqldump -P9306 -h0 -t -ucluster manticore cluster:tbl`.\n* It's recommended to explicitly specify the `manticore` database when you plan to back up all databases, instead of using the `--all-databases` option.\n* Note that `mysqldump` does not support backing up distributed tables and cannot back up tables containing non-stored fields. For such cases, consider using `manticore-backup` or the `BACKUP` SQL command. If you have distributed tables, it is recommended to always specify the tables to be dumped.\n\n\n", - "translations": { - "chinese": "\u8981\u542f\u52a8\u6062\u590d\u4efb\u52a1\uff0c\u8bf7\u4f7f\u7528 `manticore-backup` \u5e76\u6dfb\u52a0 `--restore=backup name` \u6807\u5fd7\uff0c\u5176\u4e2d `backup name` \u662f `--backup-dir` \u5185\u7684\u5907\u4efd\u76ee\u5f55\u540d\u79f0\u3002\u8bf7\u6ce8\u610f\uff1a\n1. \u88ab\u6062\u590d\u7684\u4e3b\u673a\u548c\u7aef\u53e3\u4e0a\u4e0d\u80fd\u8fd0\u884c\u4efb\u4f55 Manticore \u5b9e\u4f8b\u3002\n2. \u65e7\u7684 `manticore.json` \u6587\u4ef6\u5fc5\u987b\u4e0d\u5b58\u5728\u3002\n3. \u65e7\u7684\u914d\u7f6e\u6587\u4ef6\u5fc5\u987b\u4e0d\u5b58\u5728\u3002\n4. \u65e7\u7684\u6570\u636e\u76ee\u5f55\u5fc5\u987b\u5b58\u5728\u4e14\u4e3a\u7a7a\u3002\n\n\u5982\u679c\u6240\u6709\u6761\u4ef6\u90fd\u6ee1\u8db3\uff0c\u6062\u590d\u5c06\u5f00\u59cb\u3002\u8be5\u5de5\u5177\u4f1a\u63d0\u4f9b\u63d0\u793a\uff0c\u56e0\u6b64\u60a8\u65e0\u9700\u8bb0\u4f4f\u5b83\u4eec\u3002\u4e3a\u4e86\u907f\u514d\u8986\u76d6\u73b0\u6709\u6587\u4ef6\uff0c\u52a1\u5fc5\u5728\u6062\u590d\u524d\u5220\u9664\u5b83\u4eec\uff08\u5982\u679c\u4ecd\u7136\u5b58\u5728\uff09\u3002\u56e0\u6b64\u6240\u6709\u6761\u4ef6\u3002\n\n\nCODE_BLOCK_11\n\n\n\nCODE_BLOCK_12\n\n\n\n## \u4f7f\u7528 mysqldump \u8fdb\u884c\u5907\u4efd\u548c\u6062\u590d\n\nManticore \u652f\u6301\u6765\u81ea MySQL \u7684 `mysqldump` \u5de5\u5177\uff08\u6700\u9ad8\u5230 9.6 \u7248\u672c\uff09\u548c\u6765\u81ea MariaDB \u7684 `mariadb-dump` \u5de5\u5177\uff08\u6700\u9ad8\u5230 12.2 \u7248\u672c\uff09\u3002\n\n\n\n> \u6ce8\u610f\uff1a\u67d0\u4e9b\u7248\u672c\u7684 `mysqldump` / `mariadb-dump` \u9700\u8981 [Manticore Buddy](../Installation/Manticore_Buddy.md)\u3002\u5982\u679c\u8f6c\u50a8\u4e0d\u8d77\u4f5c\u7528\uff0c\u8bf7\u786e\u4fdd\u5df2\u5b89\u88c5 Buddy\u3002\n\n\u8981\u521b\u5efa Manticore Search \u6570\u636e\u5e93\u7684\u5907\u4efd\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 `mysqldump` \u547d\u4ee4\u3002\u5728\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u9ed8\u8ba4\u7aef\u53e3\u548c\u4e3b\u673a\u3002\n\n\u6ce8\u610f\uff0c`mysqldump` \u4ec5\u652f\u6301\u5b9e\u65f6\u8868\u3002\n\n\nCODE_BLOCK_13\n\n\u6267\u884c\u6b64\u547d\u4ee4\u5c06\u751f\u6210\u4e00\u4e2a\u540d\u4e3a `manticore_backup.sql` \u7684\u5907\u4efd\u6587\u4ef6\u3002\u8be5\u6587\u4ef6\u5c06\u5305\u542b\u6240\u6709\u6570\u636e\u548c\u8868\u6a21\u5f0f\u3002\n\n\nCODE_BLOCK_14\n\n\u8fd9\u5c06\u751f\u6210\u4e00\u4e2a\u540d\u4e3a `tbl.sql` \u7684\u5907\u4efd\u6587\u4ef6\uff0c\u5176\u4e2d\u4f7f\u7528 `replace` \u547d\u4ee4\u4ee3\u66ff `insert`\uff0c\u5e76\u4fdd\u7559\u6bcf\u6279\u4e2d\u7684\u5217\u540d\u3002\u6587\u6863\u5c06\u88ab\u5206\u6279\u5904\u7406\uff0c\u6bcf\u6279\u6700\u5927\u4e3a 16 \u5146\u5b57\u8282\u3002\u4e0d\u4f1a\u51fa\u73b0 `drop`/`create table` \u547d\u4ee4\u3002\u8fd9\u5bf9\u4e8e\u5728\u66f4\u6539\u5206\u8bcd\u8bbe\u7f6e\u540e\u8fdb\u884c\u5168\u6587\u91cd\u65b0\u7d22\u5f15\u975e\u5e38\u6709\u7528\u3002\n\n\nCODE_BLOCK_15\n\n\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c`mysqldump` \u5c06\u751f\u6210\u7c7b\u4f3c `REPLACE INTO cluster:table ...` \u7684\u547d\u4ee4\uff0c\u8fd9\u4e9b\u547d\u4ee4\u5c06\u76f4\u63a5\u53d1\u9001\u5230 Manticore \u5b9e\u4f8b\uff0c\u4ece\u800c\u5bfc\u81f4\u6587\u6863\u88ab\u91cd\u65b0\u63d2\u5165\u3002\n\u4f7f\u7528 `cluster` \u7528\u6237\u548c `-t` \u6807\u5fd7\u4ee5\u542f\u7528\u590d\u5236\u6a21\u5f0f\u3002\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u4e0b\u9762\u7684\u8bf4\u660e\u3002\n\n\n\n\n### \u6062\u590d\n\n\u5982\u679c\u60a8\u60f3\u4ece\u5907\u4efd\u6587\u4ef6\u6062\u590d Manticore Search \u6570\u636e\u5e93\uff0cmysql \u5ba2\u6237\u7aef\u662f\u60a8\u7684\u9996\u9009\u5de5\u5177\u3002\n\n\u6ce8\u610f\uff0c\u5982\u679c\u60a8\u5728 [Plain mode](../Read_this_first.md#Real-time-mode-vs-plain-mode) \u4e0b\u8fdb\u884c\u6062\u590d\uff0c\u4e0d\u80fd\u76f4\u63a5\u5220\u9664\u548c\u91cd\u65b0\u521b\u5efa\u8868\u3002\u56e0\u6b64\uff0c\u60a8\u5e94\u8be5\uff1a\n- \u4f7f\u7528 `mysqldump` \u7684 `-t` \u9009\u9879\uff0c\u4ece\u5907\u4efd\u4e2d\u6392\u9664 `CREATE TABLE` \u8bed\u53e5\u3002\n- \u5728\u8fdb\u884c\u6062\u590d\u4e4b\u524d\uff0c\u624b\u52a8 [TRUNCATE](../Emptying_a_table.md) \u8868\u3002\n\n\nCODE_BLOCK_16\n\n\u6b64\u547d\u4ee4\u4f7f\u60a8\u80fd\u591f\u4ece `manticore_backup.sql` \u6587\u4ef6\u6062\u590d\u6240\u6709\u5185\u5bb9\u3002\n\n\n### \u5176\u4ed6\u9009\u9879\n\n\u4ee5\u4e0b\u662f\u4e00\u4e9b\u53ef\u4ee5\u4e0e mysqldump \u4e00\u8d77\u4f7f\u7528\u7684\u66f4\u591a\u8bbe\u7f6e\uff0c\u4ee5\u5b9a\u5236\u60a8\u7684\u5907\u4efd\uff1a\n\n- `-t` \u8df3\u8fc7 `drop`/`create` \u8868\u547d\u4ee4\u3002\u5728\u66f4\u6539\u5206\u8bcd\u8bbe\u7f6e\u540e\u5bf9\u8868\u8fdb\u884c\u5168\u6587\u91cd\u65b0\u7d22\u5f15\u65f6\u5f88\u6709\u7528\u3002\n- `--no-data`\uff1a\u6b64\u8bbe\u7f6e\u4f1a\u4ece\u5907\u4efd\u4e2d\u7701\u7565\u8868\u6570\u636e\uff0c\u5bfc\u81f4\u5907\u4efd\u6587\u4ef6\u4ec5\u5305\u542b\u8868\u6a21\u5f0f\u3002\n- `--ignore-table=[database_name].[table_name]`\uff1a\u6b64\u9009\u9879\u5141\u8bb8\u60a8\u5728\u5907\u4efd\u64cd\u4f5c\u671f\u95f4\u8df3\u8fc7\u7279\u5b9a\u8868\u3002\u8bf7\u6ce8\u610f\uff0c\u6570\u636e\u5e93\u540d\u79f0\u5fc5\u987b\u662f `manticore`\u3002\n- `--replace` \u4ee5 `replace` \u4ee3\u66ff `insert`\u3002\u5728\u66f4\u6539\u5206\u8bcd\u8bbe\u7f6e\u540e\u5bf9\u8868\u8fdb\u884c\u5168\u6587\u91cd\u65b0\u7d22\u5f15\u65f6\u5f88\u6709\u7528\u3002\n- `--net-buffer-length=16M` \u4ee5\u4f7f\u6279\u6b21\u6700\u5927\u4e3a 16 \u5146\u5b57\u8282\uff0c\u4ece\u800c\u52a0\u5feb\u6062\u590d\u901f\u5ea6\u3002\n- `-e` \u4ee5\u6279\u91cf\u5904\u7406\u6587\u6863\u3002\u5bf9\u4e8e\u66f4\u5feb\u7684\u6062\u590d\u5f88\u6709\u7528\u3002\n- `-c` \u4ee5\u4fdd\u7559\u5217\u540d\u3002\u5728\u66f4\u6539\u8868\u6a21\u5f0f\uff08\u4f8b\u5982\u66f4\u6539\u5b57\u6bb5\u987a\u5e8f\uff09\u540e\u5bf9\u8868\u8fdb\u884c\u91cd\u65b0\u7d22\u5f15\u65f6\u5f88\u6709\u7528\u3002\n\n\u5982\u9700\u5b8c\u6574\u7684\u8bbe\u7f6e\u5217\u8868\u53ca\u5176\u8be6\u7ec6\u63cf\u8ff0\uff0c\u8bf7\u53c2\u8003\u5b98\u65b9 [MySQL \u6587\u6863](https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html) \u6216 [MariaDB \u6587\u6863](https://mariadb.com/kb/en/mariadb-dump/)\u3002\n\n### \u6ce8\u610f\u4e8b\u9879\n\n* \u8981\u5728\u590d\u5236\u6a21\u5f0f\u4e0b\u521b\u5efa\u8f6c\u50a8\uff08\u5176\u4e2d\u8f6c\u50a8\u5305\u542b `INSERT/REPLACE INTO :`\uff09\uff1a\n - \u786e\u4fdd\u5728\u8f6c\u50a8\u671f\u95f4\u8868\u672a\u88ab\u66f4\u6539\u3002\n - \u4f7f\u7528 `cluster` \u7528\u6237\u3002\u4f8b\u5982\uff1a`mysqldump -u cluster ...` \u6216 `mariadb-dump -u cluster ...`\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c `SET GLOBAL cluster_user = new_name` \u6765\u66f4\u6539\u542f\u7528\u590d\u5236\u6a21\u5f0f\u7684 `mysqldump` \u7684\u7528\u6237\u540d\u3002\n - \u4f7f\u7528 `-t` \u6807\u5fd7\u3002\n - \u4f7f\u7528 `--skip-lock-tables` \u6807\u5fd7\u3002\n - \u5728\u590d\u5236\u6a21\u5f0f\u4e0b\u6307\u5b9a\u8868\u65f6\uff0c\u9700\u8981\u9075\u5faa `cluster_name:table_name` \u8bed\u6cd5\u3002\u4f8b\u5982\uff1a`mysqldump -P9306 -h0 -t -ucluster manticore cluster:tbl`\u3002\n* \u5efa\u8bae\u5728\u8ba1\u5212\u5907\u4efd\u6240\u6709\u6570\u636e\u5e93\u65f6\uff0c\u663e\u5f0f\u6307\u5b9a `manticore` \u6570\u636e\u5e93\uff0c\u800c\u4e0d\u662f\u4f7f\u7528 `--all-databases` \u9009\u9879\u3002\n* \u8bf7\u6ce8\u610f\uff0c`mysqldump` \u4e0d\u652f\u6301\u5907\u4efd\u5206\u5e03\u5f0f\u8868\uff0c\u4e5f\u65e0\u6cd5\u5907\u4efd\u5305\u542b\u975e\u5b58\u50a8\u5b57\u6bb5\u7684\u8868\u3002\u5bf9\u4e8e\u8fd9\u4e9b\u60c5\u51b5\uff0c\u8bf7\u8003\u8651\u4f7f\u7528 `manticore-backup` \u6216 `BACKUP` SQL \u547d\u4ee4\u3002\u5982\u679c\u60a8\u6709\u5206\u5e03\u5f0f\u8868\uff0c\u5efa\u8bae\u59cb\u7ec8\u6307\u5b9a\u8981\u8f6c\u50a8\u7684\u8868\u3002\n\n\n", - "russian": "\u0427\u0442\u043e\u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 `manticore-backup` \u0441 \u0444\u043b\u0430\u0433\u043e\u043c `--restore=\u0438\u043c\u044f_\u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439_\u043a\u043e\u043f\u0438\u0438`, \u0433\u0434\u0435 `\u0438\u043c\u044f_\u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439_\u043a\u043e\u043f\u0438\u0438` \u2014 \u044d\u0442\u043e \u0438\u043c\u044f \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 `--backup-dir`. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:\n1. \u041d\u0430 \u0442\u043e\u043c \u0436\u0435 \u0445\u043e\u0441\u0442\u0435 \u0438 \u043f\u043e\u0440\u0442\u0443 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 Manticore, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f.\n2. \u0421\u0442\u0430\u0440\u044b\u0439 \u0444\u0430\u0439\u043b `manticore.json` \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c.\n3. \u0421\u0442\u0430\u0440\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c.\n4. \u0421\u0442\u0430\u0440\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0438 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u043c.\n\n\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b, \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0441\u044f. \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u043c \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0445 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c. \u041e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u044b \u0443\u0434\u0430\u043b\u0438\u043b\u0438 \u0438\u0445 \u043f\u0435\u0440\u0435\u0434 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0435\u0449\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442. \u041e\u0442\u0441\u044e\u0434\u0430 \u0438 \u0432\u0441\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f.\n\n\nCODE_BLOCK_11\n\n\n\nCODE_BLOCK_12\n\n\n\n## \u0420\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e mysqldump\n\nManticore \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 `mysqldump` \u0438\u0437 MySQL \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 9.6 \u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 `mariadb-dump` \u0438\u0437 MariaDB \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 12.2.\n\n\n\n> \u041f\u0420\u0418\u041c\u0415\u0427\u0410\u041d\u0418\u0415: \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 `mysqldump` / `mariadb-dump` \u0442\u0440\u0435\u0431\u0443\u044e\u0442 [Manticore Buddy](../Installation/Manticore_Buddy.md). \u0415\u0441\u043b\u0438 \u0434\u0430\u043c\u043f \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e Buddy \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d.\n\n\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0432\u0430\u0448\u0435\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 Manticore Search \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 `mysqldump`. \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0440\u0442 \u0438 \u0445\u043e\u0441\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.\n\n\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e `mysqldump` \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.\n\n\nCODE_BLOCK_13\n\n\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0444\u0430\u0439\u043b \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c `manticore_backup.sql`. \u042d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0441\u0445\u0435\u043c\u044b \u0442\u0430\u0431\u043b\u0438\u0446.\n\n\nCODE_BLOCK_14\n\n\u042d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0444\u0430\u0439\u043b \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 `tbl.sql` \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 `replace` \u0432\u043c\u0435\u0441\u0442\u043e `insert`, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0438\u043c\u0435\u043d\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u0442\u0438\u0438. \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0430\u0440\u0442\u0438\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u0434\u043e 16 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442. \u041a\u043e\u043c\u0430\u043d\u0434 `drop`/`create table` \u043d\u0435 \u0431\u0443\u0434\u0435\u0442. \u042d\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0442\u043e\u043a\u0435\u043d\u0438\u0437\u0430\u0446\u0438\u0438.\n\n\nCODE_BLOCK_15\n\n\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 `mysqldump` \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432\u0438\u0434\u0430 `REPLACE INTO cluster:table ...`, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 Manticore, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0447\u0435\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b.\n\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f `cluster` \u0438 \u0444\u043b\u0430\u0433 `-t` \u0434\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0430 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441\u043c. \u0432 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f\u0445 \u043d\u0438\u0436\u0435.\n\n\n\n\n### \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\n\n\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 Manticore Search \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438, \u043a\u043b\u0438\u0435\u043d\u0442 mysql \u2014 \u0432\u0430\u0448 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432\u044b\u0431\u043e\u0440\u0430.\n\n\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0435 \u0432 [Plain \u0440\u0435\u0436\u0438\u043c\u0435](../Read_this_first.md#Real-time-mode-vs-plain-mode), \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0437\u0430\u043d\u043e\u0432\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043b\u0435\u0434\u0443\u0435\u0442:\n- \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c `mysqldump` \u0441 \u043e\u043f\u0446\u0438\u0435\u0439 `-t`, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0437 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b `CREATE TABLE`.\n- \u0412\u0440\u0443\u0447\u043d\u0443\u044e [TRUNCATE](../Emptying_a_table.md) \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u0435\u0440\u0435\u0434 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c.\n\n\nCODE_BLOCK_16\n\n\u042d\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0441\u0451 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 `manticore_backup.sql`.\n\n\n### \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u043f\u0446\u0438\u0438\n\n\u0412\u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441 mysqldump \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:\n\n- `-t` \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b `drop`/`create` \u0442\u0430\u0431\u043b\u0438\u0446. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0442\u043e\u043a\u0435\u043d\u0438\u0437\u0430\u0446\u0438\u0438.\n- `--no-data`: \u044d\u0442\u0430 \u043e\u043f\u0446\u0438\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u0438\u0437 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0447\u0435\u0433\u043e \u0444\u0430\u0439\u043b \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0445\u0435\u043c\u044b \u0442\u0430\u0431\u043b\u0438\u0446.\n- `--ignore-table=[database_name].[table_name]`: \u044d\u0442\u0430 \u043e\u043f\u0446\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043f\u0440\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u043c \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0438\u043c\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c `manticore`.\n- `--replace` \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f `replace` \u0432\u043c\u0435\u0441\u0442\u043e `insert`. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0442\u043e\u043a\u0435\u043d\u0438\u0437\u0430\u0446\u0438\u0438.\n- `--net-buffer-length=16M` \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u0440\u0442\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u0434\u043e 16 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442 \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f.\n- `-e` \u0434\u043b\u044f \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f.\n- `-c` \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438\u043c\u0451\u043d \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0435\u0451 \u0441\u0445\u0435\u043c\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u043f\u043e\u043b\u0435\u0439).\n\n\u0414\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0438 \u0438\u0445 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 [\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 MySQL](https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html) \u0438\u043b\u0438 [\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 MariaDB](https://mariadb.com/kb/en/mariadb-dump/).\n\n### \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f\n\n* \u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u0430\u043c\u043f \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 (\u043a\u043e\u0433\u0434\u0430 \u0434\u0430\u043c\u043f \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 `INSERT/REPLACE INTO :`):\n - \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0430\u043c\u043f\u0430.\n - \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f `cluster`. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: `mysqldump -u cluster ...` \u0438\u043b\u0438 `mariadb-dump -u cluster ...`. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e \u0440\u0435\u0436\u0438\u043c \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0434\u043b\u044f `mysqldump`, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 `SET GLOBAL cluster_user = new_name`.\n - \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0444\u043b\u0430\u0433 `-t`.\n - \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0444\u043b\u0430\u0433 `--skip-lock-tables`.\n - \u041f\u0440\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 `cluster_name:table_name`. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: `mysqldump -P9306 -h0 -t -ucluster manticore cluster:tbl`.\n* \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 `manticore`, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u0432\u0441\u0435\u0445 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432\u043c\u0435\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u043f\u0446\u0438\u0438 `--all-databases`.\n* \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e `mysqldump` \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u0438 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043f\u043e\u043b\u044f. \u0412 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f `manticore-backup` \u0438\u043b\u0438 SQL-\u043a\u043e\u043c\u0430\u043d\u0434\u044b `BACKUP`. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0434\u043b\u044f \u0434\u0430\u043c\u043f\u0430.\n\n\n" - }, - "is_code_or_comment": false, - "model": "openai:gpt-4.1-mini", - "updated_at": 1771170539 - }, - "79c82214f1cb8f9c56e122978ddd17e5dadba2c551f3357f8903d468ad249dde": { - "original": "# Backup and Restore\n\nBacking up your tables on a regular basis is essential for recovery in the event of system crashes, hardware failure, or data corruption/loss. It's also highly recommended to make backups before upgrading to a new Manticore Search version or running [ALTER TABLE](../Updating_table_schema_and_settings.md#Updating-table-schema-in-RT-mode).\n\nBacking up database systems can be done in two unique ways: logical and physical backups. Each of these methods has its pros and cons, which may vary based on the specific database environment and needs. Here, we'll delve into the distinction between these two types of backups.\n\n### Logical Backups\n\nLogical backups entail exporting the database schema and data as SQL statements or as data formats specific to the database. This backup form is typically readable by humans and can be employed to restore the database on various systems or database engines.\n\nPros and cons of logical backups:\n- \u2795 **Portability:** Logical backups are generally more portable than physical backups, as they can be used to restore the database on different hardware or operating systems.\n- \u2795 **Flexibility:** Logical backups allow you to selectively restore specific tables, indexes, or other database objects.\n- \u2795 **Compatibility:** Logical backups can be used to migrate data between different database management systems or versions, provided the target system supports the exported format or SQL statements.\n- \u2796 **Slower Backup and Restore:** Logical backups can be slower than physical backups, as they require the database engine to convert the data into SQL statements or another export format.\n- \u2796 **Increased System Load:** Creating logical backups can cause higher system load, as the process requires more CPU and memory resources to process and export the data.\n\nManticore Search supports [mysqldump](../Securing_and_compacting_a_table/Backup_and_restore.md#Backup-and-restore-with-mysqldump) for logical backups.\n\n### Physical Backups\n\nPhysical backups involve copying the raw data files and system files that comprise the database. This type of backup essentially creates a snapshot of the database's physical state at a given point in time.\n\nPros and cons of physical backups:\n- \u2795 **Speed:** Physical backups are usually faster than logical backups, as they involve copying raw data files directly from disk.\n- \u2795 **Consistency:** Physical backups ensure a consistent backup of the entire database, as all related files are copied together.\n- \u2795 **Lower System Load:** Creating physical backups generally places less load on the system compared to logical backups, as the process does not involve additional data processing.\n- \u2796 **Portability:** Physical backups are typically less portable than logical backups, as they may be dependent on the specific hardware, operating system, or database engine configuration.\n- \u2796 **Flexibility:** Physical backups do not allow for the selective restoration of specific database objects, as the backup contains the entire database's raw files.\n- \u2796 **Compatibility:** Physical backups cannot be used to migrate data between different database management systems or versions, as the raw data files may not be compatible across different platforms or software.\n\nManticore Search has [manticore-backup](../Securing_and_compacting_a_table/Backup_and_restore.md#Using-manticore-backup-command-line-tool) command line tool for physical backups.\n\nIn summary, logical backups provide more flexibility, portability, and compatibility but can be slower and more resource-intensive, while physical backups are faster, more consistent, and less resource-intensive but may be limited in terms of portability and flexibility. The choice between these two backup methods will depend on your specific database environment, hardware, and requirements.\n\n## Using manticore-backup command line tool\n\nThe `manticore-backup` tool, included in the official Manticore Search [packages](https://manticoresearch.com/install), automates the process of backing up tables for an instance running in [RT mode](../Read_this_first.md#Real-time-mode-vs-plain-mode).\n\n### Installation\n\n**If you followed [the official installation instructions](https://manticoresearch.com/install/), you should already have everything installed and don't need to worry.** Otherwise, [`manticore-backup`](https://github.com/manticoresoftware/manticoresearch-backup) requires PHP 8.1.10 and [specific modules](https://github.com/manticoresoftware/executor/blob/main/build-linux) or [`manticore-executor`](https://github.com/manticoresoftware/executor), and you need to ensure that one of these is available.\n\nNote that `manticore-backup` is not available for Windows yet.\n\n### How to use\n\nFirst, make sure you're running `manticore-backup` on the same server where the Manticore instance you are about to back up is running.\n\nSecond, we recommend running the tool under the `root` user so the tool can transfer ownership of the files you are backing up. Otherwise, a backup will be also made but with no ownership transfer. In either case, you should make sure that `manticore-backup` has access to the data dir of the Manticore instance.\n\n\n\nThe only required argument for `manticore-backup` is `--backup-dir`, which specifies the destination for the backup. If you don't provide any additional arguments, `manticore-backup` will:\n- locate a Manticore instance running with the default configuration\n- create a subdirectory in the `--backup-dir` directory with a timestamped name\n- backup all tables found in the instance\n\n\nCODE_BLOCK_0\n\n\nCODE_BLOCK_1\n\n\n\nTo back up specific tables only, use the `--tables` flag followed by a comma-separated list of tables, for example `--tables=tbl1,tbl2`. This will only backup the specified tables and ignore the rest.\n\n\nCODE_BLOCK_2\n\n\nCODE_BLOCK_3\n\n\n### Arguments", - "translations": { - "russian": "# \u0420\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\n\n\u0420\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0431\u043e\u0435\u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043e\u0442\u043a\u0430\u0437\u043e\u0432 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f/\u043f\u043e\u0442\u0435\u0440\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. \u0422\u0430\u043a\u0436\u0435 \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043f\u0435\u0440\u0435\u0434 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0434\u043e \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Manticore Search \u0438\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c [ALTER TABLE](../Updating_table_schema_and_settings.md#Updating-table-schema-in-RT-mode).\n\n\u0420\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0434\u0432\u0443\u043c\u044f \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u044d\u0442\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0438 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0432\u0430\u0440\u044c\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u0435\u0439. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u044d\u0442\u0438\u043c\u0438 \u0434\u0432\u0443\u043c\u044f \u0442\u0438\u043f\u0430\u043c\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.\n\n### \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\n\n\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u0441\u0445\u0435\u043c\u044b \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0432\u0438\u0434\u0435 SQL-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438\u043b\u0438 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0445 \u0434\u043b\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445. \u042d\u0442\u0430 \u0444\u043e\u0440\u043c\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u0447\u0438\u0442\u0430\u0435\u043c\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c \u0438 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0438\u043b\u0438 \u0434\u0432\u0438\u0436\u043a\u0430\u0445 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445.\n\n\u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:\n- \u2795 **\u041f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0441\u0442\u044c:** \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0431\u043e\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u044b, \u0447\u0435\u043c \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0440\u0430\u0437\u043d\u043e\u043c \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0438 \u0438\u043b\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445.\n- \u2795 **\u0413\u0438\u0431\u043a\u043e\u0441\u0442\u044c:** \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0432\u044b\u0431\u043e\u0440\u043e\u0447\u043d\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.\n- \u2795 **\u0421\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c:** \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438, \u043f\u0440\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0438, \u0447\u0442\u043e \u0446\u0435\u043b\u0435\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0438\u043b\u0438 SQL-\u0437\u0430\u043f\u0440\u043e\u0441\u044b.\n- \u2796 **\u041c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435:** \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043e\u0442 \u0434\u0432\u0438\u0436\u043a\u0430 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 SQL-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430.\n- \u2796 **\u041f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0443:** \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0445 \u043a\u043e\u043f\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0434\u0430\u043d\u043d\u044b\u0445.\n\nManticore Search \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 [mysqldump](../Securing_and_compacting_a_table/Backup_and_restore.md#Backup-and-restore-with-mysqldump) \u0434\u043b\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.\n\n### \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\n\n\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445. \u042d\u0442\u043e\u0442 \u0442\u0438\u043f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e \u0441\u0443\u0442\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0441\u043d\u0438\u043c\u043e\u043a \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438.\n\n\u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:\n- \u2795 **\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c:** \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u0440\u044f\u043c\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0434\u0438\u0441\u043a\u0430.\n- \u2795 **\u0421\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0441\u0442\u044c:** \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0432\u0441\u0435\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435.\n- \u2795 **\u041c\u0435\u043d\u044c\u0448\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0443:** \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0445 \u043a\u043e\u043f\u0438\u0439, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u043c \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445.\n- \u2796 **\u041f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0441\u0442\u044c:** \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043e\u0431\u044b\u0447\u043d\u043e \u043c\u0435\u043d\u0435\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u044b, \u0447\u0435\u043c \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u043b\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u0432\u0438\u0436\u043a\u0430 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.\n- \u2796 **\u0413\u0438\u0431\u043a\u043e\u0441\u0442\u044c:** \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0431\u043e\u0440\u043e\u0447\u043d\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0430\u044f \u043a\u043e\u043f\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0432\u0441\u0435\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.\n- \u2796 **\u0421\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c:** \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0435\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445 \u0438\u043b\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u043c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0438.\n\nManticore Search \u0438\u043c\u0435\u0435\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 [manticore-backup](../Securing_and_compacting_a_table/Backup_and_restore.md#Using-manticore-backup-command-line-tool) \u0434\u043b\u044f \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.\n\n\u0412 \u0438\u0442\u043e\u0433\u0435, \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c, \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0435\u043c\u043a\u0438\u043c, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u043e \u0438 \u043c\u0435\u043d\u0435\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0435\u043c\u043a\u043e, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043e \u0432 \u043f\u043b\u0430\u043d\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0438 \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u0438. \u0412\u044b\u0431\u043e\u0440 \u043c\u0435\u0436\u0434\u0443 \u044d\u0442\u0438\u043c\u0438 \u0434\u0432\u0443\u043c\u044f \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u0432\u0430\u0448\u0435\u0439 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439.\n\n## \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 manticore-backup\n\n\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 `manticore-backup`, \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 [\u043f\u0430\u043a\u0435\u0442\u044b](https://manticoresearch.com/install) Manticore Search, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0446 \u0434\u043b\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u0432 [\u0440\u0435\u0436\u0438\u043c\u0435 RT](../Read_this_first.md#Real-time-mode-vs-plain-mode).\n\n### \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\n\n**\u0415\u0441\u043b\u0438 \u0432\u044b \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u0438 [\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435](https://manticoresearch.com/install/), \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u0438 \u043d\u0435 \u043e \u0447\u0435\u043c \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0438\u0442\u044c\u0441\u044f.** \u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, [`manticore-backup`](https://github.com/manticoresoftware/manticoresearch-backup) \u0442\u0440\u0435\u0431\u0443\u0435\u0442 PHP 8.1.10 \u0438 [\u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0438](https://github.com/manticoresoftware/executor/blob/main/build-linux) \u0438\u043b\u0438 [`manticore-executor`](https://github.com/manticoresoftware/executor), \u0438 \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0438\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d.\n\n\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e `manticore-backup` \u043f\u043e\u043a\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f Windows.\n\n### \u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\n\n\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0435 `manticore-backup` \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0433\u0434\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 Manticore, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c.\n\n\u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043c\u044b \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f `root`, \u0447\u0442\u043e\u0431\u044b \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043c\u043e\u0433 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0432\u043b\u0430\u0434\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u0442\u0435. \u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0430\u044f \u043a\u043e\u043f\u0438\u044f \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0430, \u043d\u043e \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u0440\u0430\u0432 \u0432\u043b\u0430\u0434\u0435\u043d\u0438\u044f. \u0412 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e `manticore-backup` \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 Manticore.\n\n\n\n\u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f `manticore-backup` \u2014 \u044d\u0442\u043e `--backup-dir`, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043c\u0435\u0441\u0442\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438. \u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u0435 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432, `manticore-backup`:\n- \u043d\u0430\u0439\u0434\u0435\u0442 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 Manticore, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\n- \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043f\u043e\u0434\u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 `--backup-dir` \u0441 \u0438\u043c\u0435\u043d\u0435\u043c, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u043c \u043c\u0435\u0442\u043a\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438\n- \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0432\u0441\u0435\u0445 \u0442\u0430\u0431\u043b\u0438\u0446, \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0432 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0435\n\n\nCODE_BLOCK_0\n\n\nCODE_BLOCK_1\n\n\n\n\u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0444\u043b\u0430\u0433 `--tables`, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 `--tables=tbl1,tbl2`. \u042d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u0438 \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435.\n\n\nCODE_BLOCK_2\n\n\nCODE_BLOCK_3\n\n\n### \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b", - "chinese": "# \u5907\u4efd\u4e0e\u6062\u590d\n\n\u5b9a\u671f\u5907\u4efd\u60a8\u7684\u8868\u5bf9\u4e8e\u7cfb\u7edf\u5d29\u6e83\u3001\u786c\u4ef6\u6545\u969c\u6216\u6570\u636e\u635f\u574f/\u4e22\u5931\u65f6\u7684\u6062\u590d\u81f3\u5173\u91cd\u8981\u3002\u5728\u5347\u7ea7\u5230\u65b0\u7248\u672c\u7684 Manticore Search \u6216\u8fd0\u884c [ALTER TABLE](../Updating_table_schema_and_settings.md#Updating-table-schema-in-RT-mode) \u4e4b\u524d\uff0c\u5f3a\u70c8\u5efa\u8bae\u8fdb\u884c\u5907\u4efd\u3002\n\n\u6570\u636e\u5e93\u7cfb\u7edf\u7684\u5907\u4efd\u53ef\u4ee5\u901a\u8fc7\u4e24\u79cd\u72ec\u7279\u7684\u65b9\u5f0f\u5b8c\u6210\uff1a\u903b\u8f91\u5907\u4efd\u548c\u7269\u7406\u5907\u4efd\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u7f3a\u70b9\uff0c\u8fd9\u53ef\u80fd\u56e0\u7279\u5b9a\u7684\u6570\u636e\u5e93\u73af\u5883\u548c\u9700\u6c42\u800c\u5f02\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u6df1\u5165\u63a2\u8ba8\u8fd9\u4e24\u79cd\u5907\u4efd\u7c7b\u578b\u4e4b\u95f4\u7684\u533a\u522b\u3002\n\n### \u903b\u8f91\u5907\u4efd\n\n\u903b\u8f91\u5907\u4efd\u6d89\u53ca\u5c06\u6570\u636e\u5e93\u6a21\u5f0f\u548c\u6570\u636e\u5bfc\u51fa\u4e3a SQL \u8bed\u53e5\u6216\u7279\u5b9a\u4e8e\u6570\u636e\u5e93\u7684\u6570\u636e\u683c\u5f0f\u3002\u8fd9\u79cd\u5907\u4efd\u5f62\u5f0f\u901a\u5e38\u53ef\u88ab\u4eba\u7c7b\u9605\u8bfb\uff0c\u5e76\u53ef\u7528\u4e8e\u5728\u5404\u79cd\u7cfb\u7edf\u6216\u6570\u636e\u5e93\u5f15\u64ce\u4e0a\u6062\u590d\u6570\u636e\u5e93\u3002\n\n\u903b\u8f91\u5907\u4efd\u7684\u4f18\u7f3a\u70b9\uff1a\n- \u2795 **\u53ef\u79fb\u690d\u6027\uff1a** \u903b\u8f91\u5907\u4efd\u901a\u5e38\u6bd4\u7269\u7406\u5907\u4efd\u66f4\u53ef\u79fb\u690d\uff0c\u56e0\u4e3a\u5b83\u4eec\u53ef\u4ee5\u7528\u4e8e\u5728\u4e0d\u540c\u7684\u786c\u4ef6\u6216\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u6062\u590d\u6570\u636e\u5e93\u3002\n- \u2795 **\u7075\u6d3b\u6027\uff1a** \u903b\u8f91\u5907\u4efd\u5141\u8bb8\u60a8\u9009\u62e9\u6027\u5730\u6062\u590d\u7279\u5b9a\u7684\u8868\u3001\u7d22\u5f15\u6216\u5176\u4ed6\u6570\u636e\u5e93\u5bf9\u8c61\u3002\n- \u2795 **\u517c\u5bb9\u6027\uff1a** \u903b\u8f91\u5907\u4efd\u53ef\u7528\u4e8e\u5728\u4e0d\u540c\u7684\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u6216\u7248\u672c\u4e4b\u95f4\u8fc1\u79fb\u6570\u636e\uff0c\u524d\u63d0\u662f\u76ee\u6807\u7cfb\u7edf\u652f\u6301\u5bfc\u51fa\u7684\u683c\u5f0f\u6216 SQL \u8bed\u53e5\u3002\n- \u2796 **\u5907\u4efd\u548c\u6062\u590d\u901f\u5ea6\u8f83\u6162\uff1a** \u903b\u8f91\u5907\u4efd\u53ef\u80fd\u6bd4\u7269\u7406\u5907\u4efd\u66f4\u6162\uff0c\u56e0\u4e3a\u5b83\u4eec\u9700\u8981\u6570\u636e\u5e93\u5f15\u64ce\u5c06\u6570\u636e\u8f6c\u6362\u4e3a SQL \u8bed\u53e5\u6216\u5176\u4ed6\u5bfc\u51fa\u683c\u5f0f\u3002\n- \u2796 **\u589e\u52a0\u7cfb\u7edf\u8d1f\u8f7d\uff1a** \u521b\u5efa\u903b\u8f91\u5907\u4efd\u53ef\u80fd\u4f1a\u5bfc\u81f4\u66f4\u9ad8\u7684\u7cfb\u7edf\u8d1f\u8f7d\uff0c\u56e0\u4e3a\u8be5\u8fc7\u7a0b\u9700\u8981\u66f4\u591a\u7684 CPU \u548c\u5185\u5b58\u8d44\u6e90\u6765\u5904\u7406\u548c\u5bfc\u51fa\u6570\u636e\u3002\n\nManticore Search \u652f\u6301 [mysqldump](../Securing_and_compacting_a_table/Backup_and_restore.md#Backup-and-restore-with-mysqldump) \u8fdb\u884c\u903b\u8f91\u5907\u4efd\u3002\n\n### \u7269\u7406\u5907\u4efd\n\n\u7269\u7406\u5907\u4efd\u6d89\u53ca\u590d\u5236\u6784\u6210\u6570\u636e\u5e93\u7684\u539f\u59cb\u6570\u636e\u6587\u4ef6\u548c\u7cfb\u7edf\u6587\u4ef6\u3002\u8fd9\u79cd\u7c7b\u578b\u7684\u5907\u4efd\u672c\u8d28\u4e0a\u662f\u5728\u7ed9\u5b9a\u65f6\u95f4\u70b9\u521b\u5efa\u6570\u636e\u5e93\u7269\u7406\u72b6\u6001\u7684\u5feb\u7167\u3002\n\n\u7269\u7406\u5907\u4efd\u7684\u4f18\u7f3a\u70b9\uff1a\n- \u2795 **\u901f\u5ea6\uff1a** \u7269\u7406\u5907\u4efd\u901a\u5e38\u6bd4\u903b\u8f91\u5907\u4efd\u66f4\u5feb\uff0c\u56e0\u4e3a\u5b83\u4eec\u6d89\u53ca\u76f4\u63a5\u4ece\u78c1\u76d8\u590d\u5236\u539f\u59cb\u6570\u636e\u6587\u4ef6\u3002\n- \u2795 **\u4e00\u81f4\u6027\uff1a** \u7269\u7406\u5907\u4efd\u786e\u4fdd\u6574\u4e2a\u6570\u636e\u5e93\u7684\u4e00\u81f4\u5907\u4efd\uff0c\u56e0\u4e3a\u6240\u6709\u76f8\u5173\u6587\u4ef6\u4e00\u8d77\u590d\u5236\u3002\n- \u2795 **\u7cfb\u7edf\u8d1f\u8f7d\u8f83\u4f4e\uff1a** \u4e0e\u903b\u8f91\u5907\u4efd\u76f8\u6bd4\uff0c\u521b\u5efa\u7269\u7406\u5907\u4efd\u901a\u5e38\u5bf9\u7cfb\u7edf\u8d1f\u8f7d\u8f83\u4f4e\uff0c\u56e0\u4e3a\u8be5\u8fc7\u7a0b\u4e0d\u6d89\u53ca\u989d\u5916\u7684\u6570\u636e\u5904\u7406\u3002\n- \u2796 **\u53ef\u79fb\u690d\u6027\uff1a** \u7269\u7406\u5907\u4efd\u901a\u5e38\u6bd4\u903b\u8f91\u5907\u4efd\u7684\u53ef\u79fb\u690d\u6027\u5dee\uff0c\u56e0\u4e3a\u5b83\u4eec\u53ef\u80fd\u4f9d\u8d56\u4e8e\u7279\u5b9a\u7684\u786c\u4ef6\u3001\u64cd\u4f5c\u7cfb\u7edf\u6216\u6570\u636e\u5e93\u5f15\u64ce\u914d\u7f6e\u3002\n- \u2796 **\u7075\u6d3b\u6027\uff1a** \u7269\u7406\u5907\u4efd\u4e0d\u5141\u8bb8\u9009\u62e9\u6027\u5730\u6062\u590d\u7279\u5b9a\u7684\u6570\u636e\u5e93\u5bf9\u8c61\uff0c\u56e0\u4e3a\u5907\u4efd\u5305\u542b\u6574\u4e2a\u6570\u636e\u5e93\u7684\u539f\u59cb\u6587\u4ef6\u3002\n- \u2796 **\u517c\u5bb9\u6027\uff1a** \u7269\u7406\u5907\u4efd\u4e0d\u80fd\u7528\u4e8e\u5728\u4e0d\u540c\u7684\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u6216\u7248\u672c\u4e4b\u95f4\u8fc1\u79fb\u6570\u636e\uff0c\u56e0\u4e3a\u539f\u59cb\u6570\u636e\u6587\u4ef6\u53ef\u80fd\u5728\u4e0d\u540c\u7684\u5e73\u53f0\u6216\u8f6f\u4ef6\u4e4b\u95f4\u4e0d\u517c\u5bb9\u3002\n\nManticore Search \u63d0\u4f9b\u4e86 [manticore-backup](../Securing_and_compacting_a_table/Backup_and_restore.md#Using-manticore-backup-command-line-tool) \u547d\u4ee4\u884c\u5de5\u5177\u7528\u4e8e\u7269\u7406\u5907\u4efd\u3002\n\n\u603b\u4e4b\uff0c\u903b\u8f91\u5907\u4efd\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u7075\u6d3b\u6027\u3001\u53ef\u79fb\u690d\u6027\u548c\u517c\u5bb9\u6027\uff0c\u4f46\u53ef\u80fd\u66f4\u6162\u4e14\u8d44\u6e90\u6d88\u8017\u66f4\u5927\uff0c\u800c\u7269\u7406\u5907\u4efd\u5219\u66f4\u5feb\u3001\u66f4\u4e00\u81f4\u4e14\u8d44\u6e90\u6d88\u8017\u66f4\u5c11\uff0c\u4f46\u5728\u53ef\u79fb\u690d\u6027\u548c\u7075\u6d3b\u6027\u65b9\u9762\u53ef\u80fd\u5b58\u5728\u9650\u5236\u3002\u8fd9\u4e24\u79cd\u5907\u4efd\u65b9\u6cd5\u7684\u9009\u62e9\u5c06\u53d6\u51b3\u4e8e\u60a8\u7684\u5177\u4f53\u6570\u636e\u5e93\u73af\u5883\u3001\u786c\u4ef6\u548c\u9700\u6c42\u3002\n\n## \u4f7f\u7528 manticore-backup \u547d\u4ee4\u884c\u5de5\u5177\n\n`manticore-backup` \u5de5\u5177\u5305\u542b\u5728\u5b98\u65b9 Manticore Search [\u5305](https://manticoresearch.com/install) \u4e2d\uff0c\u7528\u4e8e\u81ea\u52a8\u5316\u5907\u4efd\u8fd0\u884c\u5728 [RT \u6a21\u5f0f](../Read_this_first.md#Real-time-mode-vs-plain-mode) \u7684\u5b9e\u4f8b\u7684\u8868\u3002\n\n### \u5b89\u88c5\n\n**\u5982\u679c\u60a8\u9075\u5faa\u4e86 [\u5b98\u65b9\u5b89\u88c5\u8bf4\u660e](https://manticoresearch.com/install/)\uff0c\u60a8\u5e94\u8be5\u5df2\u7ecf\u5b89\u88c5\u4e86\u6240\u6709\u5185\u5bb9\uff0c\u65e0\u9700\u62c5\u5fc3\u3002** \u5426\u5219\uff0c[`manticore-backup`](https://github.com/manticoresoftware/manticoresearch-backup) \u9700\u8981 PHP 8.1.10 \u548c [\u7279\u5b9a\u6a21\u5757](https://github.com/manticoresoftware/executor/blob/main/build-linux) \u6216 [`manticore-executor`](https://github.com/manticoresoftware/executor)\uff0c\u5e76\u4e14\u60a8\u9700\u8981\u786e\u4fdd\u5176\u4e2d\u4e00\u4e2a\u53ef\u7528\u3002\n\n\u8bf7\u6ce8\u610f\uff0c`manticore-backup` \u76ee\u524d\u4e0d\u9002\u7528\u4e8e Windows\u3002\n\n### \u5982\u4f55\u4f7f\u7528\n\n\u9996\u5148\uff0c\u786e\u4fdd\u60a8\u6b63\u5728\u8fd0\u884c `manticore-backup` \u7684\u670d\u52a1\u5668\u4e0e\u60a8\u8981\u5907\u4efd\u7684 Manticore \u5b9e\u4f8b\u8fd0\u884c\u5728\u540c\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u3002\n\n\u5176\u6b21\uff0c\u6211\u4eec\u5efa\u8bae\u5728 `root` \u7528\u6237\u4e0b\u8fd0\u884c\u8be5\u5de5\u5177\uff0c\u4ee5\u4fbf\u8be5\u5de5\u5177\u53ef\u4ee5\u8f6c\u79fb\u60a8\u6b63\u5728\u5907\u4efd\u7684\u6587\u4ef6\u7684\u6240\u6709\u6743\u3002\u5426\u5219\uff0c\u5907\u4efd\u4e5f\u4f1a\u88ab\u521b\u5efa\uff0c\u4f46\u4e0d\u4f1a\u8f6c\u79fb\u6240\u6709\u6743\u3002\u65e0\u8bba\u54ea\u79cd\u60c5\u51b5\uff0c\u60a8\u90fd\u5e94\u786e\u4fdd `manticore-backup` \u6709\u6743\u8bbf\u95ee Manticore \u5b9e\u4f8b\u7684\u6570\u636e\u76ee\u5f55\u3002\n\n\n\n`manticore-backup` \u552f\u4e00\u5fc5\u9700\u7684\u53c2\u6570\u662f `--backup-dir`\uff0c\u5b83\u6307\u5b9a\u5907\u4efd\u7684\u76ee\u6807\u4f4d\u7f6e\u3002\u5982\u679c\u60a8\u4e0d\u63d0\u4f9b\u4efb\u4f55\u5176\u4ed6\u53c2\u6570\uff0c`manticore-backup` \u5c06\uff1a\n- \u5b9a\u4f4d\u8fd0\u884c\u9ed8\u8ba4\u914d\u7f6e\u7684 Manticore \u5b9e\u4f8b\n- \u5728 `--backup-dir` \u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u5e26\u6709\u65f6\u95f4\u6233\u540d\u79f0\u7684\u5b50\u76ee\u5f55\n- \u5907\u4efd\u5b9e\u4f8b\u4e2d\u627e\u5230\u7684\u6240\u6709\u8868\n\n\nCODE_BLOCK_0\n\n\nCODE_BLOCK_1\n\n\n\n\u8981\u4ec5\u5907\u4efd\u7279\u5b9a\u7684\u8868\uff0c\u8bf7\u4f7f\u7528 `--tables` \u6807\u5fd7\u540e\u8ddf\u9017\u53f7\u5206\u9694\u7684\u8868\u5217\u8868\uff0c\u4f8b\u5982 `--tables=tbl1,tbl2`\u3002\u8fd9\u5c06\u4ec5\u5907\u4efd\u6307\u5b9a\u7684\u8868\u5e76\u5ffd\u7565\u5176\u4f59\u8868\u3002\n\n\nCODE_BLOCK_2\n\n\nCODE_BLOCK_3\n\n\n### \u53c2\u6570" - }, - "is_code_or_comment": false, - "model": "qwen/qwen3-14b", - "updated_at": 1774672505 - } -} \ No newline at end of file diff --git a/manual/chinese/Securing_and_compacting_a_table/Backup_and_restore.md b/manual/chinese/Securing_and_compacting_a_table/Backup_and_restore.md index 78a8b15951..08a7032d1a 100644 --- a/manual/chinese/Securing_and_compacting_a_table/Backup_and_restore.md +++ b/manual/chinese/Securing_and_compacting_a_table/Backup_and_restore.md @@ -133,8 +133,8 @@ Manticore versions: | 参数 | 描述 | |-|-| -| `--backup-dir=path` | 这是备份目录的路径,备份将存储在该目录中。目录必须已存在。此参数为必需且无默认值。每次备份运行时,manticore-backup 会在指定目录中创建一个带时间戳的子目录(`backup-[datetime]`),并将所有必需的表复制到该目录。因此,`--backup-dir` 是所有备份的容器,安全地多次运行该脚本。| -| `--restore[=backup]` | 从`--backup-dir`恢复。仅使用--restore会列出可用备份。`--restore=backup`将从`<--backup-dir>/backup`恢复。| +| `--backup-dir=path` | 备份目录路径,备份将在此处存储。该目录必须已经存在。此参数是必需的且没有默认值。每次运行备份时,`manticore-backup` 将在提供的目录中创建一个带有时间戳的子目录(`backup-[datetime]`),并将所有需要的表复制到其中。因此,`--backup-dir` 是所有备份的容器,并且可以安全地多次运行脚本。支持 S3 URL 格式 `s3://bucket/prefix` — 详情请参阅 [S3 存储支持](../Securing_and_compacting_a_table/Backup_and_restore.md#S3-storage-support)。| +| `--restore[=backup]` | 从 `--backup-dir` 恢复。仅 `--restore` 列出可用的备份。`--restore=backup` 将从 `<--backup-dir>/backup` 恢复。适用于本地路径和 S3 URL。| | `--force` | 在恢复时跳过版本检查,并优雅地恢复备份。| | `--disable-telemetry` | 如果您想禁用向 Manticore 发送匿名指标,请使用此标志。您也可以使用环境变量 TELEMETRY=0 | | `--config=/path/to/manticore.conf` | Manticore 配置文件路径。可选。如果未提供,则使用操作系统的默认配置。用于确定与 Manticore 守护进程通信的主机和端口。`manticore-backup` 工具支持[动态配置](../Server_settings/Scripted_configuration.md)文件。如果配置分散在多个文件中,可多次指定`--config`选项。| @@ -144,6 +144,65 @@ Manticore versions: | `--version` | 显示当前版本。| | `--help` | 显示此帮助信息。| + +## S3 存储支持 + +`manticore-backup` 支持直接将备份存储到/从 S3 兼容存储中,包括 AWS S3、MinIO、Wasabi、Cloudflare R2 等。只需将 `s3://bucket/prefix` URL 作为 `--backup-dir` 传递。 + +### 配置 + +在运行 `manticore-backup` 之前设置以下环境变量: + +| 变量 | 必需 | 描述 | +|----------|----------|-------------| +| `AWS_ACCESS_KEY_ID` | 是 | AWS 访问密钥(或 `AWS_ACCESS_KEY`) | +| `AWS_SECRET_ACCESS_KEY` | 是 | AWS 密钥(或 `AWS_SECRET_KEY`) | +| `AWS_REGION` | 否 | AWS 区域(默认:`us-east-1`) | +| `AWS_ENDPOINT_URL` | 否 | 自定义 S3 兼容端点 — **仅服务器 URL,不包含桶名**(例如,`http://localhost:9000`) | +| `AWS_S3_ENCRYPTION` | 否 | 启用 SSE-S3 服务器端加密(默认:对于 AWS S3 为 `1`;对于 MinIO、R2 或其他自定义端点设为 `0`)| + +> ⚠️ `AWS_ENDPOINT_URL` 不应包含桶名。桶名将从 `s3://bucket/prefix` 参数中获取。在端点 URL 中包含桶名会导致每次请求中桶名被重复,并导致错误。 +> +> ``` +> # 错误 — 桶 "mybucket" 在 URL 路径中重复 +> AWS_ENDPOINT_URL=https://account.r2.cloudflarestorage.com/mybucket +> +> # 正确 — 端点仅为服务器地址 +> AWS_ENDPOINT_URL=https://account.r2.cloudflarestorage.com +> ``` + +### 使用示例 + +```bash +# Backup to AWS S3 (SSE-S3 encryption enabled by default) +export AWS_ACCESS_KEY_ID=your_key +export AWS_SECRET_ACCESS_KEY=your_secret +manticore-backup --backup-dir=s3://my-bucket/backups + +# Restore from S3 +manticore-backup --restore --backup-dir=s3://my-bucket/backups +manticore-backup --restore=backup-20221004171839 --backup-dir=s3://my-bucket/backups + +# Use with MinIO (disable encryption) +export AWS_ACCESS_KEY_ID=minioadmin +export AWS_SECRET_ACCESS_KEY=minioadmin +export AWS_ENDPOINT_URL=http://localhost:9000 +export AWS_S3_ENCRYPTION=0 +manticore-backup --backup-dir=s3://my-bucket/backups + +# Use with Cloudflare R2 +export AWS_ACCESS_KEY_ID=your_r2_access_key +export AWS_SECRET_ACCESS_KEY=your_r2_secret_key +export AWS_ENDPOINT_URL=https://.r2.cloudflarestorage.com +export AWS_REGION=auto +export AWS_S3_ENCRYPTION=0 +manticore-backup --backup-dir=s3://my-bucket/backups +``` + +### 所需的 S3 权限 + +备份需要 `s3:PutObject`,恢复需要 `s3:GetObject`,列出可用的恢复点需要 `s3:ListBucket`。 + ## BACKUP SQL 命令参考 你也可以通过运行简单命令 `BACKUP TO /path/to/backup` 来备份数据。 diff --git a/manual/english/Securing_and_compacting_a_table/Backup_and_restore.md b/manual/english/Securing_and_compacting_a_table/Backup_and_restore.md index e7ecfc8e2c..c03e916fe2 100755 --- a/manual/english/Securing_and_compacting_a_table/Backup_and_restore.md +++ b/manual/english/Securing_and_compacting_a_table/Backup_and_restore.md @@ -133,8 +133,8 @@ Manticore versions: | Argument | Description | |-|-| -| `--backup-dir=path` | This is the path to the backup directory where the backup will be stored. The directory must already exist. This argument is required and has no default value. On each backup run, manticore-backup will create a subdirectory in the provided directory with a timestamp in the name (`backup-[datetime]`), and will copy all required tables to it. So the `--backup-dir` is a container for all your backups, and it's safe to run the script multiple times.| -| `--restore[=backup]` | Restore from `--backup-dir`. Just --restore lists available backups. `--restore=backup` will restore from `<--backup-dir>/backup`. | +| `--backup-dir=path` | Path to the backup directory where the backup will be stored. The directory must already exist. This argument is required and has no default value. On each backup run, `manticore-backup` will create a subdirectory in the provided directory with a timestamp in the name (`backup-[datetime]`), and will copy all required tables to it. So the `--backup-dir` is a container for all your backups, and it's safe to run the script multiple times. Supports S3 URLs in the format `s3://bucket/prefix` — see [S3 storage support](../Securing_and_compacting_a_table/Backup_and_restore.md#S3-storage-support) for details.| +| `--restore[=backup]` | Restore from `--backup-dir`. Just `--restore` lists available backups. `--restore=backup` will restore from `<--backup-dir>/backup`. Works with both local paths and S3 URLs. | | `--force` | Skip versions check on restore and gracefully restore the backup. | | `--disable-telemetry` | Pass this flag in case you want to disable sending anonymized metrics to Manticore. You can also use environment variable TELEMETRY=0 | | `--config=/path/to/manticore.conf` | Path to the Manticore configuration. Optional. If not provided, a default configuration for your operating system will be used. Used to determine the host and port for communication with the Manticore daemon. The `manticore-backup` tool supports [dynamic configuration](../Server_settings/Scripted_configuration.md) files. You can specify the `--config` option multiple times if your configuration is spread across multiple files. | @@ -144,6 +144,65 @@ Manticore versions: | `--version` | Show the current version. | | `--help` | Show this help. | + +## S3 storage support + +`manticore-backup` supports storing and restoring backups directly to/from S3-compatible storage, including AWS S3, MinIO, Wasabi, Cloudflare R2, and others. Simply pass an `s3://bucket/prefix` URL as `--backup-dir`. + +### Configuration + +Set the following environment variables before running `manticore-backup`: + +| Variable | Required | Description | +|----------|----------|-------------| +| `AWS_ACCESS_KEY_ID` | Yes | AWS access key (or `AWS_ACCESS_KEY`) | +| `AWS_SECRET_ACCESS_KEY` | Yes | AWS secret key (or `AWS_SECRET_KEY`) | +| `AWS_REGION` | No | AWS region (default: `us-east-1`) | +| `AWS_ENDPOINT_URL` | No | Custom S3-compatible endpoint — **server URL only, no bucket name** (e.g., `http://localhost:9000`) | +| `AWS_S3_ENCRYPTION` | No | Enable SSE-S3 server-side encryption (default: `1` for AWS S3; set to `0` for MinIO, R2, or other custom endpoints) | + +> ⚠️ `AWS_ENDPOINT_URL` must not include the bucket name. The bucket is taken from the `s3://bucket/prefix` argument. Including the bucket in the endpoint URL causes it to be doubled in every request and results in errors. +> +> ``` +> # Wrong — bucket "mybucket" duplicated in URL path +> AWS_ENDPOINT_URL=https://account.r2.cloudflarestorage.com/mybucket +> +> # Correct — endpoint is the server only +> AWS_ENDPOINT_URL=https://account.r2.cloudflarestorage.com +> ``` + +### Usage examples + +```bash +# Backup to AWS S3 (SSE-S3 encryption enabled by default) +export AWS_ACCESS_KEY_ID=your_key +export AWS_SECRET_ACCESS_KEY=your_secret +manticore-backup --backup-dir=s3://my-bucket/backups + +# Restore from S3 +manticore-backup --restore --backup-dir=s3://my-bucket/backups +manticore-backup --restore=backup-20221004171839 --backup-dir=s3://my-bucket/backups + +# Use with MinIO (disable encryption) +export AWS_ACCESS_KEY_ID=minioadmin +export AWS_SECRET_ACCESS_KEY=minioadmin +export AWS_ENDPOINT_URL=http://localhost:9000 +export AWS_S3_ENCRYPTION=0 +manticore-backup --backup-dir=s3://my-bucket/backups + +# Use with Cloudflare R2 +export AWS_ACCESS_KEY_ID=your_r2_access_key +export AWS_SECRET_ACCESS_KEY=your_r2_secret_key +export AWS_ENDPOINT_URL=https://.r2.cloudflarestorage.com +export AWS_REGION=auto +export AWS_S3_ENCRYPTION=0 +manticore-backup --backup-dir=s3://my-bucket/backups +``` + +### Required S3 permissions + +The backup requires `s3:PutObject`, restore requires `s3:GetObject`, and listing available restore points requires `s3:ListBucket`. + ## BACKUP SQL command reference You can also back up your data through SQL by running the simple command `BACKUP TO /path/to/backup`. diff --git a/manual/russian/Securing_and_compacting_a_table/Backup_and_restore.md b/manual/russian/Securing_and_compacting_a_table/Backup_and_restore.md index 9bee90cbd3..bbfb16663e 100644 --- a/manual/russian/Securing_and_compacting_a_table/Backup_and_restore.md +++ b/manual/russian/Securing_and_compacting_a_table/Backup_and_restore.md @@ -133,8 +133,8 @@ Manticore versions: | Argument | Описание | |-|-| -| `--backup-dir=path` | Это путь к каталогу резервного копирования, где будет храниться резервная копия. Каталог должен уже существовать. Этот аргумент обязателен и не имеет значения по умолчанию. При каждом запуске резервного копирования manticore-backup создаст подкаталог в указанном каталоге с временной меткой в названии (`backup-[datetime]`) и скопирует в него все необходимые таблицы. Таким образом, `--backup-dir` является контейнером для всех ваших резервных копий, и безопасно запускать скрипт несколько раз.| -| `--restore[=backup]` | Восстановить из `--backup-dir`. Просто `--restore` выведет список доступных резервных копий. `--restore=backup` восстановит из `<--backup-dir>/backup`. | +| `--backup-dir=path` | Путь к директории резервного копирования, где будет храниться резервная копия. Директория должна уже существовать. Этот аргумент обязателен и не имеет значения по умолчанию. При каждом запуске резервного копирования `manticore-backup` создаст поддиректорию в указанной директории с меткой времени в имени (`backup-[дата-время]`) и скопирует в неё все необходимые таблицы. Таким образом, `--backup-dir` является контейнером для всех ваших резервных копий, и можно безопасно запускать скрипт несколько раз. Поддерживает URL-адреса S3 в формате `s3://bucket/prefix` — подробности см. в разделе [Поддержка хранилища S3](../Securing_and_compacting_a_table/Backup_and_restore.md#S3-storage-support).| +| `--restore[=backup]` | Восстановить из `--backup-dir`. Просто `--restore` выводит список доступных резервных копий. `--restore=backup` восстановит из `<--backup-dir>/backup`. Работает как с локальными путями, так и с URL-адресами S3. | | `--force` | Пропустить проверку версий при восстановлении и выполнить восстановление без ошибок. | | `--disable-telemetry` | Укажите этот флаг, если хотите отключить отправку анонимизированных метрик в Manticore. Можно также использовать переменную окружения TELEMETRY=0 | | `--config=/path/to/manticore.conf` | Путь к конфигурационному файлу Manticore. Необязательно. Если не указан, будет использована конфигурация по умолчанию для вашей операционной системы. Используется для определения хоста и порта для связи с демоном Manticore. Инструмент `manticore-backup` поддерживает [динамические настройки](../Server_settings/Scripted_configuration.md). Можно указать опцию `--config` несколько раз, если конфигурация разбросана по нескольким файлам. | @@ -144,6 +144,65 @@ Manticore versions: | `--version` | Показать текущую версию. | | `--help` | Показать эту справку. | + +## Поддержка хранилища S3 + +`manticore-backup` поддерживает сохранение и восстановление резервных копий напрямую в/из S3-совместимого хранилища, включая AWS S3, MinIO, Wasabi, Cloudflare R2 и другие. Просто передайте URL-адрес `s3://bucket/prefix` в качестве `--backup-dir`. + +### Конфигурация + +Установите следующие переменные окружения перед запуском `manticore-backup`: + +| Переменная | Обязательно | Описание | +|----------|----------|-------------| +| `AWS_ACCESS_KEY_ID` | Да | Ключ доступа AWS (или `AWS_ACCESS_KEY`) | +| `AWS_SECRET_ACCESS_KEY` | Да | Секретный ключ AWS (или `AWS_SECRET_KEY`) | +| `AWS_REGION` | Нет | Регион AWS (по умолчанию: `us-east-1`) | +| `AWS_ENDPOINT_URL` | Нет | Пользовательская S3-совместимая конечная точка — **только URL сервера, без имени бакета** (например, `http://localhost:9000`) | +| `AWS_S3_ENCRYPTION` | Нет | Включить шифрование на стороне сервера SSE-S3 (по умолчанию: `1` для AWS S3; установите `0` для MinIO, R2 или других пользовательских конечных точек) | + +> ⚠️ `AWS_ENDPOINT_URL` не должен включать имя бакета. Бакет берётся из аргумента `s3://bucket/prefix`. Включение бакета в URL конечной точки приводит к его дублированию в каждом запросе и вызывает ошибки. +> +> ``` +> # Неправильно — бакет "mybucket" продублирован в пути URL +> AWS_ENDPOINT_URL=https://account.r2.cloudflarestorage.com/mybucket +> +> # Правильно — конечная точка это только сервер +> AWS_ENDPOINT_URL=https://account.r2.cloudflarestorage.com +> ``` + +### Примеры использования + +```bash +# Backup to AWS S3 (SSE-S3 encryption enabled by default) +export AWS_ACCESS_KEY_ID=your_key +export AWS_SECRET_ACCESS_KEY=your_secret +manticore-backup --backup-dir=s3://my-bucket/backups + +# Restore from S3 +manticore-backup --restore --backup-dir=s3://my-bucket/backups +manticore-backup --restore=backup-20221004171839 --backup-dir=s3://my-bucket/backups + +# Use with MinIO (disable encryption) +export AWS_ACCESS_KEY_ID=minioadmin +export AWS_SECRET_ACCESS_KEY=minioadmin +export AWS_ENDPOINT_URL=http://localhost:9000 +export AWS_S3_ENCRYPTION=0 +manticore-backup --backup-dir=s3://my-bucket/backups + +# Use with Cloudflare R2 +export AWS_ACCESS_KEY_ID=your_r2_access_key +export AWS_SECRET_ACCESS_KEY=your_r2_secret_key +export AWS_ENDPOINT_URL=https://.r2.cloudflarestorage.com +export AWS_REGION=auto +export AWS_S3_ENCRYPTION=0 +manticore-backup --backup-dir=s3://my-bucket/backups +``` + +### Необходимые разрешения S3 + +Для резервного копирования требуется `s3:PutObject`, для восстановления — `s3:GetObject`, а для вывода списка доступных точек восстановления — `s3:ListBucket`. + ## Команда SQL BACKUP Вы также можете делать резервное копирование данных через SQL, выполнив простую команду `BACKUP TO /path/to/backup`.