Giter Site home page Giter Site logo

nodebb-backup's Introduction

nodebb-backup

A simple backup script based on the steps described in https://docs.nodebb.org/vi/latest/upgrading/

Install

npm install -g nodebb-backup

Run (inside your nodebb folder)

nodebb-backup

Features

  • Backs up the mongo database specified in NodeBB's config.json file
  • Backs up the nodebb/uploads directory which contains uploaded images
  • Compresses dumped db and files from /uploads into a tar with a format like this: nodebb-backup-2015-09-01_1509-v0.7.3.tar
  • Resulting tar file is saved to the directory above nodebb

Limitations

  • Many, it's pretty raw!
  • Mongo only
  • No command line options yet

Needed Features (please send me feedback)

  • Be able to provide a path to place the resulting back up file
  • Redis support
  • Maybe be able to restore from a provided tar file?

Unpacking tar to new directory, 'unpackeddir'

mkdir -p unpackeddir; tar -xvf nodebb-backup-2015-11-10_1532-v0.8.2.tar -C $_

Restoring db (from inside unpacked directory created above)

mongorestore -d nodebb -u username -p password --dir=unpackeddir/nodebb --host=127.0.0.1:27017

nodebb-backup's People

Contributors

jongarrison avatar

Stargazers

Innan Yun avatar Carlos Eduardo Vieira avatar Dummy Tux avatar Cleo Credo avatar 德布劳外 · 贾贵 avatar  avatar marco avatar Thomas Lekanger avatar River Yang avatar T. Nishino avatar Timothy Fike avatar

Watchers

 avatar James Cloos avatar  avatar

nodebb-backup's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.