summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-10-10perf: add script to run a simplistic benchmarkLars Wirzenius1-0/+53
Sponsored-by: author
2021-10-10chore: drop debug eprintln! callsLars Wirzenius1-2/+0
They're not useful now. Should probably add logging, but that will have to wait until we have a good logging story. Sponsored-by: author
2021-10-10chore: drop obsolete benchmark.shLars Wirzenius1-25/+0
This uses benchmark binaries that no longer exist. Sponsored-by: author
2021-10-03Merge branch 'feature/142-bullseye-in-ci' into 'main'Lars Wirzenius1-3/+5
Add Debian Bullseye to CI matrix Closes #142 See merge request obnam/obnam!186
2021-10-03Add Debian Bullseye to CI matrixAlexander Batischev1-3/+5
Fixes #142.
2021-09-23Merge branch 'benchmarks' into 'main'Alexander Batischev4-242/+0
drop: benchmark programs Closes #131 See merge request obnam/obnam!184
2021-09-23drop: benchmark programsLars Wirzenius4-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-09-21Merge branch 'merge-policy' into 'main'Alexander Batischev1-5/+35
docs: expand DONE.md to discuss merge policy Closes #127 See merge request obnam/obnam!183
2021-09-21Fix typoAlexander Batischev1-1/+1
2021-09-21docs: expand DONE.md to discuss merge policyLars Wirzenius1-5/+35
Also be more verbose in general. Sponsored-by: author
2021-09-18Merge branch 'checksum-type' into 'main'Lars Wirzenius10-37/+80
refactor: define a Checksum type and use it where appropriate Closes #136 See merge request obnam/obnam!180
2021-09-18docs: move abstract out from doc metadataLars Wirzenius1-7/+8
It can be moved back when Subplot supports that again. Sponsored-by: author
2021-09-18refactor: define a Checksum type and use it where appropriateLars Wirzenius9-30/+72
This will make it harder to compare, say, a SHA-256 and a SHA3, later, when we add more checksum types. Sponsored-by: author
2021-09-18Merge branch 'licence-change' into 'main'Lars Wirzenius4-411/+394
chore: change license to AGPL3-or-later Closes #122 See merge request obnam/obnam!182
2021-09-18Merge branch 'chronicless' into 'main'Lars Wirzenius2-2/+6
chore: make chronic (from moreutils) an optional build dependency Closes #130 See merge request obnam/obnam!181
2021-09-18Merge branch 'reqs' into 'main'Lars Wirzenius1-4/+4
docs: update requirements list and status of requirements Closes #138 See merge request obnam/obnam!179
2021-09-15chore: change license to AGPL3-or-laterLars Wirzenius4-411/+394
As agreed by myself and Alexander Batischev on https://gitlab.com/obnam/obnam/-/issues/122 Two other people have made minor changes, which I deem to be small enough that they do not get a say in the overall copyright. Sorry. Sponsored-by: author
2021-09-15chore: make chronic (from moreutils) an optional build dependencyLars Wirzenius2-2/+6
Sponsored-by: author
2021-09-15docs: update requirements list and status of requirementsLars Wirzenius1-4/+4
Sponsored-by: author
2021-09-15Merge branch 'fix-subplot' into 'main'Lars Wirzenius4-89/+183
fix Subplot bindings for new Subplot See merge request obnam/obnam!178
2021-09-15fix: add 'impl' to bindings files, for new SubplotLars Wirzenius3-53/+153
Sponsored-by: author
2021-09-15refactor: move document metadata to topLars Wirzenius1-36/+30
My Emacs' markdown-mode no longer gets confused by this and it's clearer tot have it at the top. Sponsored-by: author
2021-09-13Merge branch 'release-process' into 'main'Lars Wirzenius1-27/+43
docs: update RELEASE.md to streamline the process Closes #121 See merge request obnam/obnam!177
2021-09-13fix: refer to the right projectLars Wirzenius1-4/+4
Thank you, Alexander Batischev, for catching the Subplot. Also, refer to Obnam as Obnam, not Obnam2. Sponsored-by: author
2021-09-12docs: update RELEASE.md to streamline the processLars Wirzenius1-24/+40
Sponsored-by: author
2021-09-11Merge branch 'cargo-target' into 'main'Lars Wirzenius3-28/+25
test: tell Subplot-generated test program where the binaries are Closes #133 See merge request obnam/obnam!176
2021-09-11test: run Obnam binaries from where Cargo puts themLars Wirzenius2-6/+7
Sponsored-by: author
2021-09-10test: tell Subplot-generated test program where the binaries areLars Wirzenius1-22/+18
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
2021-08-29Merge branch 'bugfix/simplify-after-174' into 'main'Lars Wirzenius1-2/+0
Drop struct field which is always 0 See merge request obnam/obnam!175
2021-08-27Drop struct field which is always 0Alexander Batischev1-2/+0
2021-08-18Merge branch 'refactor_upload_chunkify' into 'main'Lars Wirzenius4-398/+274
change "obnam backup" to be all async Closes #113 See merge request obnam/obnam!174
2021-08-16refactor: rename function to have a clearer nameLars Wirzenius1-13/+8
Rename `read_file` to `upload_regular_file` to better describe the purpose of the function. Sponsored-by: author
2021-08-16refactor: move file reading, etc, for backups to backup_runLars Wirzenius3-103/+108
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
2021-08-16refactor: rename function for clarityLars Wirzenius1-2/+2
Sponsored-by: author
2021-08-16refactor for clarityLars Wirzenius1-30/+30
Sponsored-by: author
2021-08-16refactor: for clarityLars Wirzenius1-4/+4
Sponsored-by: author
2021-08-09refactor: for simplicityLars Wirzenius2-17/+4
Sponsored-by: author
2021-08-09refactor: split long func into twoLars Wirzenius2-28/+69
Sponsored-by: author
2021-08-09refactor: use async for "obnam backup"Lars Wirzenius3-229/+89
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
2021-08-09refactor: drop NascentGeneration::insert_iterLars Wirzenius1-31/+12
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
2021-08-09refactor: use for loop over an iterator instead of .insert_iterLars Wirzenius2-56/+66
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
2021-08-09refactor: call NascentGeneration::insert from ::insert_iterLars Wirzenius1-4/+1
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
2021-08-09Merge branch 'fix-macos' into 'main'Lars Wirzenius2-2/+7
Fix compilation on MacOS See merge request obnam/obnam!173
2021-08-09Fix compilation on MacOSOssi Herrala2-2/+7
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.
2021-08-04Merge branch 'bugfix/overlapping-progress-bars' into 'main'Lars Wirzenius1-8/+17
fix: do not overlap "download" and "incremental" progress bars See merge request obnam/obnam!172
2021-08-03fix: do not overlap "download" and "incremental" progress barsAlexander Batischev1-8/+17
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.
2021-08-02Merge branch 'feature/117-obnam_server_log' into 'main'Lars Wirzenius4-4/+63
feat: configure log verbosity with OBNAM_SERVER_LOG envvar Closes #117 See merge request obnam/obnam!170
2021-08-02Merge branch 'resolve' into 'main'Lars Wirzenius12-26/+92
add "obnam resolve" Closes #118 and #135 See merge request obnam/obnam!171
2021-08-01refactor: use a struct for GenIdLars Wirzenius5-13/+36
This means a ChunkId can't be used instead. Sponsored-by: author
2021-08-01refactor: add a type alias for generation idsLars Wirzenius8-19/+23
This will make it harder to accidentally use a string. Can still be confused with a chunk id. Sponsored-by: author