mongodump



```typemongodump --uri='mongodb+srv://'# change db namemongorestore --uri='mongodb+srv://'```

### Backup
```typemongodump --uri='' --gzip --archive="/home/stryx/server/db/`date`.gz"```




> [How To Set Up Scheduled MongoDB Backups to DigitalOcean Spaces | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-set-up-scheduled-logical-mongodb-backups-to-digitalocean-spaces)





