| Safe way to backup an RDB file | teleo | 27/07/10 00:31 | Hi,
In Mongo, to backup the database it is possible to lock the slave, copy the files and then unlock the slave. See: http://www.snailinaturtleneck.com/blog/2010/07/26/mongodb-backups-corn-on-the-cob-in-10-minutes/ What is the safest way to backup an RDB file in Redis? Thanks, T |
| Re: Safe way to backup an RDB file | Salvatore Sanfilippo | 27/07/10 00:39 | On Tue, Jul 27, 2010 at 9:31 AM, teleo <lev....@gmail.com> wrote: > What is the safest way to backup an RDB file in Redis? In Redis .rdb files can be copied while the server is running without So just use "cp" :) Cheers, > Thanks, -- "Once you have something that grows faster than education grows, |
| Re: Safe way to backup an RDB file | teleo | 27/07/10 02:22 | Thanks. Sounds great.
Just to clarify, what happens if while I am copying the RDB file, a new file is renamed to overwrite the RDB? Isn't it possible that the disk space formerly occupied by the old RDB will be reclaimed and used by some other process? Or is it the case that while the file is open by me, the space will not be reclaimed? On Jul 27, 10:39 am, Salvatore Sanfilippo <anti...@gmail.com> wrote: > On Tue, Jul 27, 2010 at 9:31 AM, teleo <lev.ko...@gmail.com> wrote:> > You received this message because you are subscribed to the Google Groups "Redis DB" group.> To post to this group, send email tored...@googlegroups.com.> To unsubscribe from this group, send email toredis-db+...@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/redis-db?hl=en.> Salvatore 'antirez' Sanfilippohttp://invece.org |
| Re: Safe way to backup an RDB file | Bret A. Barker | 27/07/10 07:08 | Your 'cp' will have an open file handle on the old/existing .rdb, so it's safe. -bret > To post to this group, send email to redi...@googlegroups.com.
|
| Re: Safe way to backup an RDB file | David | 27/07/10 22:21 | Can an AOF file be backed up with a simple 'cp' command? Or must we
create a dump file to do a backup? Thanks, David On Jul 27, 3:39 pm, Salvatore Sanfilippo <anti...@gmail.com> wrote: > On Tue, Jul 27, 2010 at 9:31 AM, teleo <lev.ko...@gmail.com> wrote: > > For more options, visit this group athttp://groups.google.com/group/redis-db?hl=en.> Salvatore 'antirez' Sanfilippohttp://invece.org |
| Re: Safe way to backup an RDB file | David | 11/08/10 00:30 | Hi guys, is anyone able to help me out? I'd just like to know the
proper way to backup a Redis instance that is using AOF rather than snapshotting. Do I still need to do a snapshot for a backup, or can I just copy the AOF file? Thanks, David > > > What is the safest way tobackupan RDB file in Redis? |