Backup and recovery

Backups protect against data loss by letting you restore data.

YDB provides multiple solutions for backup and recovery:

  • Backing up data to files and restoring it using the YDB CLI.
  • Backing up data to S3-compatible storage and restoring it using the YDB CLI.

YDB CLI

Files

To back up data to a file, run the ydb tools dump command. To learn more about this command, follow the link to the YDB CLI reference.

To restore data from a backup, run the ydb tools restore command. To learn more about this command, follow the link to the YDB CLI reference.

S3-compatible storage

To back up data to S3-compatible storage (such as AWS S3), run the ydb export s3 command. To learn more about this command, follow the link to the YDB CLI reference.

To restore data from a backup created in S3-compatible storage, run the ydb import s3 command. To learn more about this command, follow the link to the YDB CLI reference.