Andrew Kryczka bbd6a5a184 ldb restore subcommand
Summary:
- Added a new subcommand, 'ldb restore', that restores from backup
- Made backup_env_uri optional (also for 'ldb backup') because it can use db_env when backup_env isn't provided

Test Plan:
verify backup and restore commands work:

  $ ./ldb backup --db=/data/users/andrewkr/rocksdb/db_bench-out/ --num_threads 1 --backup_dir=/data/users/andrewkr/rocksdb/db_bench-out/backup/
  $ ./ldb restore --db=/data/users/andrewkr/rocksdb/db_bench-out/restore/ --num_threads 1 --backup_dir=/data/users/andrewkr/rocksdb/db_bench-out/backup/

Reviewers: sdong, wanning

Reviewed By: wanning

Subscribers: andrewkr, dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D60849
2016-07-26 11:13:26 -07:00
..
2015-12-11 01:54:48 +09:00
2015-12-11 01:54:48 +09:00
2016-07-08 17:50:51 -07:00
2016-07-26 11:13:26 -07:00
2016-05-06 16:09:09 -07:00
2016-07-26 11:13:26 -07:00
2016-07-26 11:13:26 -07:00
2016-06-28 14:10:24 -07:00
2015-10-28 16:15:07 -07:00