Skip to content

Method dump

Maruf Çetin edited this page Sep 1, 2026 · 2 revisions

Method: dump()

Turkce Dokumantasyon | English Documentation

Category: Maintenance & Tools Methods
Submodule: AmberDB::Tools
Entry Type: Database Archiving


1. Definition and Overview

dump() creates a compressed, portable .amberdb native database archive containing table schemas (schema/*.table, schema/*.dbase), authoritative master data tables (tables/*.db, *.del, *.aut, *.cnt, *.unq), and a cryptographically verified SHA-256 manifest.json. Derived secondary indexes are excluded to save space.


2. Syntax and Signature

my $archive_path = $tools->dump(%options);

3. Options

  • file: Custom output archive path.
  • tables: Array reference of specific table IDs to export (defaults to all tables).
  • table: Single table ID to snapshot.

4. Practical Code Example

use AmberDB;
use AmberDB::Tools;

my $adb   = AmberDB->new(path => { dbase_dir => "./dbstore" });
my $tools = AmberDB::Tools->new($adb);

# Full database backup snapshot
my $backup_file = $tools->dump();
print "Backup archive: $backup_file\n";

5. See Also

AmberDB Encyclopedia

Home · A-Z Index


Getting Started & Guides


Core Concepts


Core CRUD Methods


Query, Search & Facets


Transactions & Locks


Cache, Buffer & Low-Level


Locale & Helpers


Maintenance & Tools


Configuration Flags


File Formats


Language

Clone this wiki locally