meteor - What is the easiest to backup a mongoDB deployed with mup? -
i deployed app on ubuntu server using mup deploy (https://github.com/arunoda/meteor-up) option "setupmongo": true in mup.json file.
everything works fine, , save mongodb database daily ftp or s3, or set mongodb replica server (to avoid copying whole database every time, seems more complicated).
my knowledge of system adminisation limited, i'm looking easiest way it.
the best way mongodump it.
assuming running on mup instance since listens 127.0.0.1 have ssh in , use mongodump.
if run it:
mongodump it create directory dump containing backup.
if want remotely have edit /etc/mongodb.conf ensure binds globally, have create users though since publicly accessible. set auth true.
you mongodump own machine (you can download mongodump binary mongodb.org):
./mongodump --host <your server ip address> --username <username> --password <password>
Comments
Post a Comment