[PATCH 2/2] box: allow to specify the checkpoint to backup

Konstantin Osipov kostja at tarantool.org
Wed May 30 22:08:05 MSK 2018


* Vladimir Davydov <vdavydov.dev at gmail.com> [18/05/30 11:45]:
> Even though we store last box.cfg.checkpoint_count checkpoints, we can
> only restore to the last one, because the backup API only allows to
> backup the last checkpoint. This patch adds an optional argument to
> box.backup.start() which specifies the index of the checkpoint to
> backup. If it is omitted or is 0, box.backup.start() will return files
> corresponding to the last checkpoint. If it is 1, it will back the
> previous checkpoint, and so on.
> 
> Closes #3410

Please open a documentation request.

The test case fails on my system, most likely once again because I
use symlinks.

-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov



More information about the Tarantool-patches mailing list