Age | Commit message (Collapse) | Author | Files | Lines |
|
Sponsored-by: author
|
|
My Emacs' markdown-mode no longer gets confused by this and it's
clearer tot have it at the top.
Sponsored-by: author
|
|
docs: update RELEASE.md to streamline the process
Closes #121
See merge request obnam/obnam!177
|
|
Thank you, Alexander Batischev, for catching the Subplot.
Also, refer to Obnam as Obnam, not Obnam2.
Sponsored-by: author
|
|
Sponsored-by: author
|
|
test: tell Subplot-generated test program where the binaries are
Closes #133
See merge request obnam/obnam!176
|
|
Sponsored-by: author
|
|
Previously, we blindly assumed that Cargo puts binaries in
`target/debug` in the source tree. That is the default, but the user
can change it. Now we get the Cargo target directory by parsing the
output of "cargo metadata" and pass in the path to the test program
via an environment variable.
Also, reformat shell script.
Sponsored-by: author
|
|
Drop struct field which is always 0
See merge request obnam/obnam!175
|
|
|
|
change "obnam backup" to be all async
Closes #113
See merge request obnam/obnam!174
|
|
Rename `read_file` to `upload_regular_file` to better describe the
purpose of the function.
Sponsored-by: author
|
|
Move code to read a file as chunks during a backup, and upload any new
chunks to the chunk server, into `src/backup_run.rs`. Previously they
were mostly in `src/client.rs`, which is meant to provide an
abstraction for using the chunk server API.
Sponsored-by: author
|
|
Sponsored-by: author
|
|
Sponsored-by: author
|
|
Sponsored-by: author
|
|
Sponsored-by: author
|
|
Sponsored-by: author
|
|
This changes things so that "obnam backup" uses async for everything.
The old non-async BackupClient and ChunkClient are dropped.
This does NOT move the chunking, and checksum computation, to its own
function. This will happen later.
Sponsored-by: author
|
|
It was only used by a test function, which is now changed to not use it.
Add comment to the test function that it's too complicated and things
need refactoring. However, that probably needs to wait for new
abstractions.
Sponsored-by: author
|
|
This makes the code more explicit, which is good for now, and is a
step towards making it all use async. There will be a need to refactor
this further with better abstractions, once async works.
Sponsored-by: author
|
|
This is a step towards getting rid of insert_iter entirely, which
would make it easier to make `obnam backup` use async.
I originally split insert_iter so I could use a single transaction for
inserting many rows, but it seems to not be needed for speed after
all. I've benchmarked backing up a large file with and without this
change, and there's no real difference. I've not benchmarked with a
large number of files.
Even if there's a performance hit from using multiple transactions, my
hope is that by being able to use more CPUs/threads for backing up
will outweigh that by far.
Sponsored-by: author
|
|
Fix compilation on MacOS
See merge request obnam/obnam!173
|
|
For chmod() we need to cast mode parameter from u32 to u16 because
MacOS has 16 bit mode_t while Linux is using 32 bits.
|
|
fix: do not overlap "download" and "incremental" progress bars
See merge request obnam/obnam!172
|
|
The problem is the same as #101, except this time it affected
a different set of progress bars. It was introduced in
e6147a3b7b58b151fb7ad9b1f748e0a666f271de.
This commit postpones the creation of "incremental" progress bar until
after we've fetched the previous generation. This avoids showing both
progress bars at once.
|
|
feat: configure log verbosity with OBNAM_SERVER_LOG envvar
Closes #117
See merge request obnam/obnam!170
|
|
add "obnam resolve"
Closes #118 and #135
See merge request obnam/obnam!171
|
|
This means a ChunkId can't be used instead.
Sponsored-by: author
|
|
This will make it harder to accidentally use a string. Can still be
confused with a chunk id.
Sponsored-by: author
|
|
Sponsored-by: author
|
|
Fixes #117.
|
|
cleanup: fix things rustc/clipppy now complain about
See merge request obnam/obnam!169
|
|
Mostly
https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow.
Sponsored-by: author
|
|
Backup: exit non-zero if new CACHEDIR.TAGs are found (unless `exclude_cache_tag_directories` is disabled)
Closes #112
See merge request obnam/obnam!168
|
|
|
|
|
|
|
|
|
|
|
|
In the following commits, we'll use this to check if a tag existed
before.
|
|
use async for read-only access to chunk server
See merge request obnam/obnam!167
|
|
Sponsored-by: author
|
|
Sponsored-by: author
|
|
Sponsored-by: author
|
|
Sponsored-by: author
|
|
Sponsored-by: author
|
|
For some reason my new Emacs config that uses rust-analyzer requires
edition to be set in rustfmt.toml, not just Cargo.toml.
Sponsored-by: author
|
|
In errors, store chunk ids as `ChunkId`, not `String`
Closes #114
See merge request obnam/obnam!165
|
|
Replace custom result types with standard `Result`
Closes #115
See merge request obnam/obnam!166
|