wolegequ
V2EX  ›  问与答

redis 如何数据备份

  •  
  •   wolegequ · Dec 8, 2013 · 3656 views
    This topic created in 4593 days ago, the information mentioned may be changed or developed.
    事情是这样的,我有两台服务器(aws), 两台的环境一模一样,只是一台上线一台内测。昨天我打算测试一个新功能的时候,需要把内测服务器的数据清一下, 但是没注意终端连接的是上线的服务器,于是就悲剧了。。。。。


    求问redis该如何备份数据呢。谢谢
    9 replies    1970-01-01 08:00:00 +08:00
    likexian
        1
    likexian  
       Dec 8, 2013
    google 快照
    wolegequ
        2
    wolegequ  
    OP
       Dec 8, 2013
    @likexian google 会抓取数据库的么 - -
    felix021
        3
    felix021  
       Dec 8, 2013
    把aof的log或者rdb文件备份了不就行了。
    akira
        4
    akira  
       Dec 8, 2013
    redis的持久化功能没有用起来么
    wolegequ
        5
    wolegequ  
    OP
       Dec 8, 2013
    @akira 系统是Ubuntu 默认安装的 , 不知道打开了没。。。。
    xatest
        6
    xatest  
       Dec 8, 2013
    http://redis.io/topics/persistence
    redis最基础的官方文档都没看过??
    Numbcoder
        7
    Numbcoder  
       Dec 8, 2013   ❤️ 1
    开了 AOF 的话,数据可以找回来!
    没记错的话这个默认是关闭的。。
    wolegequ
        8
    wolegequ  
    OP
       Dec 8, 2013
    @Numbcoder 多么痛的领悟
    wolegequ
        9
    wolegequ  
    OP
       Dec 8, 2013
    @xatest 英语太搓了。。。。泪奔
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3792 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 04:24 · PVG 12:24 · LAX 21:24 · JFK 00:24
    ♥ Do have faith in what you're doing.