Skip to content

🔥更新:2025-01-28📝字数: 211 字⏰时长: 1 分钟

Data Backup and Migration Management

r-nacos utilizes a custom distributed file storage system, which is not very user-friendly for data management by default.

To enhance user experience in managing and utilizing data within r-nacos, we plan to introduce language-independent intermediate data files as data carriers. This will facilitate bidirectional migration between r-nacos system data and general database data.

1. Data Backup

1.1 Manual Data Backup

Administrators can manually perform data backups by selecting Export Data on the Console > Data Migration Page.

1.2 Automatic Data Backup

  1. Enable the data backup interface by configuring the RNACOS_BACKUP_TOKEN parameter. By default, the backup data token is empty, meaning the feature is disabled.

  2. Data Backup HTTP Interface Details

Interface Path

GET /rnacos/backup

Parameters:

token: Access token, which must match the `RNACOS_BACKUP_TOKEN` configured in r-nacos.

Example Call:

sh
curl -o backup.data 'http://127.0.0.1:8848/rnacos/backup?token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx'
  1. Schedule regular data backups by setting up cron jobs to call the backup interface.

Configure according to your specific needs, details omitted.

2. Data Recovery

Data recovery is an infrequent operation and must be performed manually by administrators via the console.

Administrators can manually restore data by selecting Import Data on the Console > Data Migration Page.

Released under the MIT License.

Layout Switch

Adjust the layout style of VitePress to adapt to different reading needs and screens.

Expand all
The sidebar and content area occupy the entire width of the screen.
Expand sidebar with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Expand all with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Original width
The original layout width of VitePress

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.

Spotlight

Highlight the line where the mouse is currently hovering in the content to optimize for users who may have reading and focusing difficulties.

ONOn
Turn on Spotlight.
OFFOff
Turn off Spotlight.