Link to home
Start Free TrialLog in
Avatar of rakkad
rakkadFlag for United Kingdom of Great Britain and Northern Ireland

asked on

MongoDB backup and restore script

A script that will backup MongoDB:-

1. Backup the db at 00:01 (cron job..)
2. Compress the backup file
3. Remove backups after 2 days
4. Alert by email of backups successful or fail

A script that will be used to restore the MongoDB
Avatar of RAFA
RAFA
Flag of Venezuela, Bolivarian Republic of image

Hello

Attach the following link as a reference, to make a backup and restore in Mongo:

https://tecadmin.net/backup-and-restore-mongodb-database/

https://docs.mongodb.com/manual/tutorial/backup-and-restore-tools/

regards..
Avatar of rakkad

ASKER

Hi thanks, but it doesn't cover the complete solution am after as per the question.  Can you assist further ?

Thanks
Hello

Yes of course I can help, I'm telling you

regards..
Avatar of rakkad

ASKER

In that case can you look at the areas I identified in my original question ?
Avatar of rakkad

ASKER

Can someone please help as I have not had a solution to the question ?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.