A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mariadb.com/docs/server/server-usage/storage-engines/s3-storage-engine/aria_s3_copy below:

aria_s3_copy | MariaDB Documentation

aria_s3_copy | MariaDB Documentation
  1. Server Usage
  2. Storage Engines
  3. S3 Storage Engine
aria_s3_copy

MariaDB starting with 10.5

The S3 storage engine has been available since MariaDB 10.5.4.

aria_s3_copy is a tool for copying an Aria table to and from S3.

The Aria table must be non transactional and have ROW_FORMAT=PAGE.

For aria_s3_copy to work reliably, the table should not be changed by the MariaDB server during the copy, and one should have first performed FLUSH TABLES to ensure that the table is properly closed.

Example of properly created Aria table:

CREATE TABLE test1 (a INT) transactional=0 row_format=PAGE engine=aria;

Note that ALTER TABLE table_name ENGINE=S3 will work for any kind of table. This internally converts the table to an Aria table and then moves it to S3 storage.

Display this help and exit.

Operation to execute. One of 'from_s3', 'to_s3' or 'delete_from_s3'

Database for copied table (second prefix). If not given, the directory of the table file is used

Block size for data/index blocks in s3

-L, --s3-protocol-version=name

Protocol used to communication with S3. One of "Amazon" or "Original".

Force copy even if target exists

Output debug log. Often this is 'd:t:o,filename'.

Output debug log from marias3 to stdout

Port number to connect to (0 means use default)

If true, force use of HTTP protocol

Typical Configuration in a my.cnf File
[aria_s3_copy]
s3-bucket=mariadb
s3-access-key=xxxx
s3-secret-key=xxx
s3-region=eu-north-1
#s3-host-name=s3.amazonaws.com
#s3-protocol-version=Amazon
verbose=1
op=to

The following code will copy an existing Aria table named test1 to S3. If the --database option is not given, then the directory name where the table files exist are used as the database.

shell> aria_s3_copy --force --op=to --database=foo --compress --verbose --s3_block_size=4M test1
Delete of aria table: foo.test1
Delete of index information foo/test1/index
Delete of data information foo/test1/data
Delete of base information and frm
Copying frm file test1.frm
Copying aria table: foo.test1 to s3
Creating aria table information foo/test1/aria
Copying index information foo/test1/index
.
Copying data information foo/test1/data
.

When using --verbose, aria_s3_copy will write a dot for each #/79 part of the file copied.

Using the S3 storage engine. This pages has examples of .my.cnf entries for using aria_s3_copy.

This page is licensed: CC BY-SA / Gnu FDL


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4