Some typos
This commit is contained in:
parent
5246343b6a
commit
7c27cd0a91
2 changed files with 4 additions and 4 deletions
|
@ -54,7 +54,7 @@ BackupEngine
|
||||||
|
|
||||||
.. py:method:: get_backup_info()
|
.. py:method:: get_backup_info()
|
||||||
|
|
||||||
Returns infomration about all backups.
|
Returns information about all backups.
|
||||||
|
|
||||||
It returns a list of dict's where each dict as the following keys.
|
It returns a list of dict's where each dict as the following keys.
|
||||||
|
|
||||||
|
|
|
@ -248,7 +248,7 @@ Backup And Restore
|
||||||
|
|
||||||
Backup and Restore is done with a separate :py:class:`rocksdb.BackupEngine` object.
|
Backup and Restore is done with a separate :py:class:`rocksdb.BackupEngine` object.
|
||||||
|
|
||||||
A backup can only be created on a living database object ::
|
A backup can only be created on a living database object. ::
|
||||||
|
|
||||||
import rocksdb
|
import rocksdb
|
||||||
|
|
||||||
|
@ -260,13 +260,13 @@ A backup can only be created on a living database object ::
|
||||||
Backup is created like this.
|
Backup is created like this.
|
||||||
You can choose any path for the backup destination except the db path itself.
|
You can choose any path for the backup destination except the db path itself.
|
||||||
If ``flush_before_backup`` is ``True`` the current memtable is flushed to disk
|
If ``flush_before_backup`` is ``True`` the current memtable is flushed to disk
|
||||||
before backup ::
|
before backup. ::
|
||||||
|
|
||||||
backup = rocksdb.BackupEngine("test.db/backups")
|
backup = rocksdb.BackupEngine("test.db/backups")
|
||||||
backup.create_backup(db, flush_before_backup=True)
|
backup.create_backup(db, flush_before_backup=True)
|
||||||
|
|
||||||
Restore is done like this.
|
Restore is done like this.
|
||||||
The two arguments are the db_dir and wal_dir, which are mostly the same ::
|
The two arguments are the db_dir and wal_dir, which are mostly the same. ::
|
||||||
|
|
||||||
backup = rocksdb.BackupEngine("test.db/backups")
|
backup = rocksdb.BackupEngine("test.db/backups")
|
||||||
backup.restore_latest_backup("test.db", "test.db")
|
backup.restore_latest_backup("test.db", "test.db")
|
||||||
|
|
Loading…
Reference in a new issue