Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-11-12 | fix: unnecessary borrows, other things found by clippy | Lars Wirzenius | 1 | -1/+1 | |
Sponsored-by: author | |||||
2022-11-02 | fix: put back --version | Lars Wirzenius | 1 | -1/+1 | |
Sponsored-by: author | |||||
2022-10-28 | feat! finish chunk store abstraction | Lars Wirzenius | 1 | -34/+11 | |
This builds on Alexander's work to show me how to get past the problem I had. There's additional changes to finish off the changes. Drop chunk deletion from server: it's not a good idea to have it until the server API is authenticated. Sponsored-by: author | |||||
2022-10-26 | stash | Lars Wirzenius | 1 | -11/+8 | |
Sponsored-by: author | |||||
2022-10-23 | refactor: use clap instead of structopt | Lars Wirzenius | 2 | -12/+11 | |
clap version 3 basically replaces structopt entirely. Sponsored-by: author | |||||
2022-04-06 | feat! add chunk server API version to HTTP paths | Lars Wirzenius | 1 | -0/+8 | |
What was /chunks is now /v1/chunks. This is the minimal step to start supporting multiple API versions. Also, /v1/chunks/foo/bar is no longer supported. Sponsored-by: author | |||||
2022-04-05 | feat: collect and log some time metrics | Lars Wirzenius | 1 | -3/+8 | |
Log the complete run-time of the program, and the time spent downloading the previous generation, and uploading the new generation. Sponsored-by: author | |||||
2022-03-22 | feat! drop generation related fields from chunk metadata | Lars Wirzenius | 1 | -3/+1 | |
Sponsored-by: author | |||||
2022-03-20 | feat: add subcommands inspect, list-backup-versions | Lars Wirzenius | 1 | -0/+6 | |
Sponsored-by: author | |||||
2022-03-13 | feat! rename metadata field "sha256" to "label" | Lars Wirzenius | 1 | -2/+2 | |
The field still contains a cleartext SHa256 of the cleartext chunk data, but this makes it clearer that it may contain other data. This is a breaking change: the server API won't work with an old client, and the new client won't work with an old server. To avoid the breakage would require more effort than is warranted at this time, given the very small number of users of Obnam. Sorry. Sponsored-by: author | |||||
2021-10-24 | feat! store schema version of generation database in the db | Lars Wirzenius | 1 | -0/+3 | |
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 | |||||
2021-09-23 | drop: benchmark programs | Lars Wirzenius | 4 | -242/+0 | |
I think we need to re-think the way we do benchmarks. These old programs aren't useful anymore. We definitely want to run benchmarks via "cargo bench" rather than having extra binaries in the crate. Sponsored-by: author | |||||
2021-08-02 | Merge branch 'feature/117-obnam_server_log' into 'main' | Lars Wirzenius | 1 | -1/+1 | |
feat: configure log verbosity with OBNAM_SERVER_LOG envvar Closes #117 See merge request obnam/obnam!170 | |||||
2021-08-01 | feat: add command to resolve a generation ref into a chunk id | Lars Wirzenius | 1 | -0/+3 | |
Sponsored-by: author | |||||
2021-07-31 | feat: configure log verbosity with OBNAM_SERVER_LOG envvar | Alexander Batischev | 1 | -1/+1 | |
Fixes #117. | |||||
2021-07-30 | cleanup: fix things rustc/clipppy now complain about | Lars Wirzenius | 4 | -4/+4 | |
Mostly https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow. Sponsored-by: author | |||||
2021-07-18 | feat: add "chunkify" subcommand | Lars Wirzenius | 1 | -0/+3 | |
Sponsored-by: author | |||||
2021-07-05 | refactor: have main explicitly print error message | Lars Wirzenius | 1 | -8/+11 | |
This is a little cleaner than having main print an error message by returning an Err value as a Result. For one thing, we can be more sure we log the error. Sponsored-by: author | |||||
2021-05-29 | refactor: only have client config without passwords | Lars Wirzenius | 1 | -24/+15 | |
This means the config is always the config, and not sometimes the config or the config and passwords. Also, there's no config option for encrypting, anymore. It will not be optional now. | |||||
2021-05-29 | refactor: count chunks via file system, not via chunk server API | Lars Wirzenius | 1 | -2/+0 | |
2021-05-29 | refactor: make metadata be part of datachunk | Lars Wirzenius | 5 | -13/+14 | |
This makes it harder to lose the metadata for a chunk, or to use unrelated metadata and chunk. Also, soon I will refactor things for encrypting chunks, which will need metadata embedded in the encrypted chunk. Sponsored-by: author | |||||
2021-04-10 | refactor: main function for clarity | Lars Wirzenius | 1 | -13/+14 | |
2021-04-10 | refactor: have ClientConfigWithoutPasswords know its filename | Lars Wirzenius | 1 | -2/+1 | |
This allows Init::run to not need to be given it as an argument. | |||||
2021-04-10 | refactor: struct ShowConfig subcommand | Lars Wirzenius | 1 | -5/+5 | |
2021-04-10 | refactor: struct GetChunk subcommand | Lars Wirzenius | 1 | -6/+4 | |
2021-04-10 | refactor: struct Restore subcommand | Lars Wirzenius | 1 | -9/+4 | |
2021-04-10 | refactor: struct ListFiles subcommand | Lars Wirzenius | 1 | -6/+4 | |
2021-04-10 | refactor: struct ShowGeneration subcommand | Lars Wirzenius | 1 | -6/+4 | |
2021-04-10 | refactor: struct List subcommand | Lars Wirzenius | 1 | -3/+4 | |
2021-04-10 | refactor: struct Backup subcommand | Lars Wirzenius | 1 | -3/+4 | |
2021-04-10 | refactor: struct Init subcommand | Lars Wirzenius | 1 | -15/+6 | |
2021-04-10 | refactor: move ClientConfig into its own module | Lars Wirzenius | 1 | -1/+1 | |
2021-04-09 | refactor: move function to better place | Lars Wirzenius | 1 | -13/+13 | |
2021-04-09 | feat: add "obnam init" subcommand | Lars Wirzenius | 1 | -28/+43 | |
This reads a passphrase and derives two passwords from that, and stores them next to the configuration file. The passwords aren't yet used for anything, that will come later. | |||||
2021-03-27 | refactor: don't return Result if main can't fail | Lars Wirzenius | 1 | -3/+1 | |
2021-03-24 | refactor: switch from dirs crate to directories-next | Lars Wirzenius | 1 | -5/+8 | |
It's a higher-level library and a little nicer to use. | |||||
2021-03-24 | chore: use warp's bytes instead of bytes crate directly | Lars Wirzenius | 1 | -1/+1 | |
2021-03-06 | perf: report wall clock time for warmup and hot lookups | Lars Wirzenius | 2 | -0/+12 | |
2021-03-05 | perf: allow benchmark-indexedstore do lookups by checksum | Lars Wirzenius | 1 | -9/+68 | |
2021-03-05 | perf: allow benchmark-index to do lookups by checksum | Lars Wirzenius | 1 | -15/+67 | |
2021-03-03 | fix: remove duplicate error message printing | Lars Wirzenius | 1 | -1/+0 | |
2021-03-03 | refactor: rename Config, ConfigError to show they are for server | Lars Wirzenius | 1 | -4/+4 | |
2021-03-03 | feat: in errors about reading a configuration file, include its name | Lars Wirzenius | 2 | -7/+33 | |
2021-02-19 | feat: back up and restore Unix domain sockets | Lars Wirzenius | 1 | -1/+1 | |
2021-02-16 | refactor: move server config into src/server.rs | Lars Wirzenius | 1 | -47/+3 | |
2021-02-06 | feat: use the chunk size setting from the client configuration | Lars Wirzenius | 1 | -6/+2 | |
Use the chunk_size setting for file data. For the SQLite file, use a hard-coded size instead. | |||||
2021-02-06 | feat: method for listing ids of chunks from file data | Lars Wirzenius | 1 | -0/+2 | |
This will be useful soon, to enable us to check how many chunks from file data there is in the repository, to check that an upcoming chunk size setting works. Also add an API call for returning the ids. Note that all of this is meant for testing only. It may be best to disable it in production builds, eventually. | |||||
2021-02-04 | feat: add obnam config subcommand | Lars Wirzenius | 1 | -1/+3 | |
2021-02-04 | refactor: have per-module error enums | Lars Wirzenius | 1 | -1/+1 | |
This means that a function that parses step bindings can't return an error that the document is missing a title. Such an error return would be nonsensical, and we use the Rust type system to prevent it, at a small cost of being a bit verbose. Additional benefit is that the library portion of Obnam doesn't return anyhow::Result values anymore. | |||||
2021-01-17 | feat: add a default configuration file | Lars Wirzenius | 1 | -2/+16 | |
The ~/.config/obnam/obnam.yaml file will be used as the configuration file by default. The ~/.config directory can be overridden by setting the XDG variable (XDG_CONFIG_HOME), or the whole file can be overridden with the --config option to obnam. |