summaryrefslogtreecommitdiff
path: root/src/client.rs
AgeCommit message (Collapse)AuthorFilesLines
2021-01-19refactor: use ChunkId directly in errors, instead of StringLars Wirzenius1-3/+3
2021-01-17feat: add a default configuration fileLars Wirzenius1-1/+3
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.
2021-01-10feat! use SQLite db for chunk index on serverLars Wirzenius1-11/+27
This speeds startup a lot. However, the backup repository needs to be re-created from scratch and internal APIs have change in incompatible ways.
2021-01-05refactor: move policy on whether to back up a file into a moduleLars Wirzenius1-3/+3
This commit also splits up the src/cmd/backup.rs module into other, smaller, more cohesive modules that are easier to understand and use.
2021-01-04refactor: use fetch_chunk to fetch generationLars Wirzenius1-13/+3
Also, add GenerationChunk::from_data_chunk function.
2021-01-04feat: verify checksum of chunks downloaded from serverLars Wirzenius1-1/+18
2020-12-31feat: incremental backupLars Wirzenius1-1/+0
This uses the previous, latest generation as a guideline to see what is new or changed.
2020-12-31refactor: add LocalGeneration type for read-only operationsLars Wirzenius1-6/+25
This splits the use of NascentGeneration to more cohesive "new generation being built" versus "existing generation being restored".
2020-12-30debugLars Wirzenius1-0/+1
2020-12-30fix: actually use nanosecond timestampsLars Wirzenius1-1/+1
2020-12-30feat: add GenerationListLars Wirzenius1-2/+3
Various part of Obnam will need to deal with lists of generations. Abstract this.
2020-12-30feat! store and show timestamp for each backup generationLars Wirzenius1-3/+14
This changes the output format of "obnam list".
2020-12-26refactor: rename FileSystemEntry::path to pathbufLars Wirzenius1-3/+3
This is a step towards changing how filenames are stored in FileSystemEntry.
2020-12-23feat! only specify base URL of server, without /chunksLars Wirzenius1-6/+10
2020-12-23feat: add log file to clientLars Wirzenius1-0/+1
2020-12-12feat: back up and restore symlinksLars Wirzenius1-0/+2
2020-11-22feat! use temporary files for SQLite databasesLars Wirzenius1-1/+0
The user should not have to specify filenames for the databases, since they don't actually care where they're stored.
2020-11-18feat! change client config to take a base URL instead of host, portLars Wirzenius1-5/+6
2020-11-09fetch gen sqlite file when restoringLars Wirzenius1-0/+36
2020-11-09refactor: move sha256 checksumming to its own moduleLars Wirzenius1-1/+3
2020-11-09client-list worksLars Wirzenius1-1/+10
2020-11-09start on obnam-listLars Wirzenius1-0/+4
2020-11-08feat(src/client.rs): add abstraction for accessing server as clientLars Wirzenius1-0/+166