May 10, 2020

Backup and restore an Adapt Authoring instance

This guide covers how to back up and restore an Adapt Authoring instance. It involves zipping the application files and dumping/restoring the MongoDB database.

Backup

Step 1: Zip the app files (excluding large dependency folders)

1
zip -r * app/* -x\app/bower_components/* -x\node_modules/* -x*.zip

Step 2: Zip custom adapt content

1
zip -r customadapt.zip ./custom_adapt/* -x "*.git*" -x "**/node_modules/*"

Step 3: Dump the MongoDB database

1
mongodump

Step 4: Zip the database dump

1
zip -r adaptdata.zip ./adapt-tenant-master/*

Restore

Step 1: Restore the MongoDB database

The --drop flag drops each collection before importing, ensuring a clean restore.

1
mongorestore --db adapt-tenant-master --drop ./adapt-tenant-master

Step 2: Unzip and deploy the app files as needed to your target environment.