How to backup mongodb every night - it's really easy.

  Рет қаралды 25,852

Mafia Codes

Mafia Codes

3 жыл бұрын

In this video you will learn how to backup #mongodb every night. We won't be using any third-party packages but will do everything on our own, but only for scheduling we will use a package called #node-cron.
For backup we would be using #Nodejs #child-process #spawn method to do backup using the #mongodump command.
Deploy apps: zeet.co/r/yourstruly
(One FREE project forever 😘)
Github: github.com/trulymittal/mongod...
FREE $100 credit @Digital Ocean: m.do.co/c/3208f08b3324
Subscribe: kzfaq.info...
Support the channel:
Paypal: www.paypal.me/trulymittal
Patreon: / trulymittal
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! www.kite.com/get-kite/?...
---------------
Other useful Playlists
---------------
#RestAPI (#NodeJS and MongoDB): • REST API using NodeJS ...
#API Authentication using #JWT: • NodeJS API Authenticat...
#Firebase: • Firebase | Build a Not...
Docker: • Docker
MongoDB: • Learn MongoDB in 50 mi...
Html/Css/Js: • HTML / CSS / JS
Android: • Android
Challenges: • Challenges
#yoursTRULY #tutorial #howto #nodejs #android

Пікірлер: 33
@aakashgautam2200
@aakashgautam2200 3 жыл бұрын
good example of child process cron and mongodump beautifully blended.
@kouroshtajallie1366
@kouroshtajallie1366 3 жыл бұрын
best tutorial i saw this year so far
@mafiacodes
@mafiacodes 3 жыл бұрын
Wow, thanks!
@KnifeInTheSnow
@KnifeInTheSnow Жыл бұрын
fantastic tutorial, easy to understand
@leamonlee8809
@leamonlee8809 2 жыл бұрын
Awesome! Thanks for sharing.
@gokul_sreejith
@gokul_sreejith 2 жыл бұрын
Thank you so much very useful 💟
@kailaashjeevanj6434
@kailaashjeevanj6434 2 жыл бұрын
Thank you so much 💕
@adelghaeinianphantomphood
@adelghaeinianphantomphood Жыл бұрын
Thank you so much sir.
@MrBay-z5m
@MrBay-z5m 3 күн бұрын
Awesome my friend
@sudeshchaudhary4558
@sudeshchaudhary4558 2 жыл бұрын
Awesome!
@nidhikalra4122
@nidhikalra4122 Жыл бұрын
Getting error "mongodump : The term 'mongodump' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
@DeepanshuMalviyaPhysics
@DeepanshuMalviyaPhysics 2 жыл бұрын
will this backup the whole collection or just the new documents added.......and if it creates the backup of whole collection every time is it not inefficient !
@neerajverma9226
@neerajverma9226 3 жыл бұрын
Please make video on Cassandra database its one of the popular nosql database
@emirsalihovic6616
@emirsalihovic6616 2 жыл бұрын
Sir, what theme are you using?
@khwbhawjfamilylivechannel322
@khwbhawjfamilylivechannel322 3 жыл бұрын
Hi sir, after I backUp like this video, and I world like to push to git by using child_proccess, How can I do? Do you have toturial?
@marzukzarir
@marzukzarir Жыл бұрын
Great
@jibinjn
@jibinjn 6 ай бұрын
how can i do this in google cloud app engine ? now i am getting error mongodump not found, locally working fine
@ProgrammingWithOsku
@ProgrammingWithOsku 2 жыл бұрын
Do you know that you are the best
@sumitmathur8596
@sumitmathur8596 3 жыл бұрын
sir please tell me how to delete backup after some time .
@AdamSuchiHafizullah
@AdamSuchiHafizullah 3 жыл бұрын
Nice tutorial sir. But maybe --db is deprecated. When i run mongorestore your suggest code, its return error "The --db and --collection flags are deprecated for this use-case; please use --nsInclude instead, i.e. with --nsInclude=${DATABASE}.${COLLECTION}"
@bryanltobing
@bryanltobing 3 жыл бұрын
so how you fix that?
@williamsantos382
@williamsantos382 2 жыл бұрын
Put the nsInclude= before the db= tag
@aakashgautam2200
@aakashgautam2200 3 жыл бұрын
how can i decide when to use exec or spawn or fork specifically ? please address it .
@mafiacodes
@mafiacodes 3 жыл бұрын
watch this video and u'll get to know what to use when kzfaq.info/get/bejne/mMidedl0x7yooaM.html
@sunilvurandur7415
@sunilvurandur7415 3 жыл бұрын
does it support a huge data? like 3-5GB in a .gzip file..
@mafiacodes
@mafiacodes 3 жыл бұрын
yup I guess so, it will...
@nimajavanmardi4768
@nimajavanmardi4768 2 жыл бұрын
spawn mongodump ENOENT i get this error
@Lerogorn
@Lerogorn Жыл бұрын
You need to add the folder with mongodump.exe to "path" in environment variables in your OS
@riteshthakur9250
@riteshthakur9250 3 жыл бұрын
my database is in mongo cluster it's not offline or local it's online so how can i do it.
@mafiacodes
@mafiacodes 3 жыл бұрын
mongodump takes in a lot of arguments and u can easily add them in the spawn function, have a look for args @ docs.mongodb.com/database-tools/mongodump/#bin.mongodump
@rupakmagar6680
@rupakmagar6680 2 жыл бұрын
did u find any solution? I am stuck at this.
@natikirstdami7224
@natikirstdami7224 3 жыл бұрын
2:32 I like that😍💋 💝💖❤️
Setup MongoDB for Production deployment - Replica Sets cluster
19:42
1 or 2?🐄
00:12
Kan Andrey
Рет қаралды 51 МЛН
你们会选择哪一辆呢#short #angel #clown
00:20
Super Beauty team
Рет қаралды 46 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 18 МЛН
How to create a child process in nodejs (exec, execFile and spawn)
13:39
MongoDB Internal Architecture
43:25
Hussein Nasser
Рет қаралды 82 М.
How to scale NodeJs applications using the cluster module.
13:37
Mafia Codes
Рет қаралды 49 М.
You won't BELIEVE what I just did with TanStack's React Tables!
35:58
Redis Crash Course
27:31
Web Dev Simplified
Рет қаралды 604 М.
How to Recover Lost Data using Oplog in Mongo Database
4:34
VeMaRa Hub
Рет қаралды 6 М.