Skip to main content

Your submission was sent successfully! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates from Canonical and upcoming events where you can meet our team.Close

Thank you for contacting us. A member of our team will be in touch shortly. Close

Create a backup

This is a guide on how to create and list backups of a Charmed MongoDB replica set or sharded cluster using Amazon S3 storage.

Prerequisites

Summary


Determine the application to run backup actions on

The application to pass to juju when running backup and restore actions depends on whether your deployment is a replica set or sharded cluster:

When running Charmed MongoDB as a replica-set, this will be the name of your MongoDB application.

When running Charmed MongoDB as a sharded cluster, this will be the name of your MongoDB application running with the “config-server” role - never the shard applications.

Create a backup

Before creating a backup, check that your Charmed MongoDB deployment is active and idle with juju status.

To create a backup, use the create-backup command on the leader unit:

juju run <replica-set name | config-server name>/leader create-backup

List all backups

To list all available, failed, and in-progress backups, use the list-backup command on the leader unit:

juju run <replica-set name | config-server name>/leader list-backups

Last updated 8 months ago. Help improve this document in the forum.