diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-10-24 09:59:45 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-10-24 11:37:20 +0300 |
commit | 574b8e2c74f3174b15d3d80a21d86cbb10268b15 (patch) | |
tree | 2eb1f525826e0dba2bfe67e964c07792d20dd52c /src/bin | |
parent | 60cb5be04ecd313f4ea508f66951957d9644fa01 (diff) | |
download | obnam2-574b8e2c74f3174b15d3d80a21d86cbb10268b15.tar.gz |
feat! store schema version of generation database in the db
Add a new mandatory database table "meta" to the SQLite database the
stores information about the files in a backup generation. The idea is
for future versions of the Obnam client to be able to be able to
restore from backups made by older -- or newer -- versions of Obnam,
as far as is reasonable.
Add the `obnam gen-info` command to show information about the
generation metadata.
Sponsored-by: author
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/obnam.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/obnam.rs b/src/bin/obnam.rs index b2d5683..21add9c 100644 --- a/src/bin/obnam.rs +++ b/src/bin/obnam.rs @@ -5,6 +5,7 @@ use log4rs::config::{Appender, Logger, Root}; use obnam::cmd::backup::Backup; use obnam::cmd::chunk::{DecryptChunk, EncryptChunk}; use obnam::cmd::chunkify::Chunkify; +use obnam::cmd::gen_info::GenInfo; use obnam::cmd::get_chunk::GetChunk; use obnam::cmd::init::Init; use obnam::cmd::list::List; @@ -47,6 +48,7 @@ fn main_program() -> anyhow::Result<()> { Command::ListFiles(x) => x.run(&config), Command::Resolve(x) => x.run(&config), Command::Restore(x) => x.run(&config), + Command::GenInfo(x) => x.run(&config), Command::GetChunk(x) => x.run(&config), Command::Config(x) => x.run(&config), Command::EncryptChunk(x) => x.run(&config), @@ -103,6 +105,7 @@ enum Command { List(List), ListFiles(ListFiles), Restore(Restore), + GenInfo(GenInfo), ShowGeneration(ShowGeneration), Resolve(Resolve), GetChunk(GetChunk), |