MongoDB Backup with Bash
Learn how to backup MongoDB to Filebase using Bash.
What is MongoDB?
1. Start by installing the S3cmd tool on your MongoDB server with the following commands:
2. Verify S3cmd was installed correctly using the following command to display the installed version:
3. Next, configure S3cmd for use with Filebase:
4. Test your configuration using the following command:
5. Next, login to your MongoDB server with the following command:
6. Show the available databases with the command:
7. Then, backup the admin database in your directory of choice using the following command.
8. Run the following S3cmd command to copy the admin database backup file into your Filebase bucket:
9. Verify that all files have been uploaded correctly using the following command:
Last updated