Linux technical support - support@alexlinux.com


mongo

# BACKUP
mongodump --out /data/backup/

# RESTORE
mongorestore backup/

# SHOW TABLES
show collections

db.people.find().sort({ timestamp: -1 })

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>