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

Поділитися
Вставка
  • Опубліковано 26 гру 2024

КОМЕНТАРІ • 31

  • @badGuruu
    @badGuruu 4 місяці тому +1

    finally a good example for using child processes

  • @aakashgautam2200
    @aakashgautam2200 4 роки тому +5

    good example of child process cron and mongodump beautifully blended.

  • @kouroshtajallie1366
    @kouroshtajallie1366 3 роки тому +3

    best tutorial i saw this year so far

  • @nidhikalra4122
    @nidhikalra4122 Рік тому +4

    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."

  • @adelghaeinianphantomphood
    @adelghaeinianphantomphood 2 роки тому +2

    Thank you so much sir.

  • @KnifeInTheSnow
    @KnifeInTheSnow Рік тому

    fantastic tutorial, easy to understand

  • @kailaashjeevanj6434
    @kailaashjeevanj6434 3 роки тому +2

    Thank you so much 💕

  • @MrBay-z5m
    @MrBay-z5m 5 місяців тому

    Awesome my friend

  • @gokul_sreejith
    @gokul_sreejith 2 роки тому

    Thank you so much very useful 💟

  • @DeepanshuMalviyaPhysics
    @DeepanshuMalviyaPhysics 3 роки тому +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 4 роки тому +2

    Please make video on Cassandra database its one of the popular nosql database

  • @jibinjn
    @jibinjn Рік тому

    how can i do this in google cloud app engine ? now i am getting error mongodump not found, locally working fine

  • @AdamSuchiHafizullah
    @AdamSuchiHafizullah 3 роки тому +6

    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}"

  • @nimajavanmardi4768
    @nimajavanmardi4768 2 роки тому +2

    spawn mongodump ENOENT
    i get this error

    • @Lerogorn
      @Lerogorn 2 роки тому

      You need to add the folder with mongodump.exe to "path" in environment variables in your OS

  • @emirsalihovic6616
    @emirsalihovic6616 2 роки тому

    Sir, what theme are you using?

  • @sudeshchaudhary4558
    @sudeshchaudhary4558 3 роки тому

    Awesome!

  • @sumitmathur8596
    @sumitmathur8596 3 роки тому

    sir please tell me how to delete backup after some time .

  • @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?

  • @aakashgautam2200
    @aakashgautam2200 4 роки тому

    how can i decide when to use exec or spawn or fork specifically ? please address it .

    • @mafiacodes
      @mafiacodes  4 роки тому

      watch this video and u'll get to know what to use when ua-cam.com/video/bbmFvCbVDqo/v-deo.html

  • @riteshthakur9250
    @riteshthakur9250 4 роки тому

    my database is in mongo cluster it's not offline or local it's online so how can i do it.

    • @mafiacodes
      @mafiacodes  4 роки тому +1

      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 3 роки тому

      did u find any solution? I am stuck at this.

  • @ProgrammingWithOsku
    @ProgrammingWithOsku 2 роки тому

    Do you know that you are the best

  • @marzukzarir
    @marzukzarir 2 роки тому +1

    Great