Redis strange behavior

General Discussion
  • #1

    I'm new to nodeBB and Redis.
    Having said that, I am so confused by Redis behavior along with nodeBB.

    Reading the docs-Upgrading NodeBB

    Backing up Redis
    As with all upgrades, the first step is to back up your data! Nobody likes database corruption/misplacement.
    All of the textual data stored in NodeBB is found in a .rdb file. On typical installs of Redis, the main database is found at /var/lib/redis/dump.rdb.

    However, during heavy tweak/installation of nodeBB, sometimes, dump.rdb appears under my user's home root /home/ken/dump.rdb.
    I try to figure out which dump.rdb is actually connected to nodeBB and updated, and observed the time-stamp with redis-cli save/bgsave.
    The dump.rdb under the home is updated, and /var/lib/redis/dump.rdb is not updated.
    Sometimes, redis-cli save reflect redis-server log, sometimes does not.

    Does someone have same kind of trouble? If I miss something, please let me know.

    Thanks.

  • GNU/Linux
    #2

    The redis server will read from whichever file is the dbfilename inside the dir directory. You can find both those values in your redis configuration file, which by default is in /etc/redis

  • #3

    Thanks @julian , I understand that.
    /etc/redis/redis.conf is configured as│dir /var/lib/redis
    Actually, I sort of knew this, but if so, it does not make any sense dump.rdb appears under the home/username/ directory...


Suggested Topics


  • 0 Votes
    9 Posts
    5593 Views

  • 0 Votes
    4 Posts
    1879 Views

  • 0 Votes
    15 Posts
    14100 Views

  • 0 Votes
    17 Posts
    3628 Views

  • Redis vs MongoDB

    General Discussion
    0 Votes
    11 Posts
    5544 Views

| | | |