Skip to main content

Backup and restore

Using the Abstra CLI, you can easily backup and restore your table schemas and data.

Creating a backup

To create a backup of your tables, run the following command in your terminal:

abstra dump

This will generate a file named abstra-tables.json containing your table schema and data.

Restoring a backup

To restore a previously backed-up file, ensure the abstra-tables.json file is located in your project root, then run:

abstra restore

This command will restore the tables and their data from the backup file.

Restoring from csv

To restore from a CSV file, use the following command:

abstra restore --file <path-to-file.csv>